Copy Code code as follows:
Magazine technology site
Portal site
Personal favorites Site
Tenkine yesky.com
Computer Business Intelligence
Trendy electronics
Sina network sina
Sohu sohu
Copy code code as follows:
floating Advertising code with close buttons
X
Ff.js Code
Copy Code code as follows:
var xpos = 20;
var yPos = document.body.clientHeight;
var step =
The implementation of the URL address to add automatically is a little bit of content: detection and replacement.
Detection
"Detection" is the detection of text (string) within the content of the HTTP address, obviously, this need to use the
JS Traversal page control,
Copy Code code as follows:
var inputarr = document.forms[0];
for (var i = 0; i if (inputarr[i].type.touppercase () = = "button") {
inputarr[i].disabled= "Disabled";
}else if
Absrtact: The loop counter of the for-in traversal is a string type, which, when traversing an object, is the object property/method name, and the array element subscript index when traversing it, unlike the normal for loop, for-in lists the
Now describes how to add, modify, or delete properties and methods for an object. In other languages, once an object is generated, it cannot be changed, and adding a modified member to an object must be modified and instantiated in the corresponding
Copy Code code as follows:
The difference between ff and IE dynamic loading elements
Awbpre:
Awbno:
The code meant: When you click the Add button, dynamically add two input boxes to the page and assign
Find a lot on the internet, summed up several methods for your reference:
1, the most used is substring, this is also I have been using the
Copy Code code as follows:
S=s.substring (0,s.length-1)
2, with RTrim, this I used to only
The display of a line in the table of an HTML page of course Div can also be set when the mouse is placed to change the color part of the code as follows
Copy Code code as follows:
Then on the TD set Onmousehover or onclick event
Because of the number of projects to be submitted to Ajax to increase the waiting animation effect, so write a simple general JS method;The code is as follows:
Copy Code code as follows:
Delay wait Effect of/*ajax submission * *
var
window.showModalDialog () Use method:
var returnvalue = window.showmodaldialog (URL [, arguments] [, features]);
URL-- required parameter, type: string, to specify the URL of the document to display in the dialog box
arguments-- optional
Copy Code code as follows:
Speed scrolling Speed time interval
function Gototop (speed,time) {
Speed = Speed | | 0.1;Time = Time | | 16;
Horizontal distance from scroll bar to top of pagevar x = Document.body.scrollLeft;
The vertical
Web page Visible area width: document.body.clientWidth Page Visible Area High: Document.body.clientHeight Web page Visible area wide: document.body.offsetWidth (including edge width) height of visible area of Web page: Document.body.offsetHeight (
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