#1 漸隱漸現圖片 - 蛙 (Administrator) 發表於 18-5-2012 21:28
<script language="JavaScript"><!--
if (document.all){
kg=new Image();
kg.src="";
document.write('<span id="rings" style="position:absolute;top:0px;left:0px">'
+'<img src="http://bunbun000.com/image/07.gif" name="kg" style="position:relative"></span>');
var TimeLineTwo = 350
var TimeLineOne = 40;
var TimeLinethree = 100;
var xx=20
var xx2=100
var xx3=30
var time3=TimeLinethree/xx3
var time2=TimeLineTwo/xx2
var time1=TimeLineOne/xx
var ThreeStep = time3
var TwoStep =time2
var OneStep = time1
var xp = 100;
var yp = 100;
function SmokeRing(){
document.all.rings.document.images["kg"].style.filter='alpha(opacity='+TimeLinethree+')';
document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne);
document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne);
document.all.rings.document.images["kg"].width=TimeLineTwo;
document.all.rings.document.images["kg"].height=TimeLineTwo;
TimeLinethree-=ThreeStep;
TimeLineTwo+=TwoStep;
TimeLineOne+=OneStep;
setTimeout('SmokeRing()',50);
if ((TimeLineTwo > 280) || (TimeLineOne > 280) || (TimeLinethree < 0))
{TimeLineTwo=0;TimeLineOne=0;TimeLinethree=185;
stop=window.document.body.clientHeight-280;
sleft=window.document.body.clientWidth/2.5;
yp=Math.round(Math.random()*stop);
xp=Math.round(Math.random()*sleft);
document.all.rings.style.top=yp+document.body.scrollTop;
document.all.rings.style.left=xp+document.body.scrollLeft;
}
if ((yp < 80) || (xp < 80))
{
yp+=80;
xp+=80;
}}}
if (document.all)SmokeRing();
// -->
</script>
<FONT color=blue><script language="JavaScript"><BR><!--<BR>if (document.all){<BR>kg=new Image();<BR>kg.src="";<BR>document.write('<span id="rings" style="position:absolute;top:0px;left:0px">'<BR>+'<img src="<FONT color=red>圖檔網址</FONT>" name="kg" style="position:relative"></span>');<BR>var TimeLineTwo = 350<BR>var TimeLineOne = 40;<BR>var TimeLinethree = 100;<BR>var xx=20<BR>var xx2=100<BR>var xx3=30<BR>var time3=TimeLinethree/xx3<BR>var time2=TimeLineTwo/xx2<BR>var time1=TimeLineOne/xx<BR>var ThreeStep = time3<BR>var TwoStep =time2<BR>var OneStep = time1<BR>var xp = 100;<BR>var yp = 100;<BR>function SmokeRing(){<BR>document.all.rings.document.images["kg"].style.filter='alpha(opacity='+TimeLinethree+')';<BR>document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne);<BR>document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne);<BR>document.all.rings.document.images["kg"].width=TimeLineTwo;<BR>document.all.rings.document.images["kg"].height=TimeLineTwo;<BR>TimeLinethree-=ThreeStep;<BR>TimeLineTwo+=TwoStep;<BR>TimeLineOne+=OneStep;<BR>setTimeout('SmokeRing()',50);<BR>if ((TimeLineTwo > 280) || (TimeLineOne > 280) || (TimeLinethree < 0))<BR>{TimeLineTwo=0;TimeLineOne=0;TimeLinethree=185;<BR>stop=window.document.body.clientHeight-280;<BR>sleft=window.document.body.clientWidth/2.5;<BR>yp=Math.round(Math.random()*stop);<BR>xp=Math.round(Math.random()*sleft);<BR>document.all.rings.style.top=yp+document.body.scrollTop;<BR>document.all.rings.style.left=xp+document.body.scrollLeft;<BR>}<BR>if ((yp < 80) || (xp < 80))<BR>{<BR>yp+=80;<BR>xp+=80;<BR>}}}<BR>if (document.all)SmokeRing();<BR>// --><BR></script></FONT><BR>