Implementation Code of Jquery drag and drop and simple storage

But how can we save the order? I think of cookies. But how can I use cookies to save the order? I can directly Save the html code to read and overwrite it next time. But I always feel that there are more things to save if there is too much content,

Use js to solve page garbled characters read by ajax

Example:Rsajax. js:Copy codeThe Code is as follows:Var http_request = false;Function makePOSTRequest (url, parameters ){Http_request = false;If (window. XMLHttpRequest ){Http_request = new XMLHttpRequest ();If (http_request.overrideMimeType

Code for implementing the JS Virginia cryptographic algorithm

Copy codeThe Code is as follows:Var Vigenere = {_ StrCpr: 'abcdefghijklmnopqrstuvwxyz _ 12345 67890. abcdefghijklmnopqrstuvwxyz ', // You can disrupt the order of the string or add more characters_ StrKey: function (strK, str) {// generate the key

Implement the Code by encapsulating the easyui-Dialog plug-in

Copy codeThe Code is as follows:$. Fn. hDialog = function (options ){Var defaults = {Width: 300,Height: 200,Title: 'Here title ',Html :'',IconCls :'',Submit: function () {alert ('executable code .');}}Var id = $ (this). attr ('id ');Options = $.

Jquery global AJAX Event code

Copy codeThe Code is as follows: jQuery Ajax-AjaxEvent send Ajax requests

Jquery-based webpage SELECT drop-down box beautification code

1. solved the problem that some select beautification Code cannot trigger the onchange event of the original select control.2. Multiple calls of $ ("..."). selectCss () are allowed to solve the problem that the Select options cannot be synchronized

JQuery form verification extension (3)

Before reading this article, you can refer to the first two articles. Form Verification input range verification is rewritten on the original basis.(1) input range verification problemsThe problems mentioned in Article 2 also exist in the original

Analysis of the internal mechanism of javascript instanceof

For example:Copy codeThe Code is as follows:// Code 1Function Pig (){}Var pig = new Pig ();Alert (pig instanceof Pig); // => trueFunction FlyPig (){}FlyPig. prototype = new Pig ();Var flyPig = new FlyPig ();Alert (flyPig instanceof Pig); // => true

Jquery rounded corner masks image rounded corners

Refresh once after running. rounded corner mask image rounded corner by ahuinan 2009-5-15 [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]

JQuery select Operation implementation code

// Change eventCopy codeThe Code is as follows:$ ("# TestSelect"). change (function () {// event generationJQuery ('option: selected', this). each (function () {// print multiple valuesAlert (this. value );});});// Print the selected category Copy

Useful javascript script Functions

Function styleHeaderSiblings (){If (! Document. getElementByTagName) return false;Var headers = document. getElementByTagName ("h1 ");For (var I = 0; I AddClass (elem, "intro ");}}Function styleElementSiblings (tag, thechass ){If (! Document.

All and invert selection implemented by jquery

Copy codeThe Code is as follows: untitled document select Id author 1 achinan 2 achinan 3 achinan 4 achinan 5 achinan 6 achinan

Javascript pixel tile implementation code

JavaScript pixel puzzle game /* ==================== copyright: http://www.wxwdesign.cn reprinted please keep this information and author Network Site link =================================== */window. onload = function () {var n = 22; // default

JQuery first experience (we suggest learning jquery)

On the JQuery website, we found that this plug-in provides two versions for download. One is the original version, close to 120 K, and the other is to compress the water, nearly 60 K. I haven't done any application technology for a long time. I didn'

Javascript scroll wheel event

Today, I found a function that responds to the scroll wheel on the Internet and changed it to the following class.Copy codeThe Code is as follows:Function wheelEvent (obj, handle){This. handle = handle;// Different events between Firefox and

Webpage special effects transition from bottom to top share gallery _ latest image

share gallery _ latest image happy May Day purchase / tr> cotton ad design materials wedding invitations rose and heart realistic lotus Flower Poster Design

JavaScript asp.net retrieves text from the current hyperlink

Function openNo (sender){Var linkNo = sender. toString (). split ("'") [1]. replace (/\ $/g ,"_");Var strNo = document. getElementById (linkNo). innerText; // This is the strNo.}The background code of this link is as follows: my0000001 Where:Sender =

Javascript print page code

Copy codeThe Code is as follows: javascript printing page Print set the title the content to be printed hello hello hello hello hello

Discuz Announcement Effect (automatic line feed, no gap rolling)

share a form verification function (P. M .) meanings of block-level elements and cascade elements (P. M .) How do I set the width attribute of without line breaks ?? (P.m.) after javascript is executed, the GIF animation remains static ?? (P.

Difference between javascript css in IE and Firefox

I. document. formName. item ("itemName ") Problem description: in IE, you can use document. formName. item ("itemName") or document. formName. elements ["elementName"]; In Firefox, only document. formName. elements ["elementName"].Solution: Use

Total Pages: 5378 1 .... 5351 5352 5353 5354 5355 .... 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.