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 dynamically add onclick event to pass parameters or not to pass parameters

    js dynamically add onclick event to pass parameters or not to pass parameters

    1) When the method has no parameters, you can directly use onclick = method name window.onload = function() {$('btnTest').onclick = test; }function test() {alert(val);}2)
    2025-04-19
  • Simple and easy to use countdown js code

    Simple and easy to use countdown js code

    <!doctype html><html><head><meta charset="utf-8"><title>Simple and easy to use countdown js code </title><style>*{ margin:0; padding:0; list-style:no
    2025-04-19
  • Commonly used HTML encoding conversion

    Commonly used HTML encoding conversion

    Article introduction of Wulin.com (www.vevb.com): Commonly used encoding conversion of HTML. This code snippet is provided by the web teaching website. var encoding = (function () { function ToASCII(str) {return this.ToNor
    2025-04-19
  • Introduction to deep cloning of JavaScript objects

    Introduction to deep cloning of JavaScript objects

    I don’t know when it started, but a new word appeared in the front-end circle: object depth cloning. It looks very tall, but it is not new in fact. You may have used it in our actual project development, but because of the profoundness of Chinese characte
    2025-04-19
  • Two ways to set the hiding and display of js controls

    Two ways to set the hiding and display of js controls

    There are two ways to hide controls using JavaScript, namely by setting the "display" and "visibility" properties of the control's style. When style.display="block" or style.visibility="visible" the control or s
    2025-04-19
  • How to invalidate JavaScript's Alert popup box prevents popup warning box

    How to invalidate JavaScript's Alert popup box prevents popup warning box

    This article will introduce the method to invalidate JavaScript's Alert popup box, that is, to prohibit JS from popping up warning boxes. Because green Internet environments are now advocated, pop-up boxes will inevitably affect your mood, so the foll
    2025-04-19
  • HTML web page image tags

    HTML web page image tags

    Insert image tags<IMG> The colorful web pages I saw today are all because of the effects of images. Think about it, the web pages on the Internet are all plain text, which is very boring, and you will know the importance of images in web design. Images ca
    2025-04-19
  • Regarding the unsuccessful issue of javascript registering click event passing parameters

    Regarding the unsuccessful issue of javascript registering click event passing parameters

    As a Java programmer in the past six months, I have written more javaScript code than java code. Some time ago, I built a teller management and control system for a bank. In terms of teller authorization, various factors need to be considered in the autho
    2025-04-19
  • The browser solution that supports html5 for uploading file style

    The browser solution that supports html5 for uploading file style

    Comment: Recently, I was using the file upload control and found two compatibility issues of the file upload control: one is that the file upload control cannot change width through CSS under Firefox, and the other is that the file upload control looks an
    2025-04-19
  • HTML5 Snake Game Implementation Ideas and Source Code

    HTML5 Snake Game Implementation Ideas and Source Code

    Comment: The difficulty of the game is how to simulate the movement of a greedy snake. It's obviously simple if it's just a square. However, how to control the snake after it grows? Here is a brief introduction to the specific implementation. Inte
    2025-04-19
  • [defer] and [async] properties of js

    [defer] and [async] properties of js

    [defer] can be<script>中加入defer属性,告诉浏览器这段script不必立即执行,那么浏览器就会在完全载入文档之后再执行这个script,相当于window.onload,但它比window.onload更灵活。复制代码代码
    2025-04-19
  • HTML5 is now also hosted by the W3C

    HTML5 is now also hosted by the W3C

    The W3C's HTML working group today resolved to start from the current WHATWG work. Specifically, the group resolved to r
    2025-04-19
  • XHTML Introduction Learning Tutorial: Use of Framework Tags

    XHTML Introduction Learning Tutorial: Use of Framework Tags

    The framework structure allows several web pages to be displayed in one page in the browser at the same time. We do not recommend using it to design your website. Framework structure tags<frameset></frameset> The framework allows you to open two or even m
    2025-04-19
  • Custom event instance in Nodejs

    Custom event instance in Nodejs

    In fact, it is enough to inherit the EventEmitter of events, and then you can register the event through on; emit to trigger the event, removeListener to remove the event. The simple example is as follows: var util = require('util'); var Et = re
    2025-04-19
  • Examples of declaring variables or functions in advance in JavaScript

    Examples of declaring variables or functions in advance in JavaScript

    As shown in the title, see the example below. (You can use Chrome browser, then F12/or right-click to review the elements. Call out the developer tools and enter the console console to enter) (Usage tips: Shift+Enter can break the line in the middle of th
    2025-04-19