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
  • Problem with input method switching in text box in javascript

    Problem with input method switching in text box in javascript

    You can turn off the input method in the page input control by setting ime-mode. If you want to turn off the input method: < input style ="ime-mode:disabled" > If you want to use the current input method:<input style="ime-mode:active"> Whe
    2025-01-18
  • Implementation code for javascript digital formatted output

    Implementation code for javascript digital formatted output

    Copy the code code as follows: <script type="text/javascript">var format = function (number, form) {var forms = form.split('.'), number = '' +
    2025-01-18
  • Teach you how to write a greedy snake step by step using Canvas

    Teach you how to write a greedy snake step by step using Canvas

    I watched a few episodes of Canvas videos on MOOC before, and I always wanted to practice writing something. I feel that Snake is relatively simple. When I was in college, I also wrote a character version of C language. Unexpectedly, I still encountered m
    2025-01-18
  • Detailed explanation of rem adaptation layout

    Detailed explanation of rem adaptation layout

    There are many types of mobile phones today, not to mention the iPhone series, there are countless types of Android phones, so it is impossible to write a set of layout styles for every mobile phone. This is also impossible, but for front-ends that are in
    2025-01-18
  • Example of drag and drop effect in ExtJS

    Example of drag and drop effect in ExtJS

    Copy the code code as follows:<html><head><title> hello</title><meta http-equiv="content-type" content="text/html;charset=utf-8">
    2025-01-18
  • Use Javascript to get the specific location of page elements

    Use Javascript to get the specific location of page elements

    In the process of making a web page, you sometimes need to know the exact location of an element on the web page. The following tutorial summarizes the relevant knowledge of Javascript in web page positioning. 1. The size of the web page and the size of t
    2025-01-18
  • JavaScript-window object usage example

    JavaScript-window object usage example

    The window object is the top-level object in the JavaScript browser object model and contains many common methods and properties: 1 Open a new window and copy the code as follows: window.open(pageURL,name,parameters) where: pageURL is the sub-window path
    2025-01-18
  • html5 postMessage front-end cross-domain and front-end listening method example

    html5 postMessage front-end cross-domain and front-end listening method example

    Sometimes you encounter silly requirements, such as front-end single sign-in! When you encounter a need, you have to think of a solution. Here I will give you a simple front-end single sign-in solution, which uses postMessage cross-domain information tran
    2025-01-18
  • Example of using HTML5 IndexDB to store images and files

    Example of using HTML5 IndexDB to store images and files

    The other day we wrote about how to save images and files in localStorage, it was about the pragmatism available to us today. However, localStorage has some performance implications - we will discuss this in a later blog - and the desired approach in the
    2025-01-18
  • In-depth understanding of pass-by-value and pass-by-reference in JavaScript

    In-depth understanding of pass-by-value and pass-by-reference in JavaScript

    1. The value of a by value variable is copied and will have nothing to do with the original value. That is to say, even if the new value is modified, the original value will not change. In JavaScript, the basic types are Passing by value. Copy the code as
    2025-01-18
  • Implementation of form submission in html

    Implementation of form submission in html

    Form submission code 1. Source code analysis<!DOCTYPE html><html lang=en><head><meta charset=UTF-8>
    2025-01-18
  • Canvas puzzle function implementation code example

    Canvas puzzle function implementation code example

    I recently encountered the photo collage function when working on a project, so I will share my encapsulated canvas collage function here. The code may not be well written. If you have any questions or have a better method, you can chat with me privately,
    2025-01-18
  • Implementation code for taking HTML screenshots and saving them as local images

    Implementation code for taking HTML screenshots and saving them as local images

    The specific code is as follows:<!DOCTYPE html><html><head><meta charset=UTF-8><title> html2canvas_download</title>
    2025-01-18
  • Implementation code of canvas pixel drawing board

    Implementation code of canvas pixel drawing board

    In a recent project, I want to implement a pixel-style drawing board, where small pixel grids can be erased, frame selections change color, and various graphics can be erased. Such a small project may seem simple, but it contains a lot of things. To draw
    2025-01-18
  • Parsing 11 difficult-to-understand problems in Javascript

    Parsing 11 difficult-to-understand problems in Javascript

    1. Original value and reference value. The original value is stored in the stack, and the reference value is stored in the heap. For example, the program: copy the code as follows: function Person(id,name,age){this.id = id;this.name = name ;this.age = age
    2025-01-18