One of the problems in doing the project today is to remove some TR (tr is dynamically added). Try a lot of ways, it doesn't work (for example, the DeleteRow method, the seemingly passed parameter can only be the number of TR rows.) Not carefully
Html
☆
☆
☆
☆
☆
Id= "P" shows instant scores
Id= "Score" shows the final score----------------------------------------------
JavaScript
$ (function () {
//) binds mouseout and mouseover events for all Li tags. Bind
The example of this article is about jquery to achieve a similar function of Taobao Star scoring method, share for everyone for reference. The specific methods are as follows:
The HTML part of the code is as follows:
☆
☆
This article mainly introduced the jquery implementation when the mouse stops in an area 3 seconds after the automatic execution, may apply in many scenes
Move the mouse into this frame and wait 3 seconds.
Make a simple record here to keep yourself from forgetting.
The following is the implementation of automatic click on the main function of the link, the function is no longer in detail, to prevent too many people abuse, the heart of a person to
Test:
Test.html
Code:
Copy Code code as follows:
New Document
Query type
by Faculty
Worker number
Name
Department
All faculties
123
123
123
123
123
Course Assignments
Unassigned
Copy Code code as follows:
to achieve the rolling effect of the end-end connected cycle with marquee and Div+js respectively
Using marquee to achieve the end-end connected circular scrolling effect (ie only):
here is the
First, said some people say this is the repetition makes the wheel, but I think is not, does the project, cannot always take other people's thing to come, the copycat is not the god horse fun idea, certainly if you want to relax, also did not say,
The navigation menu should be simple enough for the user to quickly understand it, but also include the necessary elements to guide the user through the site--incorporating some creative and beautiful designs.
Recommend 70 Excellent navigation
If there is a problem, there are better comments or suggestions can be in the final message, will be grateful to you.
The specific code is as follows:
Copy Code code as follows:
Picture Rotation effect
Copy Code code as follows:
xxx
For standard browsers, you can also modify htmlstyleelement CSS rules by using css.innerhtml directly.
But for IE will cause a "Unknow runtime error."
Function
The function of the CamelCase function is to transform the shape like background-color into the hump notation: backgroundcolor.
This function is useful in the data functions of jquery, as well as in many functions involving CSS.
The
Here is a simple test page: IE, Firefox pop-up "Hello World", and Chrome,safari,opera no response.
The following is a small section of the test code (deliberately modify domain, so that the parent page and subpage page for different domains):
1.
Monitor A container that pops up when the user clicks
The code is as follows
$ (function () {
$ ("Element"). Click{function () {
alert ("Click me!") ");
}
}
});
Basic object Fetch (note that the jquery object is captured here instead
During the development process, jquery.html () Gets the HTML code under the current node and does not contain the code for the current node itself, and then sometimes we do, and there is no way to get the JQuery API documentation.
See some people
One, easy to ignore local variables
Copy Code code as follows:
var a = 5;
(function () {
alert (a);
var a = a + +;
alert (a);
})()
alert (a);
Think about the execution of this code.
After the execution, see if it's
JQuery to achieve navigation fixed top effect, imitation mushroom Street, feel good, need friends can refer to the following
Untitled document navigation fixed at top of page test Home Lan Feng Front Lan Feng Front end
When we write a script, we create a cross-reference, such as the following code:
Copy Code code as follows:
Window.onload = function () {
var x = document.getelementsbytagname (' H3 ');
for (Var i=0;i{
X[i].onclick = OpenClose;
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