javascript的个网页常用小技巧(javascriptweb pages commonly used tips)

上传人:xins****2008 文档编号:117129313 上传时间:2019-11-18 格式:DOC 页数:26 大小:51.50KB
返回 下载 相关 举报
javascript的个网页常用小技巧(javascriptweb pages commonly used tips)_第1页
第1页 / 共26页
javascript的个网页常用小技巧(javascriptweb pages commonly used tips)_第2页
第2页 / 共26页
javascript的个网页常用小技巧(javascriptweb pages commonly used tips)_第3页
第3页 / 共26页
javascript的个网页常用小技巧(javascriptweb pages commonly used tips)_第4页
第4页 / 共26页
javascript的个网页常用小技巧(javascriptweb pages commonly used tips)_第5页
第5页 / 共26页
点击查看更多>>
资源描述

《javascript的个网页常用小技巧(javascriptweb pages commonly used tips)》由会员分享,可在线阅读,更多相关《javascript的个网页常用小技巧(javascriptweb pages commonly used tips)(26页珍藏版)》请在金锄头文库上搜索。

1、javascript的40个网页常用小技巧(JavaScript 40 web pages commonly used tips)Here are some of the 40 commonly used tips for JavaScripts web pages, which are helpful to web developers.Or 19. how to make the form without bump?orWhats the difference between 20.&? (Division) is used to define a large section of a p

2、age element, and a career change is made is used to define elements within the same line, and the only difference from is that no change is made is the NS tag, ie does not support, equivalent to 21. make the popup always at the top:22. do not scroll bars?Let not the bar:Let not the bar:Two, get rid

3、of it? Its simpler23. how to remove the picture link, click the dotted line around the picture?24. email processing submission formform name=, form1, method=, post, mailto:*.com, enctype=, text/plain, action=25. how do you write in the code that opens the child window and refreshes the parent window

4、?Window.opener.location.reload ()26. how to set the size of the open pageOpen the pages location 27., in the page how to join is not full of background pictures, pull the page, the background diagram does not moveBodybackground-image:url (/blog/logo.gif); background-repeat:no-repeat;Background-posit

5、ion:center; background-attachment: fixed28. check whether a string is made up of numbers 29. get a window sizeDocument.body.clientWidth; document.body.clientHeight30., how to determine whether the characters?If (/x00-/xff/g.test (s) alert (containing Chinese characters);Else alert (all characters);H

6、ow much is the number of 31.TEXTAREA Adaptive Text rows?32。日期减去天数等于第二个日期功能CC(DD,DADD)/ /可以加上错误处理var =新日期(DD)A = A valueof()a -达德* 24 * 60 * 60 * 1000a =新日期(a)警报(A. getfullyear() +“年”+(A. getmonth() + 1)+“月”+ A. getdate() +“日”)抄送(“12/23/2002”,2)33。选择了哪一个无线电 功能checkme()在每个OB Radio1如果ob.checked然后window

7、.alert ob.value下一个端功能 正文的风格条码34。脚本永不出错!隐藏功能killerrors() 返回true;不检测任何错误;/35。进入键可以让光标移到下一个输入框36。检测某个网站的链接速度:把如下代码加入区域中:提姆= 1setInterval(提姆+ +”,100)B = 1无功autourl =新array()autourl 1 =“www.njcatv。网”autourl 2 =“javacool。3322。网”autourl 3 =“www.sina com. cn”autourl 4 =“www.nuaa。edu。cn”autourl 5 =“www.cctv

8、.com”功能butt() 文件编写(“”)对于(var i = 1;i autourl。长度;i+)文件编写(“”= = ”)文件编写(“ ”)butt()函数自动(URL)其他的B + +功能run() 为(var i = 1;i autourl。长度;i+)文件。写(“”)run() 37。各种样式的光标汽车:标准光标Default: standard arrowHand: hand cursorWait: wait for the cursorText:I shape cursorVertical-text: horizontal I - shaped cursorNo-drop: d

9、o not drag the cursorNot-allowed: invalid cursorHelp:? Help cursorAll-scroll: Triangle markerMove: Mobile labelCrosshair: cross markE-resizeN-resizeNw-resizeW-resizeS-resizeSe-resizeSw-resize38. page entry and exit special effectsEnter the page Launch pages This is some special effect when the page is loaded and called up. Duration represents the duration of e

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 大杂烩/其它

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号