Sometimes, we need to use the hyperlink and not use href to complete the jump, but rather like: this way. This way, you won't let the page jump. But it also brings some negative questions, such as the title of the page becomes "#", or the page
A lot of people have used JavaScript that way.
Copy Code code as follows:
Save
The code above is easy to use and is supported by all browsers
Although I have read some books very early, said Html,css,js separate, easier to
Write code today when encountered a problem: the HTML using the OnClick event to achieve window.location = URL of the jump, in the embedded element plus the href= "Javascrit:;" 's Properties. At this time this sentence window.location jump invalid.
Cookies are a small piece of information, with key/value pairs of information stored in the computer's hard disk string, the cookie storage capacity of about 4KB, different browser manufacturers on the size of the cookie limit slightly difference;
Today is not the state, quiet 51 is coming, I want to play. Well, it's late, gossip not to say, look at the image with JavaScript automatically rotation effect, first look at the picture
The following is the specific code, or relatively simple.
Copy Code code as follows:
var decode = function (m) {
try {
m = decodeURIComponent (m);
catch (e) {}
var s = m.split ("%");
if (S.length > 1) {
S.shift ();
for (var i = 0; i var t = s[i];
t = parseint (T, 16);
t = t + 256;
t = t-201;
Give an example of a previous project: When you add a student, there is no class data. Need to automatically jump to the class display page.Question: Students, classes and other data is placed in the IFRAME inside the JSP. The student-managed button
Use JS to write mask layer landing box and couplet ads and automatically follow the scroll bar scrolling to keep the user can always see
Okay, it's late. Nonsense, the code in particular detailed comments, please see the code.
Copy Code code
Now the web, the impact of user access is not only the speed of file downloads, when all files from the server download, from the browser to start rendering to the user can respond to the time, this time will still be consumed very long, and because
Copy Code code as follows:
Untitled Document
Currently can modify href, but src is not correct, is under study, if you know the partners please leave a message
Today I see some people in the group asked about the hexadecimal coding problem, so use JS to write a small program to convert, remember: This is just coding, not encryption!
String hexadecimal encoding:
Copy Code code as follows:
Str=
PC Mobile End compatible IE 6.0+, FF 1.5+, Safari 2.0+, Opera 9.0+ inertia help, slide rebound
Façade mode
Copy Code code as follows:
Window.onload = function () {
/* TEST Data * *
var insert = ';
for (var i = 0; i Insert + = '
The ability to implement table sorting in the project.
There are many solutions on the web, many of them based on jquery.
Jquery.tablesorter, size 17KB, but his home page in the Ie10 under the compatibility of a bit of a problem.
DataTables, size 7
We know that getting the actual width of an element can use the Currentstyle property in IE. However, if you do not display the width of the element, then use this property to get the value of auto. As follows
Copy Code code as follows:
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