HTML5 drag-and-drop code

1. HTML CODE:drag2. JS CODE:Ondargstart >> ondragenter >> ondragover >> OnDropvar box1div,box2div,msgdiv,img1;Window.onload = function () {Box1div = document.getElementById ("Box1");Box2div = document.getElementById ("Box2");Msgdiv =

JS Close browser window and check browser shutdown event

JS Close the browser window, do not pop up the prompt box. Support ie6+, Firefox, Google and other browsers, below an example for everyone to introduce the specific implementation method, interested friends can refer to the nextJS Close browser

jquery determines if the form has the input tag empty then does not submit form form

Head> Scripttype= "Text/javascript"> $("#sub1"). Click (function(){ varText1=$("#text1"). Val (); if(Text1=="") {alert ("can't be empty!"); $("#text1"). Select (); $("#text1"). focus (); }Else{ $("#form1"). Submit (); } })

WebService another lightweight implementation-hessian learning notes

Recently chatting with colleagues, learned that they are using a WebService implementation method called Hessian to implement a remote method call, is lightweight, does not rely on Java EE container, but also the binary data format transmission,

jquery source "named Extend Inheritance"

Mention the inheritance of JS many "great gods" will mention call,apply, simple object assignment inheritance, as well as the prototype chain inheritance, and many other ways and their shortcomings, but also will be some of the object-oriented

How to debug JS code in a browser

Press F12 to open the debugging tool2. Click on the console, fill in the blanks with the JS code, and then enter to run,3. Click the DebuggerInsert a breakpoint on the JS code you want to debug4. Working on the page5. Press F11 to step through the

PHP base------GD Library drawing verification Code

php One: GD function library1. Function: Imagecreate (width,height) creates a color palette-based Image Imagecreatetruecolor (width,height) to create a true-color-based image header ( /c2>"content-type:image/Picture Format"); Image format: gif jpeg

JS Generate business cards, links and other two-dimensional code

//generated two-dimensional stacking in this div//introduced qrcode.js (to https:// Github.com/jeromeetienne/jquery-qrcode download )JS Generate business cards, links and other two-dimensional code

Web page auto-scrolling playback

For a long time not to do the Web page, today the boss said to do a show demo, let this demo automatically playUsing JS to do a scrolling screen playing codeIn the above code, I have added a click Stop play function Setdone (f), this function can be

HTML5 Getusermedia/audiocontext to create sound spectrum graphics

Demand is the analysis of audio, with graphical display.Ideas:1, recall that the use of the player, such as XX listening to the General 2 kinds of graphical display of a bar column is a ripple2, the analysis of data into an image this is the canvas

How to correctly determine the upload file format for ASP

Asp. NET in judging the file format, if by intercepting extension to judge, through ContentType (MIME) judgment is not too safe, because both ways users can forge. Here's how to get the file type by byte to make judgments if  (request.files.count >

Common methods of jquery

Common methods of jquery1, $ ("#yc1"). Toggle ();If the element is hidden, run show (). If the element is visible, the element hide (). This allows you to create a toggle effect.2, $ (' #btn '). Unbind ("click"); Remove click$ (' #btn '). Unbind ();

ASP. Net URL des encryption What is used in the URL

DES encryption sometimes has + = these special stringsServer.urldecode (request["UserName"])//can solve the = number, but the + sign will become a spaceHttputility.urlencode (request["UserName"]); can solve the + number but the = number or%3dFound

Workaround for the CHM hint that the navigation to the page has been canceled

Download a CHM file, open the prompt "has been canceled to the navigation of the page", previously thought that there is a problem with the file, download the other is also the case, so the online search, the solution is as follows:Method 11. Double-

Use of NetBeans shortcut keys

1, Ctrl-Tab: Switch between open files;2, Ctrl-N: Create a new file in the currently open project;3, Ctrl-F: The current file looks for matching characters (supports regular);4, Ctrl-H: The current file to find, replace matching characters (support

Client-server interaction comparison vs. native instances (compare Ajax,server-sent event,websocket/netsocket)

Yesterday, I learned the native instance of WebSocket, and found it necessary to compare several common client-server-side no-refresh interaction forms:First, Ajax: The client determines when to proactively send requests to the server sidesuch as:

Hibernate Learning Note 5

Query for HQL statements (Hibernate query Language)The difference between HQL and SQL statementsSQL: Generic query in a language-relational database, Structured Query Language, view table and table columnsHQL is a unique query language for hibernate,

HTTP-Content encoding

HTTP applications sometimes need to encode content before they are sent. For example, a server might compress a large HTML document before it is sent to a client over a slow connection, which can help reduce the time it takes to transfer the

Ajax Erase Browser JS, CSS, image caching methods

Do things when the picture in the server's address in the database, and then to the browser display, but later found two problems.First: For the sake of security,JS is unable to read the local picture, or you write a JS, it is not possible to get

Parent Window Controls child window popup and close "Jsdemo"

"Feature description"Use the window.open () method to achieve the effect of clicking the close of the parent window in any area of the control sub-window open"HTML code description" click on any area, sub window opens "CSS Code description"/* Set

Total Pages: 10629 1 .... 3037 3038 3039 3040 3041 .... 10629 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.