共 28 篇文章
显示摘要每页显示  条
如何优化JavaScript脚本的性能。什么叫使用直接量,比如,JavaScript支持使用[param,param,param,...]来直接表达一个数组,以往我们都使用new Array(param,param,...),使用前者是引擎直接解释的,后者要调用一个Array内部构造器,所以要略微快一点点。对字符串进行循环操作,譬如替换、查找,应使用正则表达式,因为本身JavaScript的循环速度...
禁止ctrl+n和 禁止ctrl+r和 禁止shift+f10 禁止鼠标右键or左右键 和禁止f5
<div id="screen-switcher"></div><div id="print-switcher"></div><form action=""><fieldset><label for="select-screen-switcher"><span>Screen styles</span><select id="select-screen-switcher"><option value="...
We apply that image to the background of our #header container (instead of the yellow color we had), push the background image to the bottom of the element, and use a background color matching the top of this new image.padding:5px 15px 4px 6px;background:url("left.gif")no-repeat left top;margin:0;padding:0 0...
background:url("left_both.gif")no-repeat left top;margin:0;padding:0 0 0 9px;border-bottom:1px solid #765;}#header a {float:left;display:block;background:url("right_both.gif")no-repeat right top;padding:5px 15px 4px 6px;text-decoration:none;font-weight:bold;color:#765;}#home #nav-home, #news #nav-n...
In order to get to the right bottom frame, we need to go up to the parent of the current frame (right column) and then choose the second frame (frames[1]).<HTML><HEAD><TITLE> right file </TITLE></HEAD><FRAMESET ROWS="50%,30%,*"><FRAME SRC="lefttop.html" NAME=&...
<HTML> <HEAD> <TITLE>Canvas</TITLE> </HEAD> <FRAMESET COLS="200, *"> <FRAME SRC="frame1.html" NAME="leftcolumn"> <FRAMESET ROWS="100, *"> <FRAME SRC="frame2.html" NAME="toprow"> <FRAME SRC="frame3....
JavaScript and Frames, Part I (2)Escaping Frames.If the topmost page doesn‘t feature any frames, the object model has only one level of window objects, so top is equal to window. However, if the browser is currently displaying a frame-based document, each child frame has a corresponding window object.
<A HREF="frame4new.html" TARGET="bottomrow"onClick="parent.frames[1].location.href = ‘frame4new.html‘;return true;">Multiple Load #1</A><A HREF="javascript:void(parent.frames[1].location.href=‘frame4new.html‘);void(parent.frames[2].location.href=‘frame4new.html‘)...
在使用 form 里的那些元素对象之前,首先你必须要引用 form 对象才行,因为 form 对象是那些对象的父对象,而 form 对象前边也要引用它的上一层父对象 document,这种层层引用是很重要的:document.forms[0] // 指向页面中的第一个 form 对象 document.forms["order"] // 指向名为 order 的 form 对象,即<FORM>标记中包含有代...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部