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 text escape tips

    HTML text escape tips

    Today I saw a tip for HTML text escaping on CSDN, which is very simple. 1. Use the dom function. First pass it to a dom object as innerTEXT, then take the innerHTML attribute, and then you can get the escaped text. For example: div1.innerText =<h1> title
    2025-06-09
  • Detailed explanation of the package module archiver under nodejs

    Detailed explanation of the package module archiver under nodejs

    Archiver is a module that can implement packaging functions across platforms in nodejs. It can use zip and tar packages. It is a relatively easy-to-use three-party module. Install the archiver module before use. The code copy is as follows: npm install ar
    2025-06-09
  • Instructions for using fs.close method in node.js

    Instructions for using fs.close method in node.js

    Method Description: Close the file asynchronously. Syntax: Copy the code as follows: fs.close(fd, [callback(err)]) Since this method belongs to the fs module, it is necessary to introduce the fs module (var fs= require("fs") before use) to recei
    2025-06-09
  • js timeout call setTimeout and intermittent call setInterval instance analysis

    js timeout call setTimeout and intermittent call setInterval instance analysis

    This article analyzes the usage of js timeout calling setTimeout and intermittent calling setInterval. Share it for your reference. The details are as follows: Today I read the book Advanced Programming (Third Edition) of JavaScript and found that setTime
    2025-06-09
  • html5 svg element click event addition method

    html5 svg element click event addition method

    Comment: I have been using svg's click events to make things recently. The reason I use svg instead of canvas is because the elements in svg can add click events. Next, I will introduce the method of adding in detail. Interested friends can learn abou
    2025-06-09
  • JS implements a complete example of a good image switching effect in Baidu Alliance

    JS implements a complete example of a good image switching effect in Baidu Alliance

    This article examples illustrate how JS can achieve a good image switching effect in Baidu Alliance. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows:<html><title> JS realizes a good image switch
    2025-06-09
  • Several methods of calling js in a

    Several methods of calling js in a

    We often use click events in the a tag: 1. a href=javascript:js_method(); This is a commonly used method on our platform, but this method is prone to problems when passing parameters such as this, and when the javascript: protocol is not only
    2025-06-09
  • Microsoft IE team begins to focus on HTML 5 specifications

    Microsoft IE team begins to focus on HTML 5 specifications

    Microsoft said on Friday that the III team is reviewing the existing draft of the HTML 5 specification in detail and summarizing its own opinions. This move shows that Microsoft is beginning to take this new web standard seriously. The last official updat
    2025-06-09
  • Detailed introduction to value types in JavaScript

    Detailed introduction to value types in JavaScript

    The essence of a computer program can be said to be largely the operation and reading and writing of various information (values) by the machine. In JavaScript, there are multiple types of values, which are divided into two categories: Primitive (primitiv
    2025-06-09
  • How to control image size by dragging the slider

    How to control image size by dragging the slider

    This article describes the method of using drag slider to control the size of the image. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows:<!doctype html public "-//W3C//DTD HTML 4.0 Transitional/
    2025-06-09
  • Example of using NG-BIND instruction to implement one-way binding in ANGULARJS

    Example of using NG-BIND instruction to implement one-way binding in ANGULARJS

    After briefly introducing the AngularJS framework, this article uses an example to demonstrate the use of {{}} interpolation method and ng-bind instruction. Unlike jquery, which is just a class library that strengthens and simplifies front-end development
    2025-06-09
  • Introduction to 8 new INPUT input types added to HTML5

    Introduction to 8 new INPUT input types added to HTML5

    This article mainly introduces the eight new INPUT input types added to HTML5. These 8 new input types are email type, url type, number type, range type, date type, search type, and tel type. This article introduces them one by one. Friends who need it ca
    2025-06-09
  • JS implements a method to prohibit Chinese input

    JS implements a method to prohibit Chinese input

    Method 1: Prohibit Chinese input method<input type="text" style="ime-mode:disabled"> Method 2: No pasting, no dragging, no Chinese input method! This method is the strongest prohibited Chinese input
    2025-06-09
  • How to remove the form's carriage return, submit, and press Enter!= Submit

    How to remove the form's carriage return, submit, and press Enter!= Submit

    To implement carriage return!= Submitted questions, you can generally start with the type of button and the number of input boxes. By default, a single input box, regardless of the type=submit or type=button of the button, enter will submit. 1. When type=
    2025-06-09
  • Detailed explanation of HTML5 storage methods sessionStorage and localStorage

    Detailed explanation of HTML5 storage methods sessionStorage and localStorage

    Comment: Web Storage in html5 includes two storage methods: sessionStorage and localStorage. sessionStorage is used to store data in a session locally, which can only be accessed on pages in the same session and
    2025-06-09