日期:2014-05-16 浏览次数:20326 次
<DIV><MARQUEE style="WIDTH: 220; HEIGHT: 260" scrollAmount=1 scrollDelay=77 direction=up width=280 height=200 onmouseout="this.start()" onmouseover="this.stop()"> <p> 001<br /> 002<br /> 003<br /> 004<br /> </p> </MARQUEE></DIV>
document.writeln("<DIV><MARQUEE style=\"WIDTH: 220; HEIGHT: 260\" scrollAmount=1 scrollDelay=77 direction=up width=280 height=200 onmouseout=\"this.start()\" onmouseover=\"this.stop()\"> "); document.writeln("<p> "); document.writeln(" 001<br /> "); document.writeln(" 002<br /> "); document.writeln(" 003<br /> "); document.writeln(" 004<br /> "); document.writeln(" </p> "); document.writeln(" </MARQUEE></DIV> "); document.writeln("");
<body> <script> document.writeln("<DIV><MARQUEE style=\"WIDTH: 220; HEIGHT: 260\" scrollAmount=1 scrollDelay=77 direction=up width=280 height=200 onmouseout=\"this.start()\" onmouseover=\"this.stop()\">"); document.writeln("<p>"); document.writeln(" 001<br />"); document.writeln(" 002<br />"); document.writeln(" 003<br />"); document.writeln(" 004<br />"); document.writeln(" </p>"); document.writeln(" </MARQUEE></DIV>"); document.writeln(""); </script> </body>
------解决方案--------------------
这样更方便一些。
<body> <script> document.write('\ <DIV><MARQUEE style="WIDTH: 220; HEIGHT: 260" scrollAmount=1 scrollDelay=77 direction=up width=280 height=200 onmouseout="this.start()" onmouseover="this.stop()">\ <p>\ 001<br />\ 002<br />\ 003<br />\ 004<br />\ </p>\ </MARQUEE></DIV>'); </script> </body>