Things about JavaScript and iframe _javascript tips

Embedded in the IFRAME page, both the parent page and the subpage can be easily read and write in the same domain or across subdomains, and in the case of a completely different domain, you can also communicate by changing the hash. I am following

javascript/jquery--Simple Timer's various realization method _javascript skill

The first method: Copy Code code as follows: Timer The second method: Copy Code code as follows: pageencoding= "UTF-8"%> Timer The

2 ways for JavaScript to determine whether a machine is networked _javascript tips

In many scenarios, Web applications can be started only after the machines have been networked. If there is no networking, you will be prompted for an error. 、 But the machines sometimes have to be restarted. If the machine reboots and starts the

JavaScript implementation promotional countdown +fixed fixed at bottom _javascript tips

Copy Code code as follows: Untitled Document 1) compatible IE6 2 The automatic countdown, the input number must be time, unit milliseconds.

JavaScript Event binding (convenient when JS is not supported) _javascript tips

First, for example, we use JavaScript to strengthen our web pages, but we have to consider that if the user's browser does not support JavaScript, or if the user disable JavaScript functionality, can our web page be displayed properly? For example,

Native JavaScript picture automatic or manual switch sample with demo source _javascript tips

abs

One, the effect chart Second, the HTML code Copy Code code as follows: 1 2 3 Third, the source code Copy Code code as follows: var $ = function (ID) { Return "string" = = typeof ID?

JavaScript Perfect drag-and-drop implementation method _javascript skill

HTML code: Copy Code code as follows: Website Login User name: Password: CSS code: Copy Code code as follows: Body, H2 { margin:0; padding:0; } #login { width:350px;

Using JavaScript to filter HTML strings (annotation notation) _javascript tips

Copy Code code as follows: function Deletehtmlfromstarttoend (str, begin, end) { str = str.replace (begin + End, ""); if (str.indexof (begin) = = 1) {//not found return str; } var substr = str.substring (Str.indexof (BEGIN) + Begin.length,

JavaScript expands string method summary _javascript Skill

Copy Code code as follows: String.prototype.EndWith = function (str) { if (str = NULL | | str = = "" | | This.length = 0 | | Str.length > This.length) return false; if (this.substring (this.length-str.length) = = str) return true; Else

Javascript mask layer and load effect code _javascript tips

Copy Code code as follows: Loading function Showload (tipinfo) { var iwidth = 120; The width of the pop-up window; var iheight = 0; The height of the pop-up window; var scrolltop = 0; var scrollleft = 0; var cheight = 0; var cwidth = 0;

_javascript techniques for element lookup and substitution in JavaScript arrays using indexof etc

Copy Code code as follows: Extend JavaScript Array method array a: a.indexof (' cc345345 '): a.lastindexof (' dd4654 '): a.replace (/\d/g, ' * '): a.search (/dd4654/):

JavaScript Tens of thousands of keyword instantaneous matching implementation code _JAVASCRIPT skills

When it comes to keyword search, the first thing to think about is to use some character functions such as indexof,replace, plus some regular expressions. Although it is simple to achieve, but the efficiency behind this question has been carefully

JavaScript Gets the selected text's method code _javascript tips

Copy Code code as follows: New Document The river fish unusual death, downstream residents frequent disease, coastal plant constantly variation, is residue pesticide? Or a biochemical attack? Please pay close attention to

JavaScript tab tab effect instance _javascript tips

Copy Code code as follows: javascript tab TAB Today's top Hot this week Hot this month Content 1Content 2Content 3 Recommended Today Recommended this week Recommended this month Content 1Content 2Content 3

Disabling page portions the specific implementation _javascript techniques of JavaScript methods

The methods discussed in this article have not been used in the actual project, because I have not encountered such a need for projects, but the test found feasible. I. source of my ideas Javascipt is a good thing, its appearance makes the page

JavaScript simple to implement drag div_javascript skills

Copy code code as follows: onmousedown= "MouseDown ()" onmouseup= "MouseUp ()" >

JavaScript _javascript tips based on the instance code of the percentage and histogram of data generation

Copy Code code as follows: js percent chart and histogram sample piechart random numbers drawn as a simple pie One:30 Two:18 Three:13 Four:9 Five:5

How JavaScript checks the form data for changes _javascript tips

Sometimes, you need to check to see if the user has modified the contents of a form, you can use the following tips, which returns true if the contents of the form are modified, and False if the contents of the form are not modified. The code is as

JavaScript get FCK Editor information specific methods _javascript tips

Copy Code code as follows: function geteditorcontents () { var oeditor = fckeditorapi.getinstance ("content"); Alert (oeditor.getxhtml (true)); } Inserts the specified code into the editor function Inserthtmltoeditor (CODESTR) { var

JavaScript finds a small example of the most characters and times in a string _javascript tips

Copy Code code as follows: Untitled Document

Total Pages: 5378 1 .... 4838 4839 4840 4841 4842 .... 5378 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.