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
  • js round mathematical function round usage example

    js round mathematical function round usage example

    The round function in js can be used to round up numbers, which is calculated for the first digit after the decimal point. The round function can round numbers. It is a rounding function. Let’s take a look at the syntax of round: the copy code is as follo
    2025-08-12
  • Quick solution to the conflict problem of js mouse click and double-click event

    Quick solution to the conflict problem of js mouse click and double-click event

    Situation 1 If the click and double-click events are bound on a DOM object at the same time, when a double-click event occurs on this DOM object, the first click will trigger a click event, and the second click will also trigger a double-click event.
    2025-08-12
  • HTML Form (7)——Introduction to HTML Tutorial

    HTML Form (7)——Introduction to HTML Tutorial

    What is a form? Forms in HTML are an important means to interact with HTML pages and browsers. Using the form, the server can collect relevant information submitted by the client browser, such as the password entered, etc. When browsing websites, we often
    2025-08-12
  • JS countdown simple implementation code

    JS countdown simple implementation code

    Countdown: 1. Set a valid end date 2. Calculate the remaining time 3. Convert the time to available format 4. Output clock data as a reusable object 5. Display the clock on the page and stop the html when it reaches 0<div id="clock">
    2025-08-12
  • Examples of JS obtaining browser version and operating system version

    Examples of JS obtaining browser version and operating system version

    So, we can write the following code: Copy the code as follows: <script type="text/javascript">var Sys = {};var ua = navigator.userAgent.toLowerCase();var s;(s
    2025-08-12
  • Implementation code for limiting the maximum selection of checkboxes

    Implementation code for limiting the maximum selection of checkboxes

    In a recruitment website, by limiting the number of job tags selected by users, you can accurately locate the user's position. For example, the user is provided with an alternative position tag in the form of a check box, restricting the user from sel
    2025-08-12
  • AngularJS introductory tutorial: Detailed explanation of static templates

    AngularJS introductory tutorial: Detailed explanation of static templates

    To illustrate how angularJS enhances standard HTML, we will first create a static HTML page template and then convert this static HTML page template into an AngularJS template that can be displayed dynamically. In this step, we add the basic information o
    2025-08-12
  • How to prevent the Enter key from submitting a form

    How to prevent the Enter key from submitting a form

    How to prevent the Enter key from submitting the form is actually very simple, just in one sentence. onkeydown="if(event.keyCode==13)return false;" Just write this sentence in the from tag. If you press Enter on the page to submit automatically,
    2025-08-12
  • js simple instance of declaring arrays and adding object variables to arrays

    js simple instance of declaring arrays and adding object variables to arrays

    There are four ways to define an array to use the constructor: var a = new Array(); var b = new Array(10); var c = new Array("first", "second", "third"); or the array direct quantity: va
    2025-08-12
  • Deep understanding of object copying in JavaScript (Object Clone)

    Deep understanding of object copying in JavaScript (Object Clone)

    JavaScript does not directly provide object Clone methods. Therefore, when object b is changed in the following code, object a is changed. a = {k1:1, k2:2, k3:3};b = a;b.k2 = 4; If you only want to change b and keep a constant, you need to
    2025-08-12
  • PassWord input box code sharing

    PassWord input box code sharing

    Without saying much nonsense, I will just give you some practical information. If you don’t write well, please give your opinions. The specific code is as follows: function hiddenPass(event){ var password0 = document.getElementById("password0");
    2025-08-12
  • Introduction to common methods of NODE.JS encryption module CRYPTO

    Introduction to common methods of NODE.JS encryption module CRYPTO

    Use require('crypto') to call the encryption module. The encryption module requires the support of OpenSSL from the underlying system. It provides a way to encapsulate security credentials, which can be used for HTTPS secure networks and ordinary
    2025-08-12
  • Notes on JavaScript data type conversion

    Notes on JavaScript data type conversion

    1. After the immutability string of a string is defined, it will occupy memory space all the time. The memory space (stack) in the Penguin cannot be reassigned. 2. Short-circuit operation||, && binary operators, return the original value of the op
    2025-08-12
  • Drawing a rectangle instance in HTML5 Canvas

    Drawing a rectangle instance in HTML5 Canvas

    This article mainly introduces the examples of drawing rectangles in HTML5 Canvas. This article uses three APIs: fillRect, strokeRect, and clearRect. Friends who need it can refer to the following article translated from Steve Fulton & Jeff Fulton HTM
    2025-08-12
  • html5 image upload preview example sharing

    html5 image upload preview example sharing

    Comment: This article mainly introduces the preview example of html5 image upload. Friends who need it can refer to it.<!DOCTYPE html><html lang="zh-cn"><head><meta charset="utf-8" />
    2025-08-12