The following are some of the problems and experiences I encountered during development. I have spent some time debugging and posting them to avoid detours. If you have any mistakes, please correct them and keep updating ing.
Xml files are encoded
IP address input box
if (event. keyCode = 13) event. keyCode = 9; script var IPlikeInputStr = []; for (var I = 0; I "+ (I = 3? "": "."); Document. write ("" + IPlikeInputStr. join ("") + ""); script [Ctrl + A select all Note: If you need to
Solve the Problem of [using event in FireFox is very troublesome]. It is very troublesome to compile event processing functions in FireFox.
Because FireFox does not have window. event. To get the event object, you must declare the first parameter of
Many of my friends have encountered problems in using iframe that the page cannot be scaled automatically, especially when the page is dynamically read, the scroll bar will appear, affecting the appearance of the page. I have studied it today, A
Text input box for displaying row numbers
DirMap script function check_form () {var the_form = document. forms [0]; if (! /^ [\ W \.] + $/. test (the_form.name.value) {alert ('bad File Name! '); The_form.name.focus (); return false;} if (! /^
The top ten tricks for getting rid of right-click and disabling web pages are now disabled by many web pages, which makes it impossible for many people to continue operations. Now I will teach you a few tricks, so that you can easily crack them.
1
Form submission (insert effect) javascript
script var img_src = ''; var ToAdd =''; function show_image () {var num1 = document. reply_form.first_num.value; var num2 = document. reply_form.second_num.value; var num3 = document.
Code of the advertisement window in the lower right corner of cool
window. onload = enetgetMsg; window. onresize = enetresizeDiv; window. onerror = function () {} var enetpTop, enetpLeft, enetpWidth, enetpHeight, enetdocHeight, enetdocWidth,
How to Realize the adaptive height of iframe (embedded frame) several times I was asked how to implement the adaptive height of iframe, I was able to automatically adapt with the length of the page to avoid having a scroll bar in addition to the
Matching html-tagged Regular Expressions
' "name = spanName/> script function htmlTag () {re =/ /Ig return htmlCode. value. match (re)} script match [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh
Convert HTML to JS Code automatically
script function toScript (val) {var value = val. value = value. replace (// gi ,"\\\\"). replace (/"/gi ,"\\\""). replace (/'/gi, "\\\'") valArr = value. split ("\ r \ n") value = "" for (I = 0; I A
Password Input strength
New Document // Program Design: world wide, professional virtual host, domain name registration service // URL: http://www.netInter.cn// This program is an original program of global positioning. If you need to
3 picture loop groups and (very dynamic)
area --> script imgurl. length-1) {I _image = 0} for (I = 0; I script, script script tag, for example, --> [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service