[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]