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
  • Summary of methods for creating js objects and js classes

    Summary of methods for creating js objects and js classes

    The code is very simple, so there is no more nonsense. Copy the code as follows: //The first definition method var person=new Object(); //Create an object.person.name="tom"; //Calendate the name attribute using the person object pair, and its va
    2025-04-28
  • XHTML Introduction Learning Tutorial: Common Tags for XHTML

    XHTML Introduction Learning Tutorial: Common Tags for XHTML

    Just like an article, our web pages must also have clear paragraphs and titles of different degrees of importance. This section will introduce common signatures in XHTML that implement titles, paragraphs and other functions... Title tags<h1> arrive<h6> De
    2025-04-28
  • Introduction to console.dir() function in JavaScript

    Introduction to console.dir() function in JavaScript

    When debugging JavaScript programs, you sometimes need to dump the details of certain objects. This work can be accomplished by manually writing JavaScript code: looping for the properties of the object and printing out each property value that is looped
    2025-04-28
  • JavaScript implements input input automatically fixed focus in sequence

    JavaScript implements input input automatically fixed focus in sequence

    The code copy is as follows:<html><head><script type="text/javascript"> function moveNext(object,index){ if(object.value.length==4){ docu
    2025-04-28
  • Several precautions for passing XHTML verification

    Several precautions for passing XHTML verification

    Several things to note when passing XHTML verification 1. The tag "p" cannot be used in "span". It can only be in applet, blockquote, body, button, center, dd, del, div, fieldset, form, iframe
    2025-04-28
  • js left and right floating couplet ad code example

    js left and right floating couplet ad code example

    A piece of js floating ad code left and right. As long as you modify the ad image address and connection address, the corresponding parameters can be adjusted according to the page, you can use this left and right advertising code. The code is: var delta=
    2025-04-28
  • Commonly used string judgment function code sharing in Javascript

    Commonly used string judgment function code sharing in Javascript

    For a specific explanation, please see the comments. I won’t talk much nonsense here. Just go to the code: Copy the code as follows:/*function obj$(id) Obtain the object function val$(id) Obtain the object value according to id function trim(str) Delete t
    2025-04-28
  • An in-depth discussion on the optimization techniques of loop statements in JavaScript

    An in-depth discussion on the optimization techniques of loop statements in JavaScript

    Loops are one of the most important mechanisms in all programming languages, and loops are not open in almost any computer program with practical significance (sorting, querying, etc.). Looping is also a very troublesome part of program optimization. We o
    2025-04-28
  • What exactly is XHTML DHTML SHTML and what is the difference?

    What exactly is XHTML DHTML SHTML and what is the difference?

    We often see these three things on a technical website or BBS: XHTML DHTML SHTML. What exactly are they doing? Let’s look at the instructions and explanations below. XHTML: HTML is a basic WEB web design language, XHTML is an XML-based markup language tha
    2025-04-28
  • Comparison of the difference between SeaJS and RequireJS

    Comparison of the difference between SeaJS and RequireJS

    "History is not the past, history is being staged. With the rapid development of W3C and browsers, front-end modular development will gradually become infrastructure. Everything will eventually become history, and the future will be better." - I
    2025-04-28
  • Express middleware basicAuth detailed explanation

    Express middleware basicAuth detailed explanation

    BasicAuth middleware adds identity authentication function to the website. After using this middleware, the user must enter the user name and password when accessing the website. After the user enters the user name and password and passes verification, th
    2025-04-28
  • A brief analysis of JavaScript asynchronous loading

    A brief analysis of JavaScript asynchronous loading

    Preface: I believe everyone has encountered many issues regarding JavaScript script loading. Mainly at several points - 1> Problems with file loading, file dependency and execution order caused by synchronous scripts and asynchronous scripts 2> Prob
    2025-04-28
  • Broadcast message for socket.io in node.js

    Broadcast message for socket.io in node.js

    After multiple clients establish connections with the server, the socket.io() server has a sockets attribute, and the attribute value is all socket objects that establish connections with the client. You can use the send method or emit method of the objec
    2025-04-28
  • Instructions for using fs.truncateSync method in node.js

    Instructions for using fs.truncateSync method in node.js

    Method description: Synchronous version of truncate(), file content interception operation. Syntax: The code copy is as follows: fs.truncateSync(path, len) Since this method belongs to the fs module, it is necessary to introduce the fs module (var fs= req
    2025-04-28
  • Set input to read-only effect via disabled and readonly

    Set input to read-only effect via disabled and readonly

    There are two ways to achieve the read-only effect of input: disabled and readonly. Naturally, the effects of both are only read but not editable, but the two are very different. Disabled indicates that the input is invalid and its value will not be passe
    2025-04-28