Requirement: when designing a web page, a window is sometimes suspended on one side of the page and floating as the browser scrolls.
Code:HTML code floating page
JS Code/* Session Panel suspension */Window. onscroll = function (){VaR DIV =
Using JavaScript to retrieve and set the FCKeditor value is also very easy, as shown below:
// Obtain the HTML content in the editorFunction geteditorhtmlcontents (editorname ){VaR oeditor = fckeditorapi. getinstance (editorname );Return (oeditor.
I have already introduced what is JSON. Next I will use examples to learn how to use JavaScript to call JSON on the client.
First, an open-source JSON parser and string converter provided on the official JSON Website: JSON. js.
According to the
1. Create a node
The createelement () method creates a new element node based on the given tag name. Its nodetype attribute value is 1.
The createtextnode () method creates a new text node that contains the given text. Its nodetype attribute value
In the past few days, I have sorted out the 6th EXAMPLES OF THE Zhiyi tutorial,CodeBasically, text is quite difficult. I always think that some of the points are too long-winded, but the meaning is not very clear. So I am thinking about making some
Preface
JavaScript does not contain the traditional class inheritance model, but uses the prototypal prototype model.
Although this is often mentioned as a disadvantage of JavaScript, prototype-based inheritance models are more powerful than
Reading todayJavascriptWhen, suddenly find the ArrayArrayThe character string can be used as its subscript. I still don't know before. In my opinion, how can I use a character string for Array traversal? Ah .. Ignorant.....
2011-2-5
ESRI javascript API
There are two ways to reference ESRI JavaScript APIs
1. Online Reference
2 offline reference
Download the ArcGIS Javascript. API offline package and deploy it as instructed.
ArcGIS API for JavaScript 2.0
When developing a web platform, you will always encounter some input judgments or restrictions on some special characters. Recently, I have been busy developing my own web platform (www.sanyalanhua.com, a self-developed web platform, as mentioned
Test by IE7/Firefox 3.0/Google Chrome
Closedemo.htm
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Script > VaR Browsername = Navigator. appname; If (Browsername = " Netscape
The role of alert in JavaScript scripts is simply to bring up a modal warning dialog box on the webpage form. In most cases, it is used to verify the validity of the client input when the form is submitted. If the information entered by the user
After searching and querying on the internet, finding this plug-in is more practical, but it is basically easy to write on the network. Most of them belong to replication. There is not much explanation. In order to avoid detours, we hereby record
This article is from the Internet.
Javascript timer that is easy to fool others' feelings
The setTimeout and setinterval of JavaScript are two methods that can easily fool others' feelings, because we often think that the call will be executed
ArticleDirectory
No printable characters in the US-ASCII Character Set
Reserved characters
Insecure characters
Different security characters
Different compatibility
Unicode characters are encoded in different ways.
W3C dom2 style Specification
Now I want to post what I want in this ChapterSource code, Pay attention to the need to combine the ads library http://vdisk.weibo.com/s/Dq8NU
Cssstylesheet object attributes:
Type: Always TXT/CSS
1. You can dynamically add object attributes and delete object attributes.
II. The most common way to define objects
Iii. Factory Mode
VaRObj1 = Createobject ();VaRObj2 = Createobject ();Obj1.get ();
Constructor with parameters:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Html > Head > Title > Javascript uses simple syntax to create objects Title > Script Type = "Text/JavaScript" >
Write an online editor for UBB, because the pop-up window is not used
Code At the end of textarea, I could not insert the cursor before, so I went online and went crazy to find information. I finally found out how to get the position in textarea,
I have been using JavaScript For a long time, and I am not familiar with the basic Dom methods. Well, I will try to learn it.
This evening I made a demo about the insertbefore method. The function is very simple. There are several P labels on the
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.