Change the page style with a similar sohu blog implemented by js (simple version)
The Code is as follows:
Prowin. js/*** @ Author ldgmc*/Function PopWin (id, width, title ){This. id = id;This. width = width;This. title = title;This. createIns =
A good UBB coding function implemented in JavaScript: function JsUBB (str)
{
Var re = // [I/] (. [^/[] *)/[// I/]/gi;
Str = str. replace (re ,"
$1"); // Italics
Re = // [B/] (. [^/[] *)/[// B/]/gi;
Str = str. replace (re ,"
$1"); // Bold
Re = // [u/]
About how to use runtimeStyle attributes. When we use the DOM provided by IE in IE, we will find that there are three groups for style attributes, they are style, runtimeStyle, and currentStyle. I have mentioned the functions and basic functions of
The special features of the operators & quot; | & quot; and & quot; & amp; & quot; In JScript are used to simplify the code into many operators in JScript, three logical operators are provided.
&&,
|And
!Oh ?! Is provided in advanced languages.
Lazy to the end-Automatic Mouse clicking (including time judgment) is actually completed before the beginning, this time slightly improved
Http://www.healdream.com/upload/html/autoclick.html address:
The Code is as follows:
Untitled
JAVASCRIPT Object and attribute SCRIPT tag
Contains JavaScript code.
Syntax
Attribute
LANGUAGE-defined scripting LANGUAGE
SRC defines a URL to specify the file ending with. JS
Windows objects
The top-level object of each HTML
The most ideal solution is to add the latest code (digg, diigo) to your favorites. Click "add to Favorites" and open the "pick up" window in the new window. You can automatically enter the title and Source Address of the excerpt, it would be better
ShowModalDialog and showModelessDialog use of showModalDialog and showModelessDialog. Windows is used in a B/s structure project. the pop-up window is blocked by some ad blocking tools. You can only use showModalDialog to solve the problem, but the
Js WEB development and debugging tool: Firebug download
I saw an introduction to Firebug in the MI Sui Blog. I downloaded and tried it for a while. It is indeed a good tool.
I. Results
Ii. Main Functions
Inspect and edit HTML
Tweak CSS to
Javascript reference object method 51js
==================
Reference Method on the same page:
1. Use id:
Link1.href
2. Use name:
Document. all. link1.href
3. Use sourseIndex:
Document. all (4). href // note that there are HTML, HEAD, TITLE,
To solve the problem of FLASH, you need to click the activated code and put the following code at the bottom of the page.
The Code is as follows:
ScriptFunction flashrun (){Var d = document. getElementsByTagName ("object ")For (x = 0; x
{
Solving the problem of [using event in FireFox is troublesome] It is very troublesome to compile the event processing function in FireFox.
Because FireFox does not have window. event. To get the event object, you must declare the first parameter of
Function details of JavaScript (Built-in Object)
Function)
Function is the object from which JavaScript functions are derived. functions are first-class data types in JavaScript, so they may be assigned to variables and passed to functions as you
The code in the cloud web advertisement prompts an error.
The Code is as follows:
Script var NowFrame = 1;Var MaxFrame =;Var bStart = 0;Function fnToggle (){Var next = NowFrame + 1;If (next = MaxFrame + 1){NowFrame = MaxFrame;Next = 1;}If (bStart
Second-Level Domain Name Redirection class DomainClass. js
/*
@ Class DomainClass (second-level domain name conversion Class)
@ Author Xiaoyao cloud-http://bbs.51js.com
@ Version 1.0
@ Date 2006-11-2
@ Rights keep this information if you use it.
About javascript's "static Class & quot; (the following questions are only raised for javascript. Please note that if you have any questions, just laugh)
1. What is static or pseudo-static?
2. What is the syntax for writing static classes in
Using TextRange to obtain the cursor position in the input box TextRange is an object used to represent text in HTML elements. Although we do not usually use this object, it is provided in IE4.0. However, the call methods provided by TextRange are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service