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
  • JavaScript custom addClass() method

    JavaScript custom addClass() method

    Copy the code as follows: //element: Need to add a new style element, value: new style function addClass(element, value ){ if (!element.className){ element.className
    2025-08-30
  • A deep understanding of JavaScript functions

    A deep understanding of JavaScript functions

    Methods & Functions Difference 1. Function is a more general concept, such as mathematics and programming 2. method is an object-oriented concept, which generally has a relationship in pairs with a class or object 1. The attributes of an object can be
    2025-08-30
  • Three.js Learning Grid

    Three.js Learning Grid

    The editor of the foreword has published about geometric shapes and materials before. I believe that after you have read and learned, we can use them to create objects. The most commonly used object is a mesh, which is an object composed of vertices, edge
    2025-08-30
  • js click button to achieve water ripple effect code (CSS3 and Canves)

    js click button to achieve water ripple effect code (CSS3 and Canves)

    Recently I saw a good button click effect. When clicking, it produces a ripples effect. It is quite fun. So I simply implemented it (not considering the compatibility of the lower version browser) Let's take a look at the effect first, as shown in the
    2025-08-30
  • HTML5 Canvas draw dot dots example

    HTML5 Canvas draw dot dots example

    This article mainly introduces the example of drawing dot dotted lines in HTML5 Canvas. HTML5 does not provide a method of drawing dotted lines. This article is modified based on Stack Overflow method. Friends who need it can refer to HTML5 Canvas. It pro
    2025-08-30
  • Three code comment methods for javascript

    Three code comment methods for javascript

    There are three comment methods in the javascript language. The first is to comment "/**/", which is generally the beginning of a js file, introducing the author, function and other information. Copy the code as follows:/**author:xxx*day:2008-08
    2025-08-30
  • How to use this keyword in JavaScript, working principle and precautions

    How to use this keyword in JavaScript, working principle and precautions

    To understand this based on the location of this, the situation can be roughly divided into three types: 1. In the function: this is usually an implicit parameter. 2. Outside the function (in the top scope): in the browser this refers to the global object
    2025-08-30
  • Introduction to alert and confirm functions

    Introduction to alert and confirm functions

    alert is a common method of window window objects in JavaScript script language. It only prompts a dialog box and has no cancel function; confirm is a method in JavaScript language. A cancel and confirm dialog box pops up, confirm returns true, cancel ret
    2025-08-30
  • JS determines an instance of an empty object (super simple)

    JS determines an instance of an empty object (super simple)

    Recently, the project encountered a problem in judging empty objects. Please review the relevant information and summarize it. Judging an empty object is no longer the same as judging an empty string, because an empty object is also an object, and memory
    2025-08-30
  • Summary of common errors and solutions in Laravel

    Summary of common errors and solutions in Laravel

    1. Error: "Can't swap PDO instance while within transaction" By querying the Laravel source code, you can confirm that the exception was thrown in the setPdo method:
    2025-08-30
  • js to get all sibling nodes of elements

    js to get all sibling nodes of elements

    For example, there are 10 lis in one ul, and there is a special style on the third li (such as the color is red, and the others are black). I want to set the color of all other lis - not including red lis - to red. At this time, you need to obtain all the
    2025-08-30
  • Solutions to select all BootStrap iCheck plug-in and get value value

    Solutions to select all BootStrap iCheck plug-in and get value value

    When using the jQuery iCheck plug-in, we encountered a problem, that is, when we use the ordinary js selection all function, it is invalid. $("#checkall").click(function(){if(this.checked){$("input[name='checkn
    2025-08-30
  • Simple implementation of fixed header for responsive tables

    Simple implementation of fixed header for responsive tables

    When displaying data, the fixed header can have better readability. 1. Implementation method: 1. Define 2 tables, one absolute fixed<div><table cellpadding="0" cellspacing="0" id="table1"><tr>
    2025-08-30
  • JavaScript must learn every day

    JavaScript must learn every day

    Object Part Object Type Object is an unordered collection that can store objects of any type, and all other objects are inherited from this object. There are two types of Object creation, one is to use the new operator and the other is literal notation. 1
    2025-08-30
  • Organize basic methods of cross-browser event operations in JavaScript

    Organize basic methods of cross-browser event operations in JavaScript

    Binding event EU.addHandler = function(element, type, handler){ //DOM2 level event processing, IE9 also supports if(element.addEventListener){ element.addEve
    2025-08-30