Basic tutorial of JavaScipt in JavaScript Language
Where to insert JavaScriptJavaScript can appear anywhere in HTML. Mark script... Script, you can insert JavaScript anywhere in the HTML documentPreviously inserted is not a problem. However, if you
Judge the scripts of IE browser, which is easy to understand and support separate calls of different codes.
var browser = navigator. appName var B _version = navigator. appVersion var version = B _version.split (";"); var trim_Version = version [1].
Today, the company used a tab function to find that msn is good, but it is not compatible with firefox. Their msn method is to use a lot of div inclusion, but there are some people on the Internet to solve it. A bug in Firefox's childNodes
As you all know, the semantic H1 tag is preferred by search engines. In SEO, H1 is also a very basic and important step. However, sometimes for the sake of the interface style, many titles of text are made into images. In most cases, images are
The use of Math objects in JavaScript indicates that Math objects in JavaScript are inherent objects that provide basic mathematical functions and constants. Usage:
Math. [{property | method}]
Property is required. An attribute name of the Math
This Code does not have permissions on the server. It can be saved locally as an htm file. After you run it, you can save the text content as an excel file.
function AllAreaExcel (ID) {var oXL = new ActiveXObject ("Excel. application "); var oWB =
Using js to save variables for menus across pages recently, the company is working on a project. In the menu navigation area of one of the headers, it is required that the navigation menu image on the relevant page should be changed. this is easy to
We often need to display the page in the new window and center the new window.
= 4) {xposition = (screen. width-width)/2; yposition = (screen. height-height)/2;} theproperty = "width =" + width + "," + "height =" + height + "," + "location = 0, "+
Javascript click the gray effect on the entire page (to exit ). Click the gray effect on the entire page (to exit ).
Note: The page header must be added.
Otherwise, the effect cannot be achieved.
Exit safely
Display the specified position in the frame, change the attributes of the text box, change the attributes of the text box (drop-down list), and display the specified position in the frame
Change the attributes of the text box (OK)
The code for sorting and rotating JS images is very beautiful. I feel a little stiff in array simulation. I wrote another one myself. Please come to pp!
script var r = 200, dv = 0.01, w = 100, x = 400; y = 100, pn = 8 var pi = 3.1415926575, d =
Iframe, especially the iframe without borders, is possible to update part of the page data without refreshing a new page because it can be seamlessly integrated with the webpage, however, the size of the iframe is not as flexible as that of the
Javascript easily controls script code for table column styles
first column second column 3rd column first column second column 3rd columns script var obj = document. getElementById ("tab "). getElementsByTagName ("TD") var n = 3; /
Javascript Drag and drop pages Super Drag pages javascript supports firefox, ie7 page layout Drag effects code Drag and drop javascript Drag JavaScript Google IG Drag Demo, very good Drag, prepare background module settings for F2Blog new Theme,
The js Code that supports IE and firefox is beautifying the source code. I tried the js Code brightening effect in IE and FF, and used a section of compressed code as an example. Restricted, deleted part. Make sure you leave the code for testing
This code is found when the js script that appears one by one in the text link browses the website. It is very good, with a height of 20 and text advertisement
Call code:
For the simplest implementation of JavaScript namespace creation, refer to the Ext source code and see how to implement the namespace function:
Ext NameSpace implementation code:
The Code is as follows:
Namespace: function (){Var a = arguments,
You don't need to use ajax to click the text to edit the method. You just got in touch with creatElement, appendChild, and other stuff! Haha!
I wrote this thing. It may seem very immature to the experts! But I wrote it myself!
Not complete yet.
JS can be used to control multiple iframe pages across files at the same time. We recommend that you change the connected iframe to include files, and then change the file name to shtml, or asp. the Code is as follows:
The Code is 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