Seven Practical Javascript code highlighting scripts

  Code highlightingIt is useful, especially when you need to display your own code on a website or blog, or check or debug syntax errors for others. We can supportCode highlightingSo that readers can easily read code blocks and improve the user's

Ajax Tutorial: post method use cases (with loops)

In recent projects, to solve the timeout Problem in Big Data Query, You need to split big data into small data and then perform cyclic processing. I have insufficient experience and limited technology. I can only use ajax to transmit data. The use

Example of how to sort the hotspot of a JavaScript menu item

An example of how to sort the hotspot of a JavaScript menu item. list items or menu items are sorted by the number of clicks (or other events). Here is just an example, if you want to see a more complete example, you can develop it on this

JavaScript FileSystemObject object writes Text File Content

This code is mainly used to practice the JavaScript FileSystemObject object, which allows JavaScript to write content to a text file. You can specify the path of this TXT file by yourself, then define the content to be written and run the code. You

Time-sharing Optimization of Javascript large arrays

Inspired by Nicholas C. Zakas's Timed array processing in JavaScript. An example of loading large table data: array-processing.html Notes: The timedChunk function is the essence, in which 50 ms is from the results of the Response Time Overview

Enumeration of prime numbers using JavaScript

This article on cool shell is attractive: Checking regular expressions of prime numbers The Code translated into JavaScript is as follows: Copy to ClipboardReference: [www.bkjia.com] function prime (MAX ){ Var re =/^ (11 + ?) \ 1 + $ /, N, C = '1

Js global variables, local variables, and scope

If the effect cannot be displayed, press Ctrl + F5 to refresh the page, more webpage code: http://www.bkjia.com/ Tip: the code can be modified before running! Running result: NaN, 100Reference:1. Global variables and their scopesGlobal

The drag-and-drop function of the webpage layout module of jquery. ui plug-in

Recently, due to system upgrades, personal space needs to be transformed to imitate the QQ space's spatial dress-up function.After checking some basic information, I decided to use the jquery. ui plug-in.Finally, basic functions such as changing

Several problems to be solved in javascript Learning

When learning javascript, we need to take a closer look at the following questions: 1. javascript callback function 2. Cross-Site Request for Cross Domain 3. Class 4. Design Mode 5. namespace 6. Various browser standards 7. Algorithms 8.

JavaScript getting started Tutorial: more than one hundred basic knowledge

1.doc ument. write (""); Output statement 2. Comments in JS are // 3. The traditional HTML document sequence is: document-> html-> (head, body) 4. the DOM sequence in a browser window is: window-> (navigator, screen, history, location, document) 5.

JavaScript Event Learning Chapter 7: Event attributes

To understand the Event attributes, I will provide some sample code here. In this category, there are very serious browser compatibility problems. When we want to read some information about the Event, it is often lost in a large number of

JavaScript Event Learning Chapter 8: Event Sequence

In the first chapter, I mentioned a problem that may not seem so understandable for the first time: "If an element and its parent element have an event handler for the same event, which of the following statements will be executed first?" There is

Create a fixed position to pop up the floating ad instance code

I haven't written the JS program for a long time. I am free these two days. I have rewritten the previous floating ad code. Well, we have limited capabilities in that sentence. If you have any mistakes, please give us your evidence and give us some

JS Code used to determine whether iframe is loaded

In general, the method used to determine whether iframe is loaded is similar to that used to determine whether JavaScript files are loaded successfully: Copy to ClipboardReference: [www.bkjia.com] var iframe = document. createElement ("iframe

FCKeditor source code analysis (1): fckeditor. js Chinese comments

The source code of FCKeditor has been studied over the past few days (what is FCKeditor ?) I searched the Internet almost, and it seems that fckconfig. the js file explains a lot, but for fckeditor. js: The FCK core file is almost 0. so it took a

JavaScript and Cookie (4): directly browse website sites

Httml code: Copy to ClipboardReference: [www.bkjia.com] Untitled Document Website1 Website2 Website3 Website4 remember my choice JS Code: Copy to ClipboardReference: [www.bkjia.com] Source: http://www.cnblogs.com/zghlx/

Disguised Method for blocking custom JavaScript script errors

The Tutorial at (www.bkjia.com) Shields disguised methods for custom JavaScript script errors. When a JS segment may encounter errors in some special circumstances, you do not want to display the error information, we can reload the window. onerror

Jquery Ajax operations on javascript global variables

Problem: When ASP. NET is used in combination with JQuery + Ashx to load the message system, extract the Message ID from the message data read by PAGE and then query the reply content corresponding to the message using Ajax. The Code is as

JavaScript adds a hyperlink to a specified keyword

In the tutorial www.bkjia.com, many friends may see links to some keywords in some articles, which are very similar to internal advertisements. It is very easy to achieve this effect, today, www.bkjia.com sorted out this function and looked at the

JavaScript implementation Click image pop-up image size

In the tutorial www.bkjia.com, click the mouse on the image to obtain the original size of the image. With a change, we can automatically adapt the image to the size of the webpage, we can determine that if the image size exceeds the specified size,

Total Pages: 472 1 .... 397 398 399 400 401 .... 472 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.