First, the preface
When too many pictures are requested in a page, and the picture is too large, the speed of the page access is very slow, the user experience is very unfriendly; use the picture lazy load, you can reduce the pressure on the server,
Similar to Taobao details page menu bar Smart positioning for everyone is not unfamiliar! As shown in the screenshot below: That part of the red box!
Basic principle:is to use JS to listen for scrolling events, when the page's scrolling distance (
Article Introduction: Simple analysis of the jquery principle, the small jacket that clawed the jquery.
Introduction
The LZ is still in the third chapter of the digestive system principle recently, so this part of the content LZ intends
URL parameters are written in two different ways:
1.
var rank
= document.getElementById ("Rank"). Value;
var Parentcolumnwindow = window.open (' LiferayWindowState.POP_UP.toString ()%> ">
&rank= ' +rank+ '
',
' ParentColumn ', '
In JS, whether settimeout or setinterval, use the function name as the call handle can not take parameters, and in many cases must take parameters,This needs to be solved in a way.First, in the form of a string:--(defect) parameters can not be
Article Introduction: Dmitry Baranovskiy in his blog out of five test questions, testing whether people really understand JavaScript.
Dmitry Baranovskiy in his blog out of five test questions, testing whether people really understand
Article Introduction: Talk about the conflict prevention (noconflict) mechanism in jQuery.
Many of the JS framework class libraries choose to use the $ symbol as a function or variable name, JQuery is one of the most typical. In JQuery,
Displays a message to the user:
Alert ("Content");
Ask the user to click the OK or Cancel button and return a Boolean value:
Confirm ("content");
Waits for the user to enter a character channeling, and then the character is channeling back:
Prompt ("
JS gets the project root path, such as: HTTP://LOCALHOST:8083/UIMCARDPRJ
function Getrootpath () {
Get the current URL, such as: http://localhost:8083/uimcardprj/share/meun.jsp
var curwwwpath=window.document.location.href;
Gets the directory after
Article Introduction: JS Gets the browser window wide and the width of the page is high.
JS access to the browser window width and width of the page height:
/**/Third FUNCTION* GetPageSize () by webjx.com** @return Array return a array
Article Introduction: gets the two methods and their comparisons of the horizontal and vertical coordinates of the elements in the page to the document area.
Get the elements in the page to the document area. Two methods for horizontal
Article Introduction: This article mainly looks at the dialog components in the jquery mobile system.
This article mainly looks at the dialog components in the jquery mobile system, we use the "ask answer" approach to the preliminary
Article Introduction: in this article, let's take a look at some of the more important basic events of jquery mobile.
In this article, let's take a look at some of the more important basic events of jquery mobile
1, Mobileinit
You can
Article Introduction: a complete set of JavaScript face test questions.
One, single topic 1, which of the following statements will produce a run-time error: (a,d) A.var obj = (); B.var obj = []; C.var obj = {}; D.var obj =//;
2.
The method that implements the inner page of the IFRAME to invoke the custom function of the IFRAME-owned parent window directly.
For example, there is a window, a inside an iframe. B,b inside the load is the C page, then c to directly call a inside
The HTML DOM is an abbreviation for the HTML Document Object model,
JavaScript uses HTML DOM to manipulate HTML documents.
The following illustration is a Document object model for a simple HTML document in a browser window.
Where
JS file function A () {
Show_modelid + = model_id;
window.open ("a.htm?show_modelid=" +show_modelid+ ",", ' Height=400,width=800,location=yes ');
Pass the value of the Show_modelid to the page
A.html
This article links
Article Introduction: the long-awaited 2012 best jquery plugin was unveiled.
Recently, the famous foreign blog Wdl released the 2012 best JQuery plug-ins. Since its release in 2006, JQuery has been the most popular and widely used
Internet | page | page
1. text box Input Restrictions
Implementation limit input large, lowercase English, digital, floating-point decimal, date, Chinese, some English, some Chinese and many other functions. Add it directly to the HTML code to use
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.