有什么问题请到评论中发表<br> <!-- http://www.mb5u.com/ --> <!-- bbs http://www.mb5u.com/bbs--> <!-- 把下列代码加到<body>区域内 --> <table width=360 height=160 cellpadding=0 cellspacing=0 border=0><tr><td> <SCRIPT> // more javascript from http://www.mb5u.com //////////////////////////////////////////////////////// // Set the values of you slideshow below this line var slideurl=new Array() // URLs of your slides (pictures). Add as many as you like slideurl[0]="/img/200406301.jpg" slideurl[1]="/img/200406302.jpg" slideurl[2]="/img/200406303.jpg" var slidecomment=new Array() // Comment for each picture slidecomment[0]="图片说明一" slidecomment[1]="图片说明二" slidecomment[2]="图片说明三" var slidelink=new Array() // Link for your slides slidelink[0]="http://www.mb5u.com" slidelink[1]="http://www.mb5u.com" slidelink[2]="http://www.mb5u.com" // Target for each slide-link var slidetarget=new Array() slidetarget[0]="_blank" slidetarget[1]="_top" slidetarget[2]="" // URL of the sound-file var slidesound="http://www.mb5u.com/upfiles/20050402/20050402011004_sound_swish.wav" // Font var slidefont="Arial" // Font-color var slidefontcolor="blue" // Font-size (acceptable values form 1 to 6) var slidefontsize=2 // Width slideshow (pixels) var slidewidth=360 // Height slideshow (pixels) var slideheight=160 //Pause between each slide (seconds) var pauseslide=3 // Do not edit the code below this line // ///////////////////////////////////////// var textposition="right_auto" var slidecontent var max_space=19 var space=" " var i_substring=0 var i_space=max_space var all_space=" " var content="" var pausefade=20 var i_slide=0 var i_filter=-1 var nextorprevious=1 var transparency=0 var transparencystep=5 var isloaded=false var started=false var stopshow=false var newpause=pauseslide var checkpause=200 var neximage="" var howmanycomplete=0 var preload_slides=-1 var pauseslide=pauseslide*1000 var browserinfos=navigator.userAgent var ie=document.all&&!browserinfos.match(/Opera/)?1:0 var ns6=document.getElementById&&!document.all?1:0 var ns4=document.layers?1:0 var op=browserinfos.match(/Opera/) var preloadedimages=new Array() for (i=0;i<slideurl.length;i++){ preloadedimages[i]=new Image() preloadedimages[i].src=slideurl[i] } function initslideshow4() { setimagetocache() getcontent() if (ie) { slidecontainer.innerHTML=slidecontent } if (ns6 || op) { transparency=100 document.getElementById('slidecontainer').innerHTML=slidecontent } var inittimer=setTimeout("checkifcached()",100) } function setimagetocache() { preload_slides++ if (preload_slides<=slideurl.length) { nextimage=new Image(); nextimage.src=slideurl[preload_slides]; checkautocached() } } function checkautocached() { if (nextimage.complete) { howmanycomplete++ setimagetocache() } else { var timer2=setTimeout("checkautocached()",checkpause); } } function stopslideshow() { stopshow=true } function playslideshow() { stopshow=false } function checkifcached() { if (i_slide<=howmanycomplete) { if (ie) { if (textposition=="top_auto" || textposition=="bottom_auto" || textposition=="left_auto" || textposition=="right_auto" || textposition=="top_auto_nocontrols" || textposition=="bottom_auto_nocontrols") { var nextimer=setTimeout("autoslide()",newpause) } if (textposition=="top_hand" || textposition=="bottom_hand" || textposition=="left_hand" || textposition=="right_hand") { if (started) { handslide() } started=true </body></html>