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
  • Html example of blocking right-click menu and left-click swipe function

    Html example of blocking right-click menu and left-click swipe function

    Disable right-click menu<body oncontextmenu=self.event.returnValue=false> Disable left-click copying. Use CSS to control whether text can be selected.unselec
    2025-02-01
  • HTML5 method of using sessionStorage to transfer page values

    HTML5 method of using sessionStorage to transfer page values

    The local storage function provided by HTML5 allows web applications to store data in the user's local browser. In HTML5, data is not passed by every server request, but data is only used when requested. It makes it possible to store large amounts of
    2025-02-01
  • JS continuous upward scrolling effect code

    JS continuous upward scrolling effect code

    Copy the code code as follows: <div id=demo style=overflow:hidden;height:139;width:232;background:#f4f4f4;color:#ffffff><div id=demo1>
    2025-02-01
  • FireBug debugging JS introductory tutorial how to debug JS

    FireBug debugging JS introductory tutorial how to debug JS

    Needless to say, the installation is very simple. Just find FireBug in the plug-in library on FireFox and it will be OK. The picture below is the FireBug Debug window. FireBug is very commonly used by artists, and the company’s artist sister is very skill
    2025-02-01
  • Example of creating rotating Tai Chi using Canvas

    Example of creating rotating Tai Chi using Canvas

    Preface I haven’t touched canvas for a long time. I suddenly wanted to review it this afternoon, so I wrote a rotating Tai Chi. Haha, it’s quite fun. I will show the process of writing it here. The rotation is implemented using CSS, without using canvas i
    2025-02-01
  • HTML5's Video tags have some problems that cannot be played by MP4 (multi -picture)

    HTML5's Video tags have some problems that cannot be played by MP4 (multi -picture)

    Now the application of web pages is extremely wide. In actual projects, some MP4 files can be played normally in the H5 webpage, but some are not. Why is this? 1. First of all, I downloaded a MP4 file from the Internet. IE10 and Google can be played norma
    2025-02-01
  • Sample code for image compression using canvas

    Sample code for image compression using canvas

    When doing ID card recognition in the project, the base64 format encoding of the image needs to be transmitted, but the photos taken by the mobile phone are too large, and converting them to base64 is simply terrible, so I looked for a solution. The knowl
    2025-02-01
  • HTML5 new control date and time selection input implementation code

    HTML5 new control date and time selection input implementation code

    HTML5 defines several new date-related controls. Browsers that support date controls will provide a convenient drop-down calendar for users to select. Note: Currently, only Chrome and Opera provide drop-down calendar support, other browsers are still a no
    2025-02-01
  • js export TXT sample code

    js export TXT sample code

    Copy code code as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    2025-02-01
  • js code for adaptive center display of floating div

    js code for adaptive center display of floating div

    When the div is floating and the browser window changes, it cannot be displayed in the center (because the left or right value is usually set when floating). You can first use jquery to get the width of the surrounding div that changes as the browser chan
    2025-02-01
  • Use of anchor point in html

    Use of anchor point in html

    Now summarize several situations of controlling the anchor points: 1. On the same page<a name=add></a><!-- 定义锚点 --> <a href=#add>Jump to ADD</a> 2. In different pages, the anchor point is positioned in A.HTML, and the jump jump from the link of another pa
    2025-02-01
  • LocalStorage and SessionStorage User Records (Recommended)

    LocalStorage and SessionStorage User Records (Recommended)

    By reading the usage of the web storage Locastorage and SessionStorage, the god gods tried it for a trial, leaving a memorandum here. In the project, if you use storage many times, you need to store a lot of data, and you need to encapsulate it into a fun
    2025-02-01
  • Detailed explanation of the vertical centering solution in HTML5

    Detailed explanation of the vertical centering solution in HTML5

    In CSS, you have to complain. You can use margin: 0 auto; to achieve horizontal centering, but margin: auto 0 cannot achieve vertical centering. The main reason here is that the parent control, that is, the control itself, is not positioned correctly. Loo
    2025-02-01
  • In-depth understanding of variables and scope, undefined and null in JS

    In-depth understanding of variables and scope, undefined and null in JS

    1. Javascript variable scope In JavaScript, variables are mainly divided into two types: local variables and global variables, and the corresponding scopes are also local scope and global scope. 1 Local variables and scope local variables are generally de
    2025-02-01
  • Example of Canvas drawing floating ball effect

    Example of Canvas drawing floating ball effect

    Recently, I have been paying attention to blockchain information, wandering around, and accidentally saw the effect of the homepage of this website. It is a bunch of floating balls. When the ball is close, there will be a sensing line connected to it. The
    2025-02-01