源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

js 新浪的一个图片播放图片轮换效果代码

  • 时间:2020-01-30 22:46 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:js 新浪的一个图片播放图片轮换效果代码
[url=http://www.1sucai.cn/upload/20080715191209880.jpg][img]http://files.jb51.net/upload/20080715191209880.jpg[/img] [/url] 核心代码
[url=]      }       $html += '<img src="' + slide.src + '" ALT="slideshow image">';       if (slide.link) {         $html += "<\/a>";       }       if (slide.text) {         $html += "<BR>\n" + slide.text;       }       $html += "<\/P>" + "\n\n";     }     $html = $html.replace(/\&/g, "&" );     $html = $html.replace(/</g, "<" );     $html = $html.replace(/>/g, ">" );     return('<pre>' + $html + '</pre>');   }   this.loop = function() {     if (this.current < this.slides.length - 1) {       next_slide = this.slides[this.current + 1];       if (next_slide.image.complete == null || next_slide.image.complete) {         this.next();       }     } else {       this.next();     }     this.play( );   }   this.valid_image = function() {     if (!this.image){       return false;     }     else {       return true;     }   }   this.getElementById = function(element_id) {     if (document.getElementById) {       return document.getElementById(element_id);     }     else if (document.all) {       return document.all[element_id];     }     else if (document.layers) {       return document.layers[element_id];     } else {       return undefined;     }   }   this.set_image = function(imageobject) {     if (!document.images)       return;     this.image = imageobject;   }   this.set_textarea = function(textareaobject) {     this.textarea = textareaobject;     this.display_text();   }   this.set_textid = function(textidstr) {     this.textid = textidstr;     this.display_text();   } }
新浪图片播放器在线演示[/url] [url=http://www.1sucai.cn/jstest/sinaPic/sinaPic.rar]新浪图片播放器打包下载[/url]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部