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
  • Analysis and examples of the difference between tri-item operator and if else in JS

    Analysis and examples of the difference between tri-item operator and if else in JS

    Today I wrote a small demo of the picture carousel. I tried if else first when I used the judgment. The code is as follows: the code copy is as follows: if(n >= count-1){n =0;}else{n ++;} Then the code is finished, and I prepared to optimize the code.
    2025-04-13
  • nodejs tutorial environment installation and operation

    nodejs tutorial environment installation and operation

    The first step to get nodeJS to run is of course to install nodeJS environment. Now windows install nodeJS is faster, so just download it: http://www.nodejs.org/download/ Download here as needed. After the download is completed, you can just go to the nex
    2025-04-13
  • HTML5 instance tutorial: Canvas tag implements matrix transformation

    HTML5 instance tutorial: Canvas tag implements matrix transformation

    Article introduction of Wulin.com (www.vevb.com): HTML5 daily practice application - matrix transformation. So far, we have learned the graph transformation technology implemented by using coordinate transformation. When the coordinate transformation cann
    2025-04-13
  • Implementing the code of js retaining N digits after decimal point

    Implementing the code of js retaining N digits after decimal point

    In JS, if you generally use the toFixed function to copy the code code as follows:<script language="javascript"> document.write("<h1>JS保留两位小数例子</h1><br>"); var
    2025-04-13
  • HTML5 Canvas' text vertical alignment

    HTML5 Canvas' text vertical alignment

    Wulin.com (www.vevb.com) Article introduction: HTML canvas vertically aligned text, we can use the attribute value of textBaseline within the canvas range. textBaseline can set one of the following values: top, hanging, middle, alphabeti
    2025-04-13
  • js solution to prevent flashing when DIV layout scrolling

    js solution to prevent flashing when DIV layout scrolling

    This article describes the method of js to prevent flashing when DIV layout scrolling, and is shared with you for your reference. The specific method is as follows: The things that have recently come into contact with page performance have a lot of subtle
    2025-04-13
  • Basic HTML tutorial: Detailed explanation of meter tags

    Basic HTML tutorial: Detailed explanation of meter tags

    Article introduction of Wulin.com (www.vevb.com): The label is similar to the progress percentage tag. It mainly represents the quantity values ​​within the specified range, such as the consumption of disks, the proportion of the number of candidates to t
    2025-04-13
  • Example of setting default parameter values ​​in Javascript

    Example of setting default parameter values ​​in Javascript

    The first type: function test(a,b){var a = arguments[0] arguments[0] : 1;//Set the default value of parameter a to 1var b = arguments[1] arguments[1] : 9;//Set parameters
    2025-04-13
  • JavaScript string object substring method beginner example (used to intercept strings)

    JavaScript string object substring method beginner example (used to intercept strings)

    JavaScript substring method The substring method is used to intercept a string by specifying the start and end positions and return to intercept a partial string. The syntax is as follows: the copy code code is as follows: str_object.substring(start, end)
    2025-04-13
  • 5 small examples that can help you understand JavaScript core closures and scopes

    5 small examples that can help you understand JavaScript core closures and scopes

    Here are 5 small scripts that help you truly understand JavaScript core closures and scopes. Before running the console, try to answer what will pop up in each case, and then you can create a test file to check your answer. Are you ready? 1. Copy the code
    2025-04-13
  • Build a pomelo development environment

    Build a pomelo development environment

    Development prerequisites: Windows system, please make sure your Windows system includes source code compilation tools. The source code of Node.js is mainly composed of C++ code and JavaScript code, but it uses gyp tool to manage the source code, which is
    2025-04-13
  • JavaScript uses regular control input input box to complete the values ​​allowed to be input

    JavaScript uses regular control input input box to complete the values ​​allowed to be input

    1. Only numbers are allowed<input name="username" type="text" onkeyup="value=this.value.replace(//D+/g,'')"> 2. Only English letters, numbers and underscores are allowed (the following two methods are implemented)<i
    2025-04-13
  • Html5 game development: Ping Pong game example (II)

    Html5 game development: Ping Pong game example (II)

    HeaderandfooterHtml5 introduces many new features and improvements, one of which is semantics. Html5 adds new elements to enhance semantics. We are now using only 2, header and footer.<header> Tags define the header of the document (introduction informati
    2025-04-13
  • Various ways to insert an HTML page into an SVG

    Various ways to insert an HTML page into an SVG

    SVG (Scalable Vector Graphics) is a scalable vector image format based on XML syntax. Other image formats are based on pixel processing, while SVG is a description of the shape of the image, so it is essentially a text file, with a relatively small size a
    2025-04-13
  • HTML5 form verification function: support old browsers

    HTML5 form verification function: support old browsers

    Wulin.com (www.vevb.com) Article introduction: HTML5's super simple form verification method is brought to IE and other old browsers. Product type: Dynamic effects (dynamic JS, jQuery works) Work description: Bring HTML5's super simple form verifi
    2025-04-13