发现的以前不知道的函数

时间:2006-09-19    点击:167   

window.attachEvent('onload',LoadDiv);

function LoadDiv(){
if (document.getElementById("Bunny2"))
{
document.getElementById("Bunny2").innerHTML='<script type="text/javascript" src="../../inc/BunnyFav.js"></script>s';
document.getElementById("Bunny2").innerHTML='3<scr' + 'ipt type="text/javascript">alert("aaa");</script>s';
}
}

document.onreadystatechange=fnStartInit;
function fnStartInit()
{
if (document.readyState=="complete")
{
try{}
catch(e){}
}
}
这个就是当也面已经全部载入后执行的函数 !
这个不错

复制代码 代码如下:

<script language="javascript">
    function initIt(){document.forms[0].dlmc.focus();}
    onload = initIt;
</script>
<form onsubmit ="if(document.forms[0].dlmc.value==''){return false;}parent.location='http://'+document.forms[0].dlmc.value+'.ys168.com';return false;" >

prototype1.4中文手册
prototype 源码中文说明之 prototype.js
showModelessDialog()使用详解
Javascript里使用Dom操作Xml
Js+XML 操作
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved