dedecms模板中增加图集内容图片下载功能

时间:2014-08-12

 

打开 /templets/default/images/photo/heiphoto.js
查找 if(sina.isIE)

  1. if(sina.isIE){
  2.             this.ImgObj1.src = ‘http://i0.sinaimg.cn/dy/deco/2008/0331/yocc080331img/news_mj_005.gif’;
  3.  
  4.             this.ImgObj1.filters[0].Apply();
  5.             
  6.             this.ImgObj1.src = this.filmstrips[num].src;
  7.             this.ImgObj1.filters[0].Play();
  8.         }else{
  9.             this.ImgObj1.src = this.filmstrips[num].src;
  10.             for(i = 0;i <= 3;i ++){
  11.                 this._timeOut[i] = setTimeout("epidiascope.ImgObj1.style.opacity = " + i * 0.3,i * 100);
  12.             };
  13.             this._timeOut[i] = setTimeout("epidiascope.ImgObj1.style.opacity = 1;",4 * 100);
  14.         };

下面增加一行

  1. document.all.imgsrcs.href=(this.ImgObj1.src); //by yvsm

然后在图片内容页找个合适的放方增加一行

  1. <a href="#" title="" target="_blank" class="greencu" id="imgsrcs">[右键另存为下载]</a>

演示地址:

http://desk.58blog.net/Design/Exquisite/10360.html

咋看咋觉得官方的这个图集效果像抄的新浪的?

上一条:dedecms模板广告优化方法大全 下一条:DEDE网站数据快速迁移 数据库备份和还原

相关文章

最新文章