问题描述
如何使用无休止的字幕....我想创建无休止的字幕...就像循环一样..我正试图使用循环,但循环无法满足我
How to use marque non ending ....i want to create marque non ending ...just like loop..i am tring to use loop but loop can''t satified me
推荐答案
<script language="JavaScript">
<!-- Begin hide from old browsers
window.onerror = null
var browserOK = (((navigator.appName == 'Netscape') &&
(parseInt(navigator.appVersion) >= 3)) ||
((navigator.appName == 'Microsoft Internet Explorer') &&
(parseInt(navigator.appVersion) >= 4)));
if (browserOK)
{
Message = "Welcome to code project";
Length = 0;
}
function marquee()
{
if (browserOK)
{
window.status = Message.substring(0, Length);
if (++Length > Message.length)
{
Length = 0;
window.setTimeout('marquee()', 8000);
}
else
{
window.setTimeout('marquee()', 200);
}
}
}
window.setTimeout('marquee()', 100);
// End hide -->
</script>
谢谢!!!
Thanks!!!
write(''
write(''
onMouseout ="copyspeed = marqueespeed">''))
write(''
onMouseout="copyspeed=marqueespeed">'')
write(''
style ="position:absolute; left:0px; top:3px; display:inline;">
style="position:absolute;left:0px;top:3px;display:inline;">
'')
write(''
'')
write(''
style ="position:absolute; left:0px; top:3px; display:inline;">
style="position:absolute;left:0px;top:3px;display:inline;">
'')
write(''
'')
write(''
'')
}
否则,如果(document.layers){
write(''< ilayer width ="+ marqueewidth +" height ="+ marqueeheight +" name ="ns_marquee">
bgColor =''+ marqueebgcolor +''>'')
write(''< layer name ="ns_marquee2" left ="0" top ="3"önmouseover="copyspeed = pausespeed">
onMouseout ="copyspeed = marqueespeed">''))
write('''')
}
document.write('' '')
}
}
</script>
</body>
</html>
'')
}
else if (document.layers){
write(''<ilayer width="+marqueewidth+" height="+marqueeheight+" name="ns_marquee">
bgColor=''+marqueebgcolor+''>'')
write(''<layer name="ns_marquee2" left="0" top="3" önmouseover="copyspeed=pausespeed">
onMouseout="copyspeed=marqueespeed">'')
write('''')
}
document.write('''')
}
}
</script>
</body>
</html>
这篇关于如何创建无休止的字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!