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
  • Brief discussion on javascript merge method

    Brief discussion on javascript merge method

    ECMAScript5 defines two merge methods for arrays: reduce() and reduceRight(). Both methods iterate over the arbitrary items of the array and then build a final returned value. The reduce() method starts from the first item of the array and iterates throug
    2025-06-03
  • Radio buttons and multiple buttons use pictures to add styles

    Radio buttons and multiple buttons use pictures to add styles

    How to add styles to radio buttons and multi-select buttons and how to make the buttons bigger? Regarding this question, there is an example below. Friends who need it can see that people have been asking before, how to add styles to radio buttons and mul
    2025-06-03
  • Analysis of the difference between foreach loop in js and foreach loop in java

    Analysis of the difference between foreach loop in js and foreach loop in java

    This article analyzes the difference between the for in loop of js and the foreach loop in java. Share it for your reference. The specific analysis is as follows: the for in loop in js is defined as follows: the copy code code is as follows: for(var varia
    2025-06-03
  • Methods for dynamic creation and deletion of elements in javascript

    Methods for dynamic creation and deletion of elements in javascript

    This article describes the method of dynamically creating and deleting elements in JavaScript. Share it for your reference. The specific analysis is as follows: In DOM, we can easily and quickly delete dom elements dynamically. Here we will give you a bri
    2025-06-03
  • The solution to make ie browser a browser that supports html5 (using html5shiv)

    The solution to make ie browser a browser that supports html5 (using html5shiv)

    Comment: More and more sites are starting to use HTML5 tags. But the current situation is that there are still many people using IE6, IE7, and IE8. Here is a method to make the ie browser support html5. Friends who need it can refer to it. Now HTML5 is at
    2025-06-03
  • Detailed description of HTML meta viewport attributes

    Detailed description of HTML meta viewport attributes

    What is Viewport? Mobile browsers place pages in a virtual window. Usually this virtual window (viewport) is wider than the screen, so that each web page does not have to squeeze each web page into a very small window (this will destroy the layout of web
    2025-06-03
  • Explain the difference between a href=# and a href=javascript:void(0) in detail

    Explain the difference between a href=# and a href=javascript:void(0) in detail

    a href=#> After clicking on the link, the page will scroll up to the top of the page. # The default anchor point is #TOP <a href=javascript:void(0) onClick=window.open()>After clicking on the link, the page will not move, and only the link will be open
    2025-06-03
  • Overview of the basic composition of HTML web pages

    Overview of the basic composition of HTML web pages

    The information on the web page is mainly text-based. In a web page, you can set the attributes of text through font, size, color, shading, border, etc. The text here refers to text words, not text in the picture. In web page production, text can be easil
    2025-06-02
  • 2 code examples of HTML5 Canvas rotation animation (a rotating Tai Chi effect)

    2 code examples of HTML5 Canvas rotation animation (a rotating Tai Chi effect)

    Comment: This article mainly introduces two code examples of HTML5 Canvas rotation animation, and realizes a rotating Tai Chi effect. Friends who learn HTML5 Canvas rotation animation can refer to the following effect picture: Method 1:<html><body><canvas
    2025-06-02
  • JavaScript reference assignment (address value transfer) usage example

    JavaScript reference assignment (address value transfer) usage example

    This article describes the usage of javascript reference assignment (address value transfer). Share it for your reference. The details are as follows: By default, arrays, objects and functions are reference assignments, as shown in the following code: Cop
    2025-06-02
  • A brief discussion on the createElement event in javascript

    A brief discussion on the createElement event in javascript

    createElement is the concept of copying the code code in HTML to use the W3C DOM object model to create child nodes, that is, child elements, as follows: <script>window.onload = function () {var input = document.createE
    2025-06-02
  • Simple three-level linkage for JS production

    Simple three-level linkage for JS production

    A simple three-level linkage made with javascript, which is very simple and practical to copy the code as follows:<!DOCTYPE html><html><head><meta charset="utf-8"><title></title></head><body> Province:
    2025-06-02
  • HTML Tutorial: Ordered List

    HTML Tutorial: Ordered List

    Original text: http://andymao.com/andy/post/103.html Previous section: Unordered list information is sometimes summarized in disorder, but some have clear order, which was also mentioned in the previous article. So simply think about what things around yo
    2025-06-02
  • JS implements image advertising examples that follow the mouse and move with the shutdown function

    JS implements image advertising examples that follow the mouse and move with the shutdown function

    This article describes the image advertisements that follow the mouse and close the function. Share it for your reference. The specific implementation method is as follows: Copy the code code as follows:
    2025-06-02
  • JavaScript controls how to exchange data left and right for two listboxes

    JavaScript controls how to exchange data left and right for two listboxes

    This article describes the method of JavaScript controlling two listboxes to exchange data left and right. Share it for your reference. The specific analysis is as follows: We often use this function to move the element of the left list box to the right,
    2025-06-02