博客园  :: 首页  :: 联系 :: 管理

文章分类 -  Java script

摘要:<script language="Javascript"><!-- function document.oncontextmenu(){event.returnValue=false;}//屏蔽鼠标右键 function window.onhelp(){return false} //屏蔽F1帮助 function document.onkeydown() { if ((wi... 阅读全文

posted @ 2009-05-06 22:55 sunrack 阅读(1899) 评论(1) 推荐(0)

摘要:javascript在屏幕的中央打开新窗口<script language="javascript" type="text/javascript"><!---//在屏幕的中央打开新窗口url="detach.portal<%=detailURL%>&xh=1213";function openWin(url,w,h){//width 返回屏幕的宽度(像素数)。... 阅读全文

posted @ 2009-05-06 22:43 sunrack 阅读(411) 评论(0) 推荐(0)

摘要:window.open(url, "theNewWindow", "width=640,height=560, location=no,menubar=no,resizable=false,status=no,toolbar=no"); 阅读全文

posted @ 2009-05-06 22:27 sunrack 阅读(666) 评论(0) 推荐(0)

摘要:有时我们需要在新打开的窗口里面编辑信息,等编辑完了,需要将当前窗口关闭并且刷新父窗口,以使修改生效,本文就是介绍用javascript来实现"更新记录后关闭子窗口并刷新父窗口".父窗口代码:<a href="javascript:void(0)" onclick="window.open('child.html','child','width=400,height=300,left=200,... 阅读全文

posted @ 2009-05-06 21:46 sunrack 阅读(610) 评论(0) 推荐(0)

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> var reEml = /^[\w\-\.]+@[a-z0-9]+(\-[a-z0-9]+)?(\.[a-z0-9]+(\-[a-z0-9]+)?)*\.[a-z]{2,4}$/i... 阅读全文

posted @ 2008-12-26 13:07 sunrack 阅读(615) 评论(0) 推荐(0)

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->设为首页 加入收藏 联系我们 阅读全文

posted @ 2008-12-18 23:27 sunrack 阅读(867) 评论(0) 推荐(0)

摘要:区域中 --> Text 或者 Text 阅读全文

posted @ 2008-06-11 13:05 sunrack 阅读(309) 评论(0) 推荐(0)