摘要:
window.parent.frames['框架名'].location.href='需要打开的页面'window.opener.location.assign('需要打开的页面','框架名'); 阅读全文
摘要:
第一种:<bodyonload="bgChange(getCookie('sKey'));"onkeydown="if(event.keyCode==13){document.all.btnLogin.click();}">如果是母版页中,则btnLogin换成.<%=btnLogin.ClientID%>.第二种:functiondocument.onkeydown(){... 阅读全文
摘要:
click() 对象.click() 使对象被点击 closed 对象.closed 对象窗口是否已关闭true/false clearTimeout(对象) 清除已设置的setTimeout对象 clearInterval(对象) 清除已设置的setInterval对象 confirm("提示信息") 弹出确认框,确定返回true取消返回false cursor:样式 更改鼠标样式 hand c... 阅读全文
摘要:
onkeyup="this.value=this.value.replace(/[^a-z_-]/g,'')"//限制只能输入英文字母和_和-onkeyup="value=value.replace(/[^\u4E00-\u9FA5]/g,'')"//只能输入中文onkeyup="if(isNaN(value)){alert('只能输入有效数字');execCommand('undo');}"//... 阅读全文
摘要:
javascript经典广告代码.rar 阅读全文
摘要:
<Scriptlanguage="javascript"><!--window.onload=getMsg;window.onresize=resizeDiv;window.onerror=function(){};//短信提示使用(asilas添加)vardivTop,divLeft,divWidth,divHeight,docHeight,docWidth,objTimer,... 阅读全文
摘要:
网址示例:http://localhost/test/test.htm?id=1<script languge=javascript> alert(window.location.pathname); --返回 /test/test.htm alert(window.location.search); --返回 ?id=1 alert(window.location.href); --... 阅读全文
摘要:
/Files/hayden/图片文字上下滚动效果.rar 阅读全文
摘要:
<script>varIknowLevel=[0,100,500,1000,2500,5000,8000,12000,16000,20000,25000,35000,50000,80000,120000,180000,250000,400000];functionscoreRake(score){varlen=IknowLevel.length;vari=getUserLevel(sc... 阅读全文