Convert the decimal color value implemented by js to the hexadecimal code
function MyColor (name, r, g, B) {this. name = name; this. red = r; this. green = g; this. blue = B;} MyColor. prototype. hexValue = function () {var hR = this. red.
Code for automatic voting implemented by ajax a friend entrusted me to vote for him:
Http://publish.sina.com.cn/04/13/413/search.php
The voting link is:
Http://publish.sina.com.cn/poll.php? P_id = 413 & t_id = 119
I made the following code and made
JavaScript code that automatically copies content to the clipboard when a form is submitted
Automatically copy at the time of delivery to the clipboard
Pjblog modification tips Summary 1. How can I modify the number of expressions displayed in a row in the log reply box?
The standard is 8. I want to change it to 5 in each line, because the size of the uploaded emoticon is a little large, causing
Add unused but useful code to favorites
Add built-in search in IE7
Window. external. AddSearchProvider ('xx. xml ');
XML looks like
Http://www.microsoft.com/windows/ie/searchguide/spbuilder.mspx? Encoding = UTF-8 & Name = aoao.
Scalable Reloaded-a reusable component for scalable elements original address: http://www.jackslocum.com/blog/2006/11/24/resizable-reloaded/
These examples demonstrate how an element applies a floating (default) and a scalable component.
View the
Js Code that is commonly used to restrict input
1. when the cancel button is pressed, add the value hideFocus or HideFocus = true 2 to the input box. read-only text box content, add the attribute value readonly in input 3. prevent TEXT files from
Excellent js open-source framework-jQuery User Manual (1) jQuery is an excellent js Development Library class like prototype, especially its support for css and XPath makes it easier for us to write JavaScript! If you are not a js guru and want to
Basic common prototype. js functions and their usage common functions of prototype. js:
Element. toggle
Hide or show Alternately
Element. toggle (''p1', ''p2 '')
Element. hide
Hide
Element. hide (''p1', ''p2 '')
Element. show
Display
Element. show ('
Basic Principle of implementing a Windows-like shutdown using JavaScript
Windows Shutdown Result Analysis
When a user in Windows shuts down, the displayed interface only allows the user to choose to shut down, unregister or cancel the action, and
Comparable to the JS navigation menu of Flash
JS navigation menu comparable to Flash SCRIPT function subClose1 () {if (sub2.style. pixelLeft>-26) {sub2.style. pixelLeft --; setTimeout ("subClose1 ()", 1);} else {sub2.style. pixelLeft =-26;
The JavaScript trigger details a website's front end consists of three layers. The structure layer built by XHTML, including structured and semantic tags and website content. You can add a presentation layer (CSS) and a behavior layer (JavaScript)
The details of the javascript dialog box and the parameter dialog box can be divided into the mode dialog box and the mode-free dialog box. The difference between the two is whether the user can work elsewhere in the same application before the
Click any place on the webpage to access the js Code of the specified page.
var Then = new Date (); Then. setTime (Then. getTime () + 12*60*60*1000); // second minute var cookieString = new String (document. cookie); var cookieHeader = "POPWIN";
Analysis of Memory release methods in JS class library Bindows1.3 I introduced the JavaScript script Memory Leak in IE some time ago. Later I discussed it with some enthusiastic netizens, basically recognized the fact and principle of Memory leakage.
When using the variable reference across frames in the & quot; with & quot; statement in js, using the with statement in Script Programming can greatly reduce the length of code lines referenced by multi-level objects, this is a Syntax Sugar
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