In Discuz! JQuery cannot be directly used in section 6.1. In this case, apply the following patch to the includemo-criptcommon. js file.
The Code is as follows:
--- Common. jquery. js++ Common. original. js@-8, 28 + 8, 28 @@*/Var lang = new Array (
JQuery and prototype are currently popular Javascript development frameworks, both of which have a considerable number of fans. Of course, they do not rule out that they prefer both frameworks. But the problem arises. Because jQuery and prototype
In the process of writing JavaScript normally, we may consider compatibility with browsers as much as possible. Below are two common methods to add events:
The Code is as follows:
// For example, addListener (document, "click", function ()
Very good prompt input content, dynamic prompt, give a friendly application
function $ (id) {return document. getElementById (id);} var msgall = "a professional website that collects high-quality script learning materials, fixes errors, and
Some friends who use jquery have to watch the jqueryui interface to improve jquery's efficiency. Basically, mouse Interaction:
Drag and dropping, sorting, selecting, and resizing)
Various Interactive effects:Accordions, date pickers, dialogs,
For new users, they can master the following methods and basically have their own js. For Beginners, they can master the following methods and basically have their own js.
Create a script block
Important files are often stored in computers. These files need to be encrypted and can be implemented in many ways. However, if you want to encrypt all the files in a folder, you can do it if the number is small. If the number is large, wouldn't
Normally, images in Gif format are often used to make the images transparent in the browser to support background color. However, due to the reason of IE browser, we cannot make transparent PNG images transparent. So how can we make it transparent
This is a common method. You only need to pass in the unique Activex clsid and any attribute or method name. (It took two hours to locate -_-!) Function detectPlugin (CLSID, functionName)
{
Var pluginDiv = document. createElement ("
")
Document.
When Using AJAX to call the content of other websites, many people will prompt & quot; no permission & quot; error. This is a restriction of the XMLHTTP component-access to websites in non-domain is prohibited for security reasons, the following
The THICKBOX plug-in of JQUERY has powerful functions, but its basic usage is simple and easy. however, it is difficult to study more deeply and use more flexibly. THICKBOX supports the following browsers:
Windows IE 6.0, Windows IE 7 +, Windows FF 2
At present, I rarely write things in the object to trigger the behavior, because I feel that the utilization of the same object code is too low, which may easily lead to code redundancy. since learning W3C standards, I seem to have developed a
Create components such as ajax echo // create components
Function createobj (){
If (window. ActiveXObject ){
Return (new ActiveXObject ("Microsoft. XMLHTTP "));
}
Else if (window. XMLHttpRequest ){
Return (new XMLHttpRequest ());
}
}
Var cs;
//
Windows XP and SP1-SP2 and win2003 below bounce code on How to bounce in Windows XP and SP1-SP2 below the code, has been discussed by many people, assassin some time ago found, and used on some pages, the revenue increases by more than 10%
JS source
There are only four hiding places in the script: 1. & lt; script & gt; tag, & lt; link & gt; tag, & lt; style & gt; tag, iframe tag 2, tag attribute starting with on 3, javascript (vbscript) pseudo Protocol 4, epression script hiding of css but four:
Use ext to create the code Ext. form. Field. prototype. msgTarget = 'day ';
// Define the form
Var simple = new Ext. FormPanel ({
LabelWidth: 75,
BaseCls: 'x-plain ',
Width: 150,
DefaultType: 'textfield ', // default Field Type
// Define the form
The main reason is that the Marquee in IE is not universal and cannot work normally in other browsers. Therefore, JavaScript is used to rewrite its functions to support multiple browsers! The function has been encapsulated in Marquee. js and
When we want to execute a function after page loading, we will surely think of onload. But in the browser's view, onload can only happen after all the things on the page are loaded, but it's too late. If you only need to perform operations on the
In fact, like my back-end, the website back-end provides free styles here. The focus is that when the mouse moves to the triangle button, it becomes the palm of your hand.
mow.huo website is provided free of charge at the backend of the website _
A picture of Sina! Good results! Share.
Core code
The Code is as follows:
Function slide (src, link, text, target, attr, desc ){This. desc = descThis. src = src;This. link = link;This. text = text;This.tar get = target;This. attr = attr;If
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