1 2 3 4 5 6 7 8 9 10 11
<html><head> <script> function init() { document.getElementById('test').innerHTML = '<marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee>'; } </script> </head> <body onload="init();"> <div id="test"></div> </body> </html>