当前位置: 代码迷 >> JavaScript >> document.writeln隐藏层如何不隐藏了,用HTML直接用就隐藏
  详细解决方案

document.writeln隐藏层如何不隐藏了,用HTML直接用就隐藏

热度:289   发布时间:2012-03-01 10:25:46.0
document.writeln隐藏层怎么不隐藏了,用HTML直接用就隐藏?
document.writeln( " <div   style=\ "display:none\ "> ");
document.writeln( " <script   type=\ "text/javascript\ "   src=\ "http://s103.cnzz.com/stat.php?id=394105&web_id=394105\ "   language=\ "JavaScript\ "   charset=\ "gb2312\ "> </script> ");
document.writeln( " </div> ");

------解决方案--------------------
document.writeln( " <div style=\ "display:none\ "> ");
document.writeln( " <script type=\ "text/javascript\ " src=\ "http://s103.cnzz.com/stat.php?id=394105&web_id=394105\ " language=\ "JavaScript\ " charset=\ "gb2312\ "> <\/script> ");
document.writeln( " </div> ");
------解决方案--------------------
为什么不用 document.getElementById( 'divid ').style.display = 'none ';
  相关解决方案