Home> Web design tutorial
All Dreamweaver tutorial Javascript tutorial HTML tutorial CSS tutorial Experience and skills DHTML tutorial Web effects WEB standardization
Web design tutorial
  • HTML formatting JSON's instance code

    HTML formatting JSON's instance code

    I do n’t say much nonsense, I will post code directly. The specific code is shown below:<!DOCTYPE html><html><head><meta charset=utf-8><title> Js bin</title>
    2025-02-03
  • Prompt onbeforeunload event when closing the browser

    Prompt onbeforeunload event when closing the browser

    The onbeforeunload event is used like this: Copy the code. The code is as follows:<script language="javascript"> g_blnCheckUnload = true; function RunOnBeforeUnload() {
    2025-02-03
  • How to use JSuggest to automatically match the drop-down box (sample code)

    How to use JSuggest to automatically match the drop-down box (sample code)

    1. Download jquery-latest.js, JSuggest.js and JSuggest.cssJSuggest.js source code is as follows. Copy the code as follows:/*** * Description: JSuggest drop-down prompt box*/function JSug
    2025-02-03
  • Introduction to HTML DOM_ Power Node Java College

    Introduction to HTML DOM_ Power Node Java College

    What is DOM? With JavaScript, you can reconstruct the entire HTML document. You can add, remove, change, or re -arrange items on the page. To change something on the page, JavaScript needs to access the entrance to all elements in the HTML document. This
    2025-02-02
  • How to implement JS filtering special characters in url parameters

    How to implement JS filtering special characters in url parameters

    There are some special characters in the URL transmission parameters, and these symbols cannot be passed directly in the URL. If you want to pass these special symbols in the URL, then their encoding must be used. The following table lists some URL specia
    2025-02-02
  • Solution of floating -point operation bug in JS

    Solution of floating -point operation bug in JS

    I have used the project before, and I found this code online, but under certain conditions, the division and addition operations will still appear. Personally, Personal will be optimized for this to optimize the code. // Description: The results of JavaSc
    2025-02-02
  • Detailed explanation of WebSocket cross-domain problem solving

    Detailed explanation of WebSocket cross-domain problem solving

    WebSocket protocol is a new protocol of HTML5. It realizes full-duplex communication between the browser and the server and allows cross-domain communication. It is a good implementation of server push technology. We use Socket.io, which encapsulates the
    2025-02-02
  • JS code to randomly select x non-duplicate data from an array

    JS code to randomly select x non-duplicate data from an array

    I often encounter some operations related to arrays at work: 1. Randomly pick x pieces of non-repeating data from the data (PS: S.each below is the KISSY.each method, you can change it to a for loop) Copy the code as follows:/ *Randomly select x pieces of
    2025-02-02
  • html5 video playback

    html5 video playback

    1. HTML5 technical advantage 1 About video without plug -in play, click to watch 2 cross -platform, upgrade, and maintain. The development cost is relatively lower than the native APP. Many of the 3 pairs of good support, support gestures, local storage a
    2025-02-02
  • HTML5 web cache and application cache (cookie, session)

    HTML5 web cache and application cache (cookie, session)

    Before introducing HTML5 web caching, let’s get to know cookies and sessions: session: Since HTTP is stateless, who are you? What did you do? Sorry, the server doesn't know. So the session appears, which stores user information on the server for futur
    2025-02-02
  • JavaScript implements a simple countdown pop-up window DEMO with pictures

    JavaScript implements a simple countdown pop-up window DEMO with pictures

    I recently made a simple settings web page. Because I needed to restart the device function, I wanted to add a countdown pop-up interface to it. The initial idea was to customize an alert pop-up window, but I soon discovered that the alert would always st
    2025-02-02
  • JS Remove the space instance trim () ltrim () rtrim ()

    JS Remove the space instance trim () ltrim () rtrim ()

    1. JS Remove the spaces of the string // to the left space; function ltrim (s) ... {Return s.Replace (/(^s*)/g, "");} // Go to the right space; (s) ... {Return s.Replace (/(s (s s s s s s
    2025-02-02
  • Detailed explanation of the method of setting the expiration time of localStorage

    Detailed explanation of the method of setting the expiration time of localStorage

    We all know that localStorage is not actively deleted and will never be destroyed, so how to set the expiration time of localStorage? Let’s try it together today!<script type=text/javascript> //封装过期控制代码 functi
    2025-02-02
  • JS retains the writing after the decimal point

    JS retains the writing after the decimal point

    As shown below: Copy code code is as follows: // Reserve the two -bit function disposenumber (value) {if (value == NULL || Value == "") {Return 0;} else if (Value.Tostricing (
    2025-02-02
  • JS obtains two ways to select the selection label selection value

    JS obtains two ways to select the selection label selection value

    Copy code code as follows: var obj = document.GetelementByidx_x ("TestSelect"); // Positioning IDVAR Index = Obj.selectindEx; // Select index Var Text = Obj
    2025-02-02