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
  • JS code to determine whether the file is being used

    JS code to determine whether the file is being used

    Copy the code. The code is as follows: // Determine whether the file is being used function FileINUse(filename:String):boolean;varusein:file;beginresult:=false;assignfile(usein,Fil
    2025-02-28
  • Using JS to implement 3D spherical tag cloud sample code

    Using JS to implement 3D spherical tag cloud sample code

    Matter: 1. It was found that there were insufficient instances and could not be hovered (to be solved) 2. The system could not randomly and automatically color (to be solved). First, a high-profile website using the tag cloud - the photo sharing website F
    2025-02-28
  • Summary of 10 ways to determine whether an object exists in JS

    Summary of 10 ways to determine whether an object exists in JS

    The design of the Javascript language is not rigorous enough, and errors can occur in many places if you are not careful. For example, consider the following situation. Now, we need to determine whether a global object myObj exists. If it does not exist,
    2025-02-28
  • JS code to remove duplicates from two arrays

    JS code to remove duplicates from two arrays

    Type 1: Copy the code as follows: function unique (arr){var obj = {},newArr = [];for(var i = 0;i < arr.length;i++){var value = arr[i]; if(!obj
    2025-02-28
  • The IFRAME adaptive method in the web response layout

    The IFRAME adaptive method in the web response layout

    The problem is in the response layout, we should be careful to treat the IFRAME element. The width and height properties of iframe elements set their width and height, but when the width or height of the block or height is less than the width or height of
    2025-02-28
  • Example of information listening for JS code in web ads

    Example of information listening for JS code in web ads

    The JS code provided in some web page advertisements can be code-injected and then monitor various elements. The following example is to monitor the input value of Baidu input box and then display it. The code code is copied as follows: ;(function() { fun
    2025-02-28
  • The prompt effect of a simple email login is similar to that of a yahoo email address

    The prompt effect of a simple email login is similar to that of a yahoo email address

    When the mouse focuses on the email address text box, the text "Please enter email address" in the text box is cleared. Reproduction diagram: Copy the code code as follows: <%@ Page Language="C#" AutoEventWireup="true" Cod
    2025-02-28
  • JS code to determine whether a character exists in a string

    JS code to determine whether a character exists in a string

    Copy the code code as follows: $(function(){ var str="sunny,woo"; var sear=new RegExp(','); if(sear.test(str)) { alert('Yes'); } var tag=',';
    2025-02-27
  • HTML page native VIDEO tag hides download button function

    HTML page native VIDEO tag hides download button function

    When writing a web project, I encountered a separate introduction video on the introduction page. There was only this short video, so no video components were used, so I wanted to solve the problem by using the native video tag. Although the introduction
    2025-02-27
  • Deeply understand the role of return in javascript

    Deeply understand the role of return in javascript

    The return here contains some detailed knowledge: for example: the difference between onClick='return add_onclick()' and onClick='add_onclick()'. JAVASCRIPT uses return when calling a function in an event. The return value is actually a re
    2025-02-27
  • A brief analysis of the caching problem of XMLHttpRequest

    A brief analysis of the caching problem of XMLHttpRequest

    Have you ever encountered this when using XMLHttpRequest? The first time you use it, it works fine, but after refreshing it, it doesn’t work. After clearing the cache and refreshing it, it works fine again. This is a problem often encountered when using X
    2025-02-27
  • JavaScript type conversion usage method

    JavaScript type conversion usage method

    (1) Converted to a string copy code code as follows: x + 'tostring () string () function converted to string generally output the function body, but it can rewrite its Tostring method (2) to digital copy code code code code As follows: PARSEINT (), Pa
    2025-02-27
  • Tips for setting the drop-down box as read-only with js

    Tips for setting the drop-down box as read-only with js

    During project development, we often encounter the drop-down box to be readonly, but unfortunately, select does not have readonly attributes, so we need to include a span outside the select and change it through js. The following html code adds the span t
    2025-02-27
  • Simple JavaScript mutual lock sharing

    Simple JavaScript mutual lock sharing

    Last year, several projects needed to use JavaScript to lock each other, so I wrote a few similar ones. This is one of them: Copy code code as follows: // published by indream Luo // [email protected]//version: chin: chin: chin: chin: chin: chin: chin: c
    2025-02-27
  • JS gets the implementation code of Text and Value selected by the drop -down list

    JS gets the implementation code of Text and Value selected by the drop -down list

    As shown below: Copy code code is as follows:
    2025-02-27