Text Comes and Goes

[Total: 0    Average: 0/5]

Text fades in and out.

Body Code:

<SCRIPT LANGUAGE="JavaScript1.2">
<!--
ie4 = ((navigator.appVersion.indexOf("MSIE")>0) && (parseInt(navigator.appVersion) >= 4))

var count=0, count2=0, add1 = 3, add2 = 10, timerID

function show()
{
 if (ie4) {
	count	+=add1
	count2+=add2
	delay=30

	if(count2>100) count2=100
	if(count>100) {
		count=100
		add1 =-10
		add2 =-3
		delay=350
	}
	
	if(count<0) count=0
	if(count2<0) {
		count2=0
		add1 =3
		add2 =10
		delay=200
	}
	
	napis.style.filter="Alpha(Opacity="+count2+",FinishOpacity="+count+",style=2)"
	timerID=setTimeout("show()",delay);
 }
}

//-->
</SCRIPT>
<CENTER>
<DIV id="napis" style="width:480; font-family: Arial; font-size: 13pt; color: #00ddaa; Filter:Alpha(Opacity=0,FinishOpacity=0,style=2)">
You can put some text and links here</DIV>
</CENTER>

<SCRIPT LANGUAGE="JavaScript">
<!--
 setTimeout('show()',1000);
//-->
</SCRIPT>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *