<div class="htmlarea"> <textarea id="runcode17618"> <title>测试for..in</title> <script language="javascript"> <!-- var anObject = document ; var propertyInfo = "" ; for(var propertyName in anObject) { propertyInfo = propertyName + "=" + anObject[propertyName] ; document.write(propertyInfo + "<br>") ; } //--> </script> </textarea><br><input onclick="runEx('runcode17618')" type="button" value="运行代码"> <input onclick="doCopy('runcode17618')" type="button" value="复制代码"> <input onclick="doSave(runcode17618)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><strong><!--锚点的使用--> <br></strong><div class="htmlarea"> <textarea id="runcode9333"> <title>test anchor</title> <script language="javascript"> <!-- aim = "将会跳转到这里" ; anc = aim.anchor("webaim") ; document.write(anc) ; //--> </script> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> <p align="left"><a href="#webaim">跳转目标对象处</a></p> </textarea><br><input onclick="runEx('runcode9333')" type="button" value="运行代码"> <input onclick="doCopy('runcode9333')" type="button" value="复制代码"> <input onclick="doSave(runcode9333)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div> <br><strong>//状态栏文字的滚动</strong> <br><div class="htmlarea"> <textarea id="runcode87306"> <title>测试状态栏字符的滚动</title> <script language="javascript"> <!-- var msg = "脚本之家站长,一般都是经过测试以后才给出" ; var interval = 300 ; var seq = 0 ; function scrollStr() { window.status = msg.substring(0,++seq) ; if(seq >= msg.length) { seq = 0 ; window.status = "" ; window.setTimeout("scrollStr();",interval) ; } else { window.setTimeout("scrollStr();",interval) ; } } scrollStr() ; //--> </script> </textarea><br><input onclick="runEx('runcode87306')" type="button" value="运行代码"> <input onclick="doCopy('runcode87306')" type="button" value="复制代码"> <input onclick="doSave(runcode87306)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>