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
  • Realize the functions of a WeChat mobile phone shake based on HTML5 (calculate the number of shakes)

    Realize the functions of a WeChat mobile phone shake based on HTML5 (calculate the number of shakes)

    1. DeviceOrientation: A event that encapsulates the directional sensor data to obtain the direction data in the static state of the mobile phone, such as the angle, orientation, orientation of the mobile phone. 2. DeviceMotion: Event with a motion sensor
    2025-03-06
  • Introduction to html5

    Introduction to html5

    HTML (Hypertext Markup Language, super -text mark language) was born in the early 1990s. It is used to specify the elements of web pages. Most of these elements are used to describe the content of web pages, such as title, paragraphs, lists, and point to
    2025-03-06
  • javascript key event (compatible with all browsers)

    javascript key event (compatible with all browsers)

    Part One: Use js to implement keylogging for browser key events. Pay attention to the three key event types of the browser, namely keydown, keypress and keyup, which correspond to the three event handles onkeydown, onkeypress and onkeyup respectively. A t
    2025-03-06
  • Example of carriage return in JS replacement text field

    Example of carriage return in JS replacement text field

    Copy code code as follows:<html><head><title> No title documentation</title><script type="text/javascript"> function aa() { s=form1.t1.value; s=s.repla
    2025-03-06
  • JS's regular test, match, exec detailed analysis

    JS's regular test, match, exec detailed analysis

    I can’t understand the regular expression GI at the beginning. After I found it on the Internet, I will share it with the expression of the expression:/pattern/flags, which (/mode/mark) the constructor function method method uses Regexp ("Pattern&quo
    2025-03-06
  • HTML5 converts the picture into the instance code of Base64

    HTML5 converts the picture into the instance code of Base64

    Base64 encoding introduction Base64 is an 8bit byte code encoding method commonly used on the Internet. Base64 can be used to transmit longer identification information in the HTTP environment. At the same time, it can Has a certain encryption function. W
    2025-03-05
  • Code examples for implementing normal animation and particle animation in canvas

    Code examples for implementing normal animation and particle animation in canvas

    Canvas is used to draw images and animations on web pages. It can be understood as a canvas, and the desired effect is built on this canvas. Canvas can draw dynamic effects. In addition to commonly used regular animations, the concept of particles can als
    2025-03-05
  • JS implementation example code to imitate Weibo publishing effect

    JS implementation example code to imitate Weibo publishing effect

    Effect: Idea: Use the multi-functional floating motion frame to achieve the Weibo effect. First, add the attributes in the textarea to the newly created li. Then, add the li to the ul, and then use the floating motion frame to dynamically display the data
    2025-03-05
  • Talk about the semanticization of HTML and some simple optimization

    Talk about the semanticization of HTML and some simple optimization

    1. What is semantic? The interpretation semanticization of Bing.com refers to the content of the document with a reasonable HTML mark and its unique attributes. Popularly speaking, semanticization is to process data and information, so that the machine ca
    2025-03-05
  • JS gets a simple example of the value of a text box, a drop-down box, and a radio box

    JS gets a simple example of the value of a text box, a drop-down box, and a radio box

    1. Text Box 1.1<input type="text" name="test" id="test"> The value is assigned to the variable t by var t=document.getElementById("test").value, and of course, it can also in turn make known changes.
    2025-03-05
  • Canvas's custom avatar function implementation code example

    Canvas's custom avatar function implementation code example

    Written in the first two days: The boss told me that the function of the custom avatar on the tiger's official website was implemented by Flash. Those who were not installed had to manually allow Falsh to run. So let me use Canvas to implement the sam
    2025-03-05
  • Detailed explanation of the arrangement order of multiple pictures drawn on canvas

    Detailed explanation of the arrangement order of multiple pictures drawn on canvas

    During development, if you need to use canvas to draw multiple pictures at the same time, but because the sizes of the pictures are different, the picture at the front of the array may not be loaded first and then drawn, which may cause the order of the d
    2025-03-05
  • Use HTML5 and CSS3 forms to verify the function

    Use HTML5 and CSS3 forms to verify the function

    Client verification is one of the most commonly used functions of web client programs. We used a variety of JS libraries to verify the form. HTML5 has already provided us with the function of form verification. As for why it is not popular, it is estimate
    2025-03-05
  • JS binding keyboard mouse event example code

    JS binding keyboard mouse event example code

    1. Binding keyboard Enter event (Note: If you want to press the Enter key at the same time when submitting JQ, you should not use Form at this time.) Copy code code as follows: document.onkeydown = function (EVT) {var EVT = window.event? Windo
    2025-03-05
  • Use HTML5 to implement asynchronous upload files, support cross -domain, with uploading inlet bar

    Use HTML5 to implement asynchronous upload files, support cross -domain, with uploading inlet bar

    The server to prepare IIS needs to set the http response header in IIS. As shown in the figure, add the following settings. Add this Access-Control-Allow-Origin. Only this line can support cross-domain. Otherwise, the chrome browser will report the page c
    2025-03-05