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
  • Insert elements at specific index of JS array

    Insert elements at specific index of JS array

    Many array-related tasks sound simple, but they are not always the case, and developers often don't use it. Recently I encountered a requirement: insert an element into a specific index of an existing array. It sounds easy and common, but it takes a l
    2025-04-16
  • Compatible with IE, firefox and chrome js get time (getFullYear)

    Compatible with IE, firefox and chrome js get time (getFullYear)

    Generally speaking, when we get the year, we pass the following code: var now = new Date(); var initYear = now.getYear(); The above code is correct initYear in IE, but ff and chrome are incompatible, so it is replaced by va
    2025-04-16
  • CSS Tutorial: IE9 does not support line-height

    CSS Tutorial: IE9 does not support line-height

    Article introduction of Wulin.com (www.vevb.com): IE9 does not support CSS line-height's vertical centering solution. We often encounter web pages we wrote in IE9, and sometimes the text cannot be vertically centered. What is the reason why IE9 line-h
    2025-04-16
  • Tutorial on using HTML5 to realize the function of shaking your phone

    Tutorial on using HTML5 to realize the function of shaking your phone

    Comment: The shake function on the mobile phone is good. How to implement it? At the Baidu Developer Conference, I introduced another important feature of HTML5, which is DeviceOrientation, which is advanced packaging of the underlying direction sensor an
    2025-04-16
  • Document.referrer in JavaScript test results in various browsers

    Document.referrer in JavaScript test results in various browsers

    Some time ago, I needed to obtain the source of the page through JavaScript. This operation is very simple. You can get it by using document.referrer. However, there are still many unexpected situations in actual applications, so let’s briefly sort it out
    2025-04-16
  • Js realizes the text effect of rolling and color change

    Js realizes the text effect of rolling and color change

    Js realizes the scrolling and color-changing text effect. On the effect display page, you can see the text alternating color-changing display to attract people's attention. The effect is really good. After copying the code to your website, it will be
    2025-04-16
  • Discussing the performance problem of js string array stitching

    Discussing the performance problem of js string array stitching

    We know that in js, string concatenation is one of the lowest performing operations. For example: the copy code code is as follows: var text="Hello"; text+="World!"; Early browsers did not optimize this operation. Since strings are imm
    2025-04-16
  • JavaScript basic tutorial: alert pop-up prompt box example

    JavaScript basic tutorial: alert pop-up prompt box example

    The alert command pops up a prompt box to facilitate intuitive understanding of JavaScript. This section will provide several simple examples for JavaScript introduction. The following code is an example of a pop-up prompt box: Copy the code as follows:
    2025-04-16
  • HTML5 instance tutorial: input tag time type attribute instance

    HTML5 instance tutorial: input tag time type attribute instance

    Wulin.com (www.vevb.com) Article introduction: Newly added time type application for input. Today, the web teaching website will lead you to appreciate the new features of HTML5. The application of tagging input to HTML5 has been newly added time type. If
    2025-04-16
  • Analysis of the maximum number of recursive calls supported by JavaScript

    Analysis of the maximum number of recursive calls supported by JavaScript

    Are you curious about how many recursive calls can be made by the JavaScript engine? How many times can you find the following function recursively call it to help you find the answer: (Inspired by Ben Alman's gist) Copy the code as follows: function
    2025-04-16
  • Complete collection of Javascript Copy (Copy) action methods

    Complete collection of Javascript Copy (Copy) action methods

    1. Click the button to copy the content in the text box <script type="text/javascript">function copyUrl2(){var Url2=document.getElementById("biao1");Url2.sel
    2025-04-16
  • JS gets the example code for dynamically loading JS files in browser language

    JS gets the example code for dynamically loading JS files in browser language

    The project is for the multi-language version. The front desk uses easyi to load the easyi language package by obtaining the browser language version. The easyi default language package en-US code is as follows<script type="text/javascript"> //ie if (navi
    2025-04-16
  • 28 new features, new techniques and new technologies you must know about HTML5

    28 new features, new techniques and new technologies you must know about HTML5

    Comment: HTML5 has many new features. New code. Very good. Let's summarize it now. For reference only 1. New Doctype Although used<!DOCTYPE html> , even if the browser does not understand this sentence, it will render according to the standard mode 2.
    2025-04-15
  • PHP Reading SQLite Database Introduction Code

    PHP Reading SQLite Database Introduction Code

    Introduction to SQLite SQLite is a lightweight database that complies with ACID-compliant associated database management system. Its design goal is embedded, and it has been used in many embedded products. It occupies very low resources. In embedded devic
    2025-04-15
  • A brief analysis of the difference between HTML tag strong and em

    A brief analysis of the difference between HTML tag strong and em

    A brief analysis of the difference between HTML tag strong and em can be discussed from three levels. First look at the description in HTML 4.01: EM: Indicates emphasis. STRONG: Indicates stronger emphasis. em
    2025-04-15