Tooptip.js:
Copy Code code as follows:
function Getviewportheight () {
if (window.innerheight!=window.undefined) return window.innerheight;
if (document.compatmode== ' Css1compat ') return document.documentElement.clientHeight;
if
This time, the title of the small case, there is an additional, when clicked on the image to respond to the event. The code is as follows:
Copy Code code as follows:
In the body of the OnLoad event call above this function is OK.
fixedBox Example Example Examples Example example example Examples example Examples Sample Example example Examples Instance example Examples example Examples example Examples Sample Instance Example Example Example example example example
A little happy today, csdn Blog browsing volume over million, in the past has never had such a high volume of browsing, have to say, too many times or some sentimental, can see these encouraging or can't help but happy ah, at least, so that I have a
Overview
Forms returns a collection (a Htmlcollection object) that contains all the form elements in the current document.
Grammar
var collection = Document.forms;
Example
Get form Information
Later checked some relevant data, found in IE through window.location.href or is not able to get http_referer, really do not understand IE browser, a lot of browsers run very good things, it is not supported, finally there is no way, PHP can only
Look at this code:
content
The contents of the Deffer.js are:
Alert (1)
This will make the page blank before the alert window is closed. Because the alert window prevents the page from continuing rendering.
To avoid such
I. Advertising Code Analysis
Many third party ad systems use document.write to load ads, such as the following JavaScript ad link.
Copy Code code as follows:
This JavaScript request returns a section of code such as:
Sometimes we need to remind the user that there is a new message that can be implemented using the following method.
The effect is that when the page window has no focus and is minimized, the title bar "title" of the page window displays the "" "",
You want someone else to fix something for you,What is adress,
var hrf= ' ' +adress+ ' ';
The following appears Adress[j]. The usage is totally wrong.
msg+= ' ' +coal[j]+ ' ' +url+hrf+ ' ' +adress[j]+ ' ' + ssz[j]+ ' ';
Copy Code code as follows:
function Ten2eight (x) {
var s=[];
var r= ';
while (x>0) {
S.push (x%8);
X=parseint (X/8);
}
while (s.length>0) {
R=r+s.pop ();
}
return R;
}
n= (n div 8) *8+ (n mod 8) (Div is divisible operation, MoD
This code to achieve the function is usually we encounter a div inside contains img, in the IMG image size unknown, div size unknown, let the picture adaptive size, for the picture itself is smaller than the div container size, do not handle.
JS Method:
Copy Code code as follows:
The following is the jquery method, which requires a reference to the jquery file.
Copy Code code as follows:
or its shorthand
Copy Code code as follows:
JS to achieve scrolling color effect of the text, in the effect of the display page, you can see the text in alternating color display to attract people's attention, the effect is really good oh, the code copied to your site, modified into the
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