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
  • Set the white background to transparent color under IE browser

    Set the white background to transparent color under IE browser

    Recently, I need to frequently use iframe to draw hierarchical frameworks for pages during project work. Most browsers do not have backgrounds, but iframes have a white background color by default in IE. When the main background color is not white, it wil
    2025-04-25
  • Collecting common code snippets of javascript

    Collecting common code snippets of javascript

    1.json to string copy code code is as follows: function json2str(o) {var arr = [];var fmt = function (s) {if (typeof s == 'object' && s != null) ret
    2025-04-25
  • js floating couplet ad special effect code

    js floating couplet ad special effect code

    JS creates ad special effects on the left and right of web pages. Quote: Copy the code as follows:<script src="js/ad.js" type="text/javascript"></script> 2. Page call
    2025-04-25
  • Example of operating mysql database in nodejs

    Example of operating mysql database in nodejs

    Introduction: Following the previous NodeJS Hello, World! We can also see other powerful features. With the current popularity of NodeJS community and the support of a large number of engineers, a large number of modules have been gradually introduced. Co
    2025-04-25
  • Instructions for using fs.fstatSync method in node.js

    Instructions for using fs.fstatSync method in node.js

    Method description: Synchronous version of fstat(). The method returns a stat array object, containing the following information: (The following information is the file information read in the case, not the default value) The copy code code is as follows:
    2025-04-25
  • Solution to save format problem in HTML TextArea

    Solution to save format problem in HTML TextArea

    Textarea format can be saved to the database when it is saved, but when it is displayed, the page cannot be displayed in the format at the beginning because /n and cannot be transferred. Therefore, when displaying the page, a layer of labels should be nes
    2025-04-25
  • ECMAScript6's new feature Arrow Function (Arrow Function) detailed introduction

    ECMAScript6's new feature Arrow Function (Arrow Function) detailed introduction

    The arrow function is one of the most popular updates in ECMAScript 6. It introduces a new syntax to define functions using "arrow" (=>), it...it's bunkered ~. The main difference between arrow functions and traditional JavaScript functio
    2025-04-25
  • Summary of common validation function instances of JavaScript

    Summary of common validation function instances of JavaScript

    This example summarizes common validation functions for JavaScript. Share it for your reference. The specific summary is as follows: 1. String class verification 1. The length limit copy code code is as follows: <script>function test(){if(document.a.b.val
    2025-04-25
  • Go!Png: Tools for synthesizing Css Sprite Pictures with html5

    Go!Png: Tools for synthesizing Css Sprite Pictures with html5

    Article introduction of Wulin.com (www.vevb.com): Css Sprite, sometimes called Sprite and Elf Picture, is a problem that every front-end opening encounters, and is also a common method of small picture loading optimization. I believe all students know the
    2025-04-25
  • A drop-down menu combining css and js supports mainstream browsers

    A drop-down menu combining css and js supports mainstream browsers

    First of all, I have worked in the front-end position of the web for many years, but I have no technical requirements for the position. html and css are used more often, and there are very few original JavaScript, and they are basically copy-modified. So
    2025-04-25
  • Instructions for using fs.truncate method in node.js

    Instructions for using fs.truncate method in node.js

    Method description: File content interception operation. Syntax: The code copy is as follows: fs.truncate(path, len, [callback(err)]) Since this method belongs to the fs module, it is necessary to introduce the fs module (var fs= require("fs"))
    2025-04-25
  • Detailed explanation of the source code of JS mini game chess dark chess

    Detailed explanation of the source code of JS mini game chess dark chess

    This article describes the source code of the chess dark chess in JS mini games, and is shared with you for your reference. The specific details are as follows: The following figure after the game is run: Javascript part: /** chinese chess * Author: fdipz
    2025-04-25
  • JS+CSS to achieve the effect of popping up full-screen gray-black transparent mask

    JS+CSS to achieve the effect of popping up full-screen gray-black transparent mask

    This article describes the method of popping up a full-screen gray-black transparent mask effect by js+CSS. Share it for your reference. The specific analysis is as follows: Many websites have such an effect. After a certain operation, a gray-black transl
    2025-04-25
  • js implementation click to add an input node

    js implementation click to add an input node

    The code is too concise, so I won’t say much nonsense, just give it: Copy the code as follows: <script>function text(){var obj=document.createElement("input");obj.value="1";document.body
    2025-04-25
  • html5's canvas achieve 3D snowflake dance effect

    html5's canvas achieve 3D snowflake dance effect

    Comment: The 3D snowflakes dance effect is achieved using HTML5's canvas tag and three.js. You can drag the mouse to rotate, you need to browse var SCREEN_WIDTH = window.innerWidth; var S
    2025-04-25