A function implemented by js to automatically generate a table based on the Content

In the evening, I suddenly saw a program that used to automatically generate a table based on database data written during asp.Requirements:1. For empty content, it should be written as " ", otherwise it will be abnormal in ie (ie is treated as this

Javascript inserts other text at the cursor of a text segment

For example, if a text box contains a text segment, you can click the mouse and insert the text in the corresponding area.I did this: first obtain the text box Value TextArea. Value, then. TextArea. Value + other textDnew.cn

7. Microsoft Online-Crash Control, version 6.0 (Microsoft Online Crash Control)

Microsoft Slider Control, version 6.0 current value: maximum value: [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]Weeping Red Pavilion: this control is harmful (I also got it ..)..

A simple method for finding a parent node in javascript

title Project 1 subclass 1 subclass 2 Project 1 project In the code above, when you click a project or subclass, the parameters are the same because the trigger event is the same, which can distinguish whether the user clicks "Project

A small JS calendar is recommended.

The core of the script is the DateAdd function. Click the demo below to see the effect:View demoThe call method is simple,Step 1: Include the calenderJS. js file at the top of the page:Click to download this js FileStep 2: add the onfocus event

How to obtain the body. clientHeight method after doctype

In ie6, many js scripts run incorrectly. Generally, incorrect values are returned when obtaining clientWidth, clientHeight, offsetWidth, offsetHeight, scrollWidth, scrollHeight, scrollTop, and scrollLeft.After adding the doctype, the

JavaScript Functions with simplified code that can achieve element rounded corners

The last time I saw an implementation method for an element rounded corner on blueidea, it was too complicated. So I wrote a function to automatically round the elements.Demo address: http://longbill.cn/down/sample/roundcorner.htmDo not use the

After the innerHTML & Symbol sub-value is given to the text box, it will become the & amp; Method

Thank you. The problem has been solved. I don't know how to solve this problem.If it is a & symbol, it will become & amp when it is passed to the text box. How can this problem be solved? The effect is as follows:Solved... Replace innerHTML with

Dynamic text transformation implemented by javascript

The code that implements the text fade display is as follows:

Basic ECMAScript knowledge

The language features of ECMAScript, one of the core parts of JavaScript, have many similarities with Java, C, and Perl. Many of them are derived from these languages, and there are also many differences between them. The following describes some

Locking table columns with javascript

lock the table column sample webpage lock the table column sample webpage Style = "BORDER-RIGHT: white 2px inset; BORDER-TOP: white 2px inset; BORDER-LEFT: white 2px inset; BORDER-BOTTOM: white 2px inset; BACKGROUND-COLOR: scrollbar ">

Sample script that displays all of the users in a given SQL

Sample script that displays all of the users in a given SQL Server DB.Supported PlatformsSQL Server 2000YesScript CodeCopy codeThe Code is as follows:StrDBServerName = "."StrDBName = "ScriptingGuysTestDB"Set objSQLServer = CreateObject ("SQLDMO.

Javascript scripts for making special words

Script for making special words special text create special text display Results [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

Code that uses js to implement the page flip function of keyboard arrow keys

I can see this function on the internet today. It's good. I will be able to add this function in my article later.Var re =/ [\ [\ (]? /igm;If (registry.doc ument. body. innerHTML. search (re)> = 0 ){Var PREVIOUS_PAGE = RegExp. $1;}If you search for "

Two functions that implement javascript deferred execution or repeated execution

The following content is excerpted from "how to conquer AJAX web development technology". I think it is good to read a book in the library manager! A small part of the content and code have been modified!The window object provides two methods to

JavaScript syntax coloring engine (demo and package file download)

I sorted out the JavaScript syntax coloring engine I wrote last year and provided the download. Even if you like itIn general, it is very simple. It only provides the coloring of keywords and some basic syntaxes (such as comments, strings, and

Automatically redirect focus

html-www.51windows.Net The following four text boxes can contain up to four characters. after entering the text box, the system automatically jumps to the next text box.Input characters:---

Client Static Page play Paging

New Document Header Footer

Using jquery to zoom in and zoom out an image

Copy codeThe Code is as follows:

Javascript self-starting Functions

I will not talk much about it.Let's take a look at two sections of code:Copy codeThe Code is as follows:Var elems = document. getElementsByTagName ('A ');For (var I = 0; I Alert (I );Elems [I]. addEventListener ('click', function (e ){E.

Total Pages: 5378 1 .... 2516 2517 2518 2519 2520 .... 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.