IFrame Adaptive width, height IE6 7 8,firefox 3.86

var temp_iframe var content = document.getElementById (' right '); In the DOM container with ID right, create an IFRAME and a wide-high adaptive var c = 0; function append (filename) {var the_iframe = "HelpFile" + C; Temp_ifra ...)

JS Dynamic call CSS File code

<script type= "text/web Effects" language= "Web Effects" > var _sn = ["Df/common", "df/home2010"]; var _su = "http://www.jzread.com/skin/"; var Swidth = sc ...

JS verifies that the string is a numeric function

Web effects Verify that the string is a numeric function many times we need to verify that the user entered the information is a pure number, now we have defined the number of letters 0-9, so that the user input data to compare, if it is OK.    */function Checkifnumber (str) {var letters = "1234567890"; .

JS detects if the username contains Chinese characters

Web effects detect whether the user name contains Chinese characters this verification code is more suitable for user registration verification, it can verify the user entered the registered user name has we do not want to appear in the string or Chinese characters, such as the following I defined letters for letters and numbers and _ line, This allows you to verify that the database tutorials submitted by the user do not contain Chinese characters. */function Checkifenglish (string) {var letters = "...

JS matches the regular expression of the IP address

<script> ip= "555.255.284.255" re=/^ ([3-9]d?| [01]d{0,2}|2d?| 2[0-4]D|25[0-5]). {3} ([3-9]d?| [01]d{0,2}|2d?| 2[0-4]D|25[0-5])/alert (Re.test (IP)) </script> <script> var ...

JS Filter Special character code

Here to provide two Web page special effects filter Code Oh, so you can filter some illegal data, database tutorial security played a certain role oh. ASP Tutorials: TextBox id= "Txtfoldernameeng" CSS Tutorial class= "frmtxt" runat= "Server" maxlength= "Onkeypress=&qu" ...

JS validation of the regular regular expression of the email address URL address

Web effects verify the regular regular expression of the e-mail address URL address * * @parameter string str String * @return Boolean/function Checkmail (str) {return Str.match (/^ (w+.) *w+@ (w+.) +[a-za-z]+$/); &n ...

JS Verify username (uppercase and lowercase letters, Chinese characters, numbers, underscores)

Web Effects Verification User name (uppercase and lowercase letters, Chinese characters, numbers, underscores) * Verify username * (3-12 bytes of uppercase and lowercase letters, Chinese characters, numbers, underscores) * * @parameter string str String * @return Boolean */function Checkusername (str ...)

JS delay loading and dynamic loading JS code

Web page effects delay loading and dynamic loading JS code <div id= "adloading" > Loading please later ....</div> <div id= "Ggad1" style= "Display:none" > Content loaded successfully, please take your time to see. </div> <script Langu ...

JS load XML file multiple methods (compatible Ff,ie6+,opera)

Web page effects load XML files a variety of methods (compatible Ff,ie6+,opera) below we provide three kinds of JS load XML document practice, each load XML file method is different, but the principle is the same, the best is the third section, instance compatible with multiple browsers, the second instance of the  Copy down can directly use//method one var xmldoc; Try{//ie//Create an empty Microsoft XML Document Object Xmldoc=new Act ...

Refresh Page JS Code

This article provides the page refresh code, including the refresh specified page, timed refresh page, refresh frame page, refresh the child page methods and so on several methods Oh <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd" ...

CSS and JS forced line-breaking code

To provide you with three code to force line-breaking code Oh, a CSS tutorial forced to change lines, two is a Web page effect forced line function Tobreakword (Intlen, id) {var obj=document.getelementbyid (id); var strcontent=obj.innerhtml; var strtemp= ""; while (STRCONTENT.LENGTH>

JS ID Number _ ID number JS Verification

Web Effects ID Number _ ID number JS Verify <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" Http://www.w3.org/tr/xhtml1/dtd /xhtml1-transitional.dtd "> <html xmlns=" http://w ...

JS dynamic Add Delete upload attachment code

<!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml ...

JS Delay automatically jump to the specified page jump code

JS Delay Auto Jump to the specified page jump code <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd "> <html xmlns=" Http://jz ...

JavaScript copy specified content save to clipboard code

JavaScript Tutorial copy specified content save to clipboard code HTML code <input type= "text" id= "Testinput" name= "Testinput" value= "4234324234"/> < Div id= "Buttonbox" > <b ...

JavaScript ad deferred load code or page content loading

JavaScript Tutorial ad delay loading code or page content loaded after loading JS call content <!doctype HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "http:// Www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd "> <html xm ...

JavaScript Select all checkboxes checkbox codes for current page

JavaScript selects all checkboxes for current page checkbox code <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" http://www.w3.org/ Tr/xhtml1/dtd/xhtml1-transitional.dtd "> <html xmlns=&

JavaScript Select Specify Checkbox,select,radio value code

JavaScript Select specifies Checkbox,select,radio value code function selectcheckbox (name,value) {var checkobject =  Document.getelementsbyname (name);  var valuevalues = Value.split (","); For (...)

JavaScript All-selected table specifies a checkbox for a row

JavaScript All-selected table specifies the checkbox <!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" http://www.w3.org/tr/ Xhtml1/dtd/xhtml1-transitional.dtd "> <html xmlns=" H ...

Total Pages: 21 1 .... 10 11 12 13 14 .... 21 Go to: GO
Tags Index:

Contact Us

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.