有什么问题请到评论中发表<br> <!-- http://www.mb5u.com/ --> <!-- bbs http://www.mb5u.com/bbs--> <!-- 把下列代码加到<head>区域内 --> <xml:namespace ns="urn:schemas-microsoft-com:vml" prefix="v"/> <style> v\:* { behavior: url(#default#VML); } </style> <!-- 把下列代码加到<body>区域内 --> <SCRIPT> // 3D-Slideshow // more javascript from http://www.mb5u.com var slideurl=new Array() slideurl[0]="/img/200406301.jpg" slideurl[1]="/img/200406302.jpg" slideurl[2]="/img/200406303.jpg" // add a corresponding link for each image // if you don't wont to link an image, enter "#" var slidelink=new Array() slidelink[0]="http://www.mb5u.com" slidelink[1]="http://www.mb5u.com" slidelink[2]="http://www.mb5u.com" // add a corresponding target for each link // acceptable values "_blank" or "_top" or "_parent" or "_self" var slidetarget=new Array() slidetarget[0]="_blank" slidetarget[1]="_self" slidetarget[2]="_top" // set the width of the 3D-border (pixels) var backdepth=6 // set thecolorof the 3D-border (HTML-values required) var fillcolor="#666666" // set the standstill (seconds) for the images (required for Netscape Navigator) var standstill=3 // set the form of the imageframe // acceptable values are "oval" or "rect" var imageform="oval" // do not edit below this line var slidewidth=1 var slideheight=1 var ns6=document.getElementById&&!document.all?1:0 var opera=navigator.userAgent.match(/Opera/) var ie5=document.getElementById&&document.all&&!opera?1:0 standstill*=1000 var floatingspeed=1 var tempo=20 var numberofimages=slideurl.length-1 var stepx=new Array() var stepy=new Array() for (i=0;i<=numberofimages;i++) { stepx[i]=randommakerNS(floatingspeed) stepy[i]=randommakerNS(floatingspeed) } var imgwidth=new Array() var imgheight=new Array() for (i=0;i<=numberofimages;i++) { imgwidth[i]=10 imgheight[i]=10 } var x,y var marginbottom var marginleft=0 var margintop=0 var marginright var timer var i_fadestrength=new Array() var i_fadestep=new Array() var i_fadenow=new Array() var i_fadenowmax=new Array() for (i=0;i<=slideurl.length;i++) { i_fadenowmax[i]=2 i_fadestrength[i]=randommakerNS(99) i_fadestep[i]=1 i_fadenow[i]=0 } var spancontent=new Array() var i_spancontent=0 var imgpreload=new Array() for (i=0;i<=slideurl.length;i++) { imgpreload[i]=new Image() imgpreload[i].src=slideurl[i] } for (i=0;i<=numberofimages;i++) { spancontent[i]="<a href='"+slidelink[i]+"' target='"+slidetarget[i]+"'><img src='"+slideurl[i]+"' border='0'></a>" } var i_angle1=0 var i_size=1 var i_pic=0 var posleft=0 var postop=0 var x_extrusionangle=0 var y_extrusionangle=0 var x_rotationleft=0 var y_rotationleft=0 var pagewidth var pageheight function initNS() { marginbottom=window.innerHeight-11 marginright=window.innerWidth-11 var thisspan=document.getElementById('span0') thisspan.innerHTML=spancontent[0] var thisspan=document.getElementById('span0') imgwidth[0]=parseInt(thisspan.offsetWidth) imgheight[0]=parseInt(thisspan.offsetHeight) var maxleftstart=marginright-imgwidth[0] var maxtopstart=marginbottom-imgheight[0] var thisspan=document.getElementById('span0').style thisspan.left=parseInt(thisspan.left)+randommakerNS(maxleftstart) thisspan.top=parseInt(thisspan.top)+randommakerNS(maxtopstart) thisspan.visibility="visible" checkmovementNS() } function randommakerNS(range) { rand=Math.floor(range*Math.random()) if (rand==0) {rand=Math.ceil(range/2)} return rand } function checkmovementNS() { checkpositionNS() mo</body></html>