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
  • Encapsulate a simple instance of obtaining a dom element

    Encapsulate a simple instance of obtaining a dom element

    Examples are as follows:<script> //函数: 反复执行的代码块 //全局只有一个对象,防止全局变量污染 var itcast = { getElen : { tag : function(tag){
    2025-07-09
  • Comparative summary of Javascript

    Comparative summary of Javascript

    During the Javascript application process, we will encounter various comparisons. Today, I have compiled three situations for you and learn them together. 1. Comparison of two objects. Javascript has mixed some strange features. Let's take a look at s
    2025-07-09
  • JavaScript implements simple drag effect

    JavaScript implements simple drag effect

    Dragging is a very cool thing. You click on an object, hold down the mouse, move the mouse to another area, and release the mouse button to place the object here. Here is a simple case: HTML part: Note that dragging elements must be defined in absolute te
    2025-07-09
  • JavaScript Ajax Programming Application

    JavaScript Ajax Programming Application

    1. Ajax(Asynchronous JavaScript + XML) can request additional data like the server without uninstalling the page, that is, local refresh technology 2. Create an XHR object function createXHR () { if (typeof XMLHttpR
    2025-07-09
  • JS interview questions---About the algorithm level

    JS interview questions---About the algorithm level

    There are 100 steps, which can take 1 step or 2 steps, so how many ways do one walk? Today is the phone interview. When I encountered an algorithm problem, I was confused in an instant; then I was smart and thought that if a person took 1 step every time,
    2025-07-09
  • Javascript converts numbers into currency format strings

    Javascript converts numbers into currency format strings

    The first method here is to use JavaScript to convert the number number into the format of a currency string (parameters: preserve the decimal places, currency symbols, integer part of the thousand separator, decimal separator). The second method here is
    2025-07-09
  • Simple instance of onclick event in DIV dynamically added js

    Simple instance of onclick event in DIV dynamically added js

    The easiest thing is this:<input type="button" onclick="alert(this.value)" value="我是 button" /> Dynamically add onclick event:
    2025-07-09
  • How to determine data type and array type in Javascript

    How to determine data type and array type in Javascript

    Such basic things should not be recorded anymore, but, review the past and learn new things~ Let's start with the data type js six major data types: number, string, object, Boolean, null, undefinedstring: Explained by single or double quotes, such as
    2025-07-09
  • js to obtain latitude and longitude

    js to obtain latitude and longitude

    js to obtain latitude and longitude
    2025-07-09
  • Method of JS control layer making circular motion

    Method of JS control layer making circular motion

    This article describes the method of JS control layer making circular motion. Share it for your reference, as follows:
    2025-07-09
  • JavaScript navigation script determines the current navigation

    JavaScript navigation script determines the current navigation

    Without further ado, I will just post code to everyone. <script>$(function () {//highlight current / active link 左侧导航判断当前活动导航$('ul.main-menu li a').each(functio
    2025-07-09
  • require.js and plug-in text.js to implement the simplest single-page application

    require.js and plug-in text.js to implement the simplest single-page application

    I wrote a test code and used require.js to cooperate with its plug-in text.js to implement the simplest single-page application. It can be recorded easily and is convenient for future review. git address: https://github.com/lily1010/requireSPA. Let's
    2025-07-08
  • Implementation method of JavaScript pause and continue timer

    Implementation method of JavaScript pause and continue timer

    There is no strict pause or restart for JavaScript timers, only clear stop, but allChild[index].onclick = function(){// When clicking on the target and the following conditions are met, the timer time is paused if(g
    2025-07-08
  • Angular routing route instance code

    Angular routing route instance code

    AngularJS routing is essential for single-page applications to jump from one view of the page to another. As applications become more and more complex, we need a reasonable way to manage the interfaces that users see during use. AngularJS is to break up v
    2025-07-08
  • js realizes the special effect of adding product parabola to shopping cart

    js realizes the special effect of adding product parabola to shopping cart

    This article shares the animation code for js to implement parabola and add shopping cart for your reference. The specific content is as follows parapola.js/*! * by zhangxinxu(.com) 2012-12-27 * you can visit http://www.zhan
    2025-07-08