|
|
|
| Покажите пример кода, строка должна бежать влево по горизонтали! | |
|
|
|
|
|
|
|
для: nikolayers
(08.06.2010 в 23:15)
| | А чем не устраивает HTML? | |
|
|
|
|
|
|
|
для: Gubichev
(08.06.2010 в 23:49)
| | marquee - устаревший тэг и не рекомендуется к применению
<script language="javascript">
function banner(msg,ctrlwidth) {
for (i=0;i<=ctrlwidth;i++){msg=" "+msg}
document.write ('<div align=right><form name="banner" style="margin-left: 20px;">')
document.write ('<input name="scrollBox" class=theme value="'+msg+'" style="width: 670px; height: 20px; border:none; background-color: transparent; font-family: Century Gothic; font-weight: bold; font-size: 18px; color:#FF5500; text-decoration:none">')
document.write ('</form></div>')
rollmsg()
}
function rollmsg() {
nowMsg=document.banner.scrollBox.value
nowMsg=nowMsg.substring(1,nowMsg.length)+nowMsg.substring(0,1)
document.banner.scrollBox.value=nowMsg
myTimer=setTimeout("rollmsg()",100)
}
var text = "text text "text "text "text "text "text "text "text "text "text "text "text ""
banner(text, 50);
</script>
|
| |
|
|
|
|
|
|
|
для: elenaki
(09.06.2010 в 09:38)
| | а бегущая строка рекомендуется к применению? :) | |
|
|
|