Syntax description:
E -- Element
ATT -- attribute
Val -- Attribute Value
E: First-childE: Last-child
Matching the Eelement with the ATT attribute in the documentSyntax: E [ATT]
Matches the Eelement in the document with the ATT attribute and
Although it is difficult to implement it, if you use the built-in SELECT statement, it is very easy to complete, but this
Code In fact, we are telling you about the actual application of Javascript in the web page, and the cooperation among
You may be interested in
Article:
Code for implementing the Ajax level-2 cascade menu
Design of intermediate web page menus using Ajax
JS implements a provincial/municipal-level association selection box code sharing
Code learning for
Here is the test page.
Set transparency in Javascript
I use the following
CodeTo set transparency:
Copy codeThe Code is as follows: function setopacity (value ){
Testobj. style. Opacity = value/10;
Testobj. style. Filter = 'Alpha (opacity = '
When I learned jquery last year, I made some selector notes.
I took a look at it over the past few days and found that many of them have forgotten it. So I decided to paste them here for later viewing. This should also be useful to other friends.
Effect:
Core code:
CopyCode The Code is as follows:
Full DEMO code:Xmlns = "http://www.w3.org/1999/xhtml">
ID: One Class: One Class: miniclass: Mini, Title: otherclass: Mini, Title: testclass for Mini, title for test
The span under
Xmlns = "http://www.w3.org/1999/xhtml">
Professional website effects and advertisements essential for webmastersCode. Jb51.net, special JS effects for webmasters.
Homepage
Zz
Special effects
For example:
Copy codeThe Code is as follows:
However, if the css value is like this:Copy codeThe Code is as follows:
Apparently, the above parseInt () will cause an error, even if it is a value like '. 5', if it is changed to parseFloat (),
There are more and more icons in the css style made by the artist. It is almost impossible to manually write the icon name. So we have this function: list all icon classes in the css style and display them in a graphical form for the configuration
Document directory
Ordered list ol paging source code/Style
Xmlns = "http://www.w3.org/1999/xhtml">
Ordered list ol paging source code/Style
Total number of records:3
Total number of pages:3
Current page:3
Homepage
Previous Page
1. display in the middle. (See: sky100articles1790515)
Copy codeThe Code is as follows:. ordersearchDivCss
{
Position: absolute;
Z-index: 100;
Display: block;
Background-color: # 6ec1df;
}
Js codeCall: // Functions of the object obtained by
However, DOM. style can only access , so that the built-in style in the label is, if the style is written in the and .css files, you can read the style.
In fact, there are other ways to read the style information. There are two methods, one is
Css (name)
Access the style attribute of the First Matching Element.
--------------------------------------------------------------------------------
Return a style property on the first matched element.Return ValueString
ParametersName (String):
Xmlns = "http://www.w3.org/1999/xhtml">
Homepage
About us
Company Profile
Chairman and President
Development History
Company honor
Products & Services
Product 1
Supporting
Accessories
Product 2
Test code:
Copy codeThe Code is as follows:
jQuery Css Test
test
The pop-up box displays information:
IE8:
IE7:
IE6:
Firefox:
Chrome:
Opera:
The following are all the same and return the String
Problems:
Merge and compress files:1. During each release, you need to run your own bat file or other programs to merge and compress the file according to your configuration.2. because the production environment and the development environment need
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.