日期:2014-05-16 浏览次数:20384 次
我想收集一些具有实用功能和经典的javaScript代码,比如验证、coolie操作类、浏览器信息等等,大家认为值得一贴的javaScript代码都可以贴上来,谢谢大家!?
Response.Write("〈script language=javascript〉window.open('rq.aspx', '', 'top=80;; left=150;; height=160,width=330,status=no,toolbar=no,menubar=no,location=no')〈/script〉");;?
HTML事件的控件触发?
http://dev.csdn.net/Develop/article/20/20566.shtm?
JavaScript通用库(二)?
http://dev.csdn.net/article/28/28057.shtm?
破解网页禁止鼠标右键的技巧?
http://dev.csdn.net/develop/article/19/19419.shtm?
如何利用JAVASCRIPT实现浮动广告?
http://community.csdn.net/Expert/topic/3226/3226990.xml?temp=.5731165?
加入收藏夹大全?
http://www.588188.com/netbook/tech/other/html/other.ohchina.6.htm?
客户端脚本真藏?
http://www.pcdog.com/info/2974.htm?
//打开模式对话框?
function doSelectUser(txtId)?
{?
strFeatures="dialogWidth=500px;;dialogHeight=360px;;center=yes;;middle=yes ;;help=no;;status=no;;scroll=no";;?
var url,strReturn;;?
?
url="selUser.aspx";;?
?
strReturn=window.showModalDialog(url,'',strFeatures);;?
}?
//返回模式对话框的值?
function okbtn_onclick()?
{?
var commstr='';;?
?
window.returnValue=commstr;;?
window.close() ;;?
}?
全屏幕打开 IE 窗口?
var winWidth=screen.availWidth ;;?
var winHeight=screen.availHeight-20;;?
window.open("main.aspx","surveyWindow","toolbar=no,width="+ winWidth +",height="+ winHeight +",top=0,left=0,scrollbars=yes,resizable=yes,center:yes,statusbars=yes");;?
break?
//脚本中中使用xml?
function initialize() {?
var xmlDoc?
var xslDoc?
xmlDoc = new ActiveXObject('Microsoft.XMLDOM')?
xmlDoc.async = false;;?
xslDoc = new ActiveXObject('Microsoft.XMLDOM')?
xslDoc.async = false;;?
xmlDoc.load("tree.xml")?
xslD