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
  • IFrame's src assignment problem (server side)

    IFrame's src assignment problem (server side)

    Today, I encountered this problem. The server-side iframe reassigns the src, adds an ID to the iframe, and adds runat=server 1. Assigns the src of the iframe through JS 2. If you need to be in the C# background, change the src of the iframe when the page
    2025-05-01
  • Summary of the method of submitting form by implementing Enter key in javascript

    Summary of the method of submitting form by implementing Enter key in javascript

    This example summarizes the method of submitting form by implementing the Enter key by JavaScript. Share it for your reference. The specific analysis is as follows: The first method: JavaScript implements the copy code as follows:<html><head><title> JavaS
    2025-05-01
  • Detailed explanation of converting URL strings and query strings in nodejs

    Detailed explanation of converting URL strings and query strings in nodejs

    In a complete URL string, this part from "" (excluding) to "#" (if # exists) or to the end of the URL string (if # does not exist) is called a query string. You can use the parse method in the Query String module to convert the string
    2025-05-01
  • Instructions for using events.emitter.listeners method in node.js

    Instructions for using events.emitter.listeners method in node.js

    Method Description: All listeners registered with the specified event will be returned as an array. Syntax: The code copy is as follows: emitter.listeners(event) Receive parameters: event Specify event Example: The code copy is as follows: server.on('
    2025-05-01
  • HTML5 declaration compatible with IE

    HTML5 declaration compatible with IE

    Comment: I accidentally saw Baidu's page code and thought of a statement writing method. Friends who need it can refer to it.<!DOCTYPE html> It is a statement of HTML5. Only IE8 and below in mainstream browsers do not support it, so IE will enter Quir
    2025-05-01
  • A brief discussion on javascript callback function

    A brief discussion on javascript callback function

    Pass the function as a parameter into another function. This function is the so-called callback function. This often encounters a situation where the A and B layers of a certain project are completed by different personnel. The A layer is responsible for
    2025-05-01
  • HasOwnProperty and isPrototypeOf method usage example in js

    HasOwnProperty and isPrototypeOf method usage example in js

    hasOwnProperty: is used to determine whether an object has a property or object that you gave the name. However, it should be noted that this method cannot check whether the object's prototype chain has this property, which must be a member of the obj
    2025-05-01
  • Introduction to the factory method model of JavaScript design pattern

    Introduction to the factory method model of JavaScript design pattern

    1. Simple factory model description: It is to create a factory class, which implements the creation of the implementation class for the same interface. But it seems that JavaScript does not have an interface number, so we remove the interface layer; of co
    2025-05-01
  • Use jquery to fix page anchor failure problem under iframe

    Use jquery to fix page anchor failure problem under iframe

    The application scenario is: the iframe page has no scroll bars, and the scroll bar appears in the parent form, and the anchor mark will fail, because the anchor point scrolls the window according to the current window scroll bar. After becoming a child f
    2025-05-01
  • js dynamically create tag example code

    js dynamically create tag example code

    Copy the code as follows: <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> <% String path = request.getContextPath()
    2025-05-01
  • Html5 Implementation of iPhone boot interface sample code

    Html5 Implementation of iPhone boot interface sample code

    Comment: You can use Html5 to imitate the Apple operating system to make an ios that can run on the Web platform. Let’s have a fun first today and create a boot interface first. Interested friends can refer to it. I hope it will be helpful to everyone. To
    2025-05-01
  • js implements the method of copying text or image to the clipboard after clicking

    js implements the method of copying text or image to the clipboard after clicking

    This article describes the method of copying text or pictures to the clipboard after clicking by JS. The code is very concise and practical. The specific function code is as follows: Implement copying text code:<table cellpadding="0" cellspacing="0"><tr>
    2025-05-01
  • html5 uses canvas to achieve the flame effect that follows the cursor's beating

    html5 uses canvas to achieve the flame effect that follows the cursor's beating

    Comment: This example uses HTML5 canvas element to display a beating flame on the screen through Javascript. The flame will follow the cursor. The complete code of this effect is as follows. Save the code to an HTML file to open it to view the effect. The
    2025-05-01
  • Use box to fix length and width to realize automatic picture carousel js code

    Use box to fix length and width to realize automatic picture carousel js code

    This small DEMO mainly uses the box to fix the length and width to display the picture. Put the picture into the imagebox and connect it. Each time you change the picture, the margin-left of the imagebox's style attribute can be changed to form a caro
    2025-05-01
  • js implementation randomly obtains elements from an array

    js implementation randomly obtains elements from an array

    Basic knowledge: Copy array: (1) Looping traversal copy (not recommended) The code of copying is as follows: var array = [1,5,9,7],new_arry = [],n = 0,len = arr.length;for(;n
    2025-05-01