This DivAlert plug-in, as its name implies, is a page pop-up box, which is something like MessageBox. Show () in Winform. I have been thinking about Javascript, Ajax, jQuery, and so on for a while, but it seems that I haven't written a plug-in yet.
Today, we will introduce the advertisement plug-ins that implement the effect of Running Horse lights. Similar to a directory advertisement player made by a colleague from the company web-dev on the homepage of the website. In fact, it is very
Jquery-based tab switching uses js principles. Bind the mouse to the event.
Html code:
The Code is as follows:
Personal Data
Account maintenance
Next
11111111111111111111111111111111
22222222222222222222222222222222222
In many Javascript books, it is analogous to Java that String is less efficient than StringBuffer in terms of frequent and massive String connections. There is no StringBuffer class in Javascript when the condition is displayed. The implementation
The Jquery plugin learns how to create the INS in instance 1 and how to optimize tableUI. For more information, see. I. First, I made the jQuery method. jQuery provided two methods for development extension:
JQuery. extend (object); adds a new
I tried to implement this in the past two days. I used to make a Demo, but I don't know where to go. So today, I found some information on the Internet and tried it myself. Not much nonsense. Go directly to the topic.
First, the code of the parent
Js asynchronous processing progress bar implementation code. For more information, see. 1. First, the effect is as follows:
2. Usage
The Code is as follows:
Var loader = new Ajaxloader (this. _ ContentID, {Text: 'loading... ', Top: 50 });Loader.
More practical judgment code for multiple browsers. You can collect the code for different browsers and perform unnecessary operations.
The Code is as follows:
/* Browser judgment */Var userAgent = navigator. userAgent. toLowerCase ();Var
Prototype: APIs written in Javascript, including extensions of Javascript classes such as String and Array, after embedding a JS file, you can directly use prototype. It is an API written in Javascript, including the expansion of Javascript classes
To obtain the tag id using js in a project that uses the dashboard page, you need to first load the tag id to the local machine to see the source code of the page during browsing and then confirm its id as follows:
Code
The Code is as follows:
IE6, IE7, and IE8JS control show hidden compatibility problems in IE7,
Use jQuery
Display: $ ("# a"). attr ("style ","");
Hide: $ ("# a"). attr ("style", "display: none ");
However, this method does not work in IE8.
IE8
Display: $ (
For details about how to use the confirm, alert, and prompt functions in JS, see.
Window. alert: only one parameter. The warning box is displayed;
No return value.
Script
Window. alert ("OK .")
Script
Window. confirm: there is only one
A group of Functions found on Firefox's official website is equivalent to treeWalker. With this function, you can easily implement all functions of TraversalAPI2 in IE. A group of Functions found on Firefox's official website is equivalent to
In my current project, the front-end is fully built using EXTJS based on the "One-Page" concept.
Problem
In my current project, the front-end is fully built using EXTJS based on the "One-Page" concept. Except for an HTML container, it is all
Today I saw a blog by situ, which is a deep copy of javascript. It involves a method for determining the type. The analysis is as follows:
The Code is as follows:
Var is = function (obj, type ){Var toString = Object. prototype. toString,
Today we found that chrome still has some unique things. Based on them, we can make a feature-based decision. In the early days, I determined that it was based on UA. In UA, it had a unique Chrome string.
The Code is as follows:
Var isChrome =
In IE6, when the page has the advanced mode Tinymce editor, and jquery. validation uses jquery. the following error occurs when metadata is located in jquery. metadata. about 92 lines of js:
The Code is as follows:
Else if (elem. getAttribute!
This article is definitely a good preparation for beginners. You can add it to your favorites if you need it. 1.doc ument. write (""); Output statement
2. Comments in JS are //
3. The traditional HTML document sequence is: document-> html-> (head,
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