Various browser compatibility problems
About setting onload event handle using scripts
script document. body. onload = function () {alert ("! ")} Script [Ctrl + A Select All Note: If you need to introduce external Js, you need to refresh it to
This player is similar to the frame type ~ Set it at the bottom of the page. even if you view another page on the page, the song will not be stopped and played again because of refreshing ~ Set at the bottom of the page ~ Even if you view another
Javascript can also contain files. javascript has powerful functions, but one problem is that it cannot contain other js files. Other non-scripting languages basically have this function, so I have to feel a little sorry. When the problem is getting
Firefox cannot obtain cssRules. the solution is too BT. it always adds boring security permission settings. in the past few days, the Qzone FF compatibility was discovered. after domain is set, CSS rules of styleSheets cannot be obtained in FF.
Javascript event description onblur :( used in form elements, executed when the element loses focus)
Onchange :( used in form elements, when something changes, it is executed)
Onclick: (execute when you click an element)
Ondblclick: (double-click
Many friends asked me about the code of the scroll navigation bar on the top of the Blog in various ways. In fact, there is nothing special, but since there is a need, I will sort out this part of the code for your reference.
The code is as
This article mainly introduces jquery's vertical navigation menu with the shrinking function. click to expand and collapse the navigation menu, if you are interested, you can refer to this article to introduce how a common navigation menu is
Prototypeclass explanation // perfume bad 06-07-19 TKS: Lin Zi, to provide you with a place to share
Var Class = {
Create: function (){
Return function (){
This. initialize. apply (this, arguments );
}
}
}
You can rewrite the statement as
Script favorites iframe 1. no prompt to close the window
2. prevent iframe
If (top. location! = Self. location)
{
Top. location. href = "http://www.34do.net ";
}
3. determine whether an object exists or not
Document. all ("a") = null
This article mainly introduces information about the time and date when native javascript is automatically updated, and analyzes the implementation code in detail, if you are interested, you can refer to things that can dynamically change are always
This article mainly introduces the information related to the seamless scrolling effect of native javascript images. For more information, see the horizontal seamless scrolling effect of images, which can be applied on a large number of websites,
How to use javascript to drag Javascript is characterized by dom processing and webpage effects. In most cases, we only use the simplest functions of this language, such as creating image Carousel/webpage tabs, this article will show you how to drag
How does CheckBox achieve full selection? There are many checkboxes in a form. how can I select one and select all of them?
---------------------------------------------------------------
Function selectAll (checkBoxName ){
Var elms = document.
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