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
  • Instructions for using fs.readdirSync method in node.js

    Instructions for using fs.readdirSync method in node.js

    Method description: Synchronous version of fs.readdir(). The method returns an array object containing "all file names in the specified directory". Syntax: The code copy is as follows: fs.readdirSync(path) Since this method belongs to the fs mod
    2025-04-25
  • The wonderful use of iFrame as a pop-up layer to cover

    The wonderful use of iFrame as a pop-up layer to cover

    I recently worked in the project - Budou favorites. In short, it is to collect your favorite pictures on the cloth pocket page. This uses a lot of aspects about iframes. The summary is as follows: 1. As a pop-up layer, you can cover the entire page. If yo
    2025-04-25
  • Use monk to access mongodb in nodejs

    Use monk to access mongodb in nodejs

    I think it is more reliable to install mongodb: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/Start mongodb$ mongod connection m
    2025-04-25
  • A brief discussion on page loading js and performance analysis methods

    A brief discussion on page loading js and performance analysis methods

    1. Load the reference js file of the static page first, and then find out whether the reference file contains the onload function, such as the onload function in main.js, find out whether there are references to other js files in main.js, and priority is
    2025-04-25
  • Detailed explanation of the use of title tags and paragraph tags in XHTML

    Detailed explanation of the use of title tags and paragraph tags in XHTML

    XHTML Title Overview When writing Word documents, we often use titles, such as Chapter 1, 1.2.1, etc. The concept of title is also available in XHTML syntax. Level 6 titles are defined in XHTML, respectively<h1> arrive<h6> : XML/HTML Code
    2025-04-25
  • How to make browsers below IE9 and HTML5 compatible

    How to make browsers below IE9 and HTML5 compatible

    Comment: To make IE (including IE6) support HTML5 elements, you need to add a simple document.createElement declaration to the HTML header. For details, please let IE (including IE6) support HTML5 elements. We need to add the following JavaScript to the H
    2025-04-25
  • JavaScript implements playfair and hill password algorithm

    JavaScript implements playfair and hill password algorithm

    By the end of the period, we will take a look at the introduction to information security homework. I happened to encounter the playfair algorithm and the hill algorithm in classical cryptography algorithm. It is interesting to implement it in JavaScript
    2025-04-25
  • JS to implement random switching background pictures of web pages

    JS to implement random switching background pictures of web pages

    This article describes the method of randomly switching background images on JS. Share it for your reference. The specific implementation method is as follows: First, prepare some images, and control the size of the image (regardless of size or data size)
    2025-04-25
  • Instructions for using http.response.writeHead method in node.js

    Instructions for using http.response.writeHead method in node.js

    Method description: Send a response header to the requesting client. This function can only be called once at most in a request. If it is not called, a response header will be automatically generated. Syntax: Copy the code as follows: response.writeHead(s
    2025-04-25
  • Structure and semantics of HTML5 (2): Structure

    Structure and semantics of HTML5 (2): Structure

    Comment: Due to the lack of structure, even good HTML pages are difficult to deal with. The level of the title must be analyzed to see how each part is divided. The sidebar, footer, header, navigation bar, main content area and articles are represented by
    2025-04-25
  • Key Points of Standard HTML Advanced Tutorials (xhtml)

    Key Points of Standard HTML Advanced Tutorials (xhtml)

    The purpose of the HTML advanced tutorial is to explore the advantages of HTML and optimize affinity and ease of use. Because HTML elementary tutorials and HTML intermediate tutorials take the stance of using the latest HTML standard (XHTML version 1.0 or
    2025-04-25
  • Deep understanding of javascript variable declarations

    Deep understanding of javascript variable declarations

    Compared with C/C++, the for loop in ECMAScript cannot create a local context. Copy the code as follows: for (var k in {a: 1, b: 2}) {alert(k);} alert(k); // Even though the loop has ended, the variable k is still in the process.
    2025-04-25
  • Solution to the problem of not being able to obtain the input focus repeatedly under Firefox

    Solution to the problem of not being able to obtain the input focus repeatedly under Firefox

    I encountered a very difficult problem today, that is, when I was doing some verification of input boxes, the business logic of my project is that when I select a specific option of a select, an input input box needs to be displayed for the user to input
    2025-04-25
  • js uses html() or text() method to get the displayed value of setting p tag

    js uses html() or text() method to get the displayed value of setting p tag

    html() method This method is similar to the innerHTML attribute in JavaScript, and can be used to read or set the HTML content in a certain element. To get the content of an element, you can do this: var p_html = $("p").html(); //Get the HTML co
    2025-04-25
  • Tutorial on using hyperlink tags in HTML

    Tutorial on using hyperlink tags in HTML

    The various HTML documents of the website are connected together through hyperlinks to form a coherent website. Users can click on the hyperlink to jump to the page they want to browse. Therefore, hyperlinks can be seen in any website and are the core com
    2025-04-25