Controls the display and hiding of horizontal and vertical scroll bars?
<Body style = "overflow-y: hidden"> remove the X axis.
<Body style = "overflow-x: hidden"> remove the Y axis.
<Body scroll = "no"> hide
Table color change
<TD onmouseover = "this. style. backgroundColor = '# ffff '"
Onmouseout = "this. style. backgroundColor = ''"
Style = "CURSOR: hand"> Prohibit copying, drag and select
<Body ondragstart = window. event. returnValue = false oncontextmenu = window. event. returnValue = false onselectstart = event. returnValue = false> Common iframe page
<Iframe name = "name" src = "main.htm" width = "450" height = "287" scrolling = "Auto" frameborder = "0"> </iframe>
Iframe adaptive height
<Iframe name = "pindex" src = "index. asp "frameborder = false scrolling =" auto "width =" 100% "height =" 100% "frameborder = no onload =" document.allpolic'pindex').style.height?pindex.doc ument. body. scrollHeight "> </iframe> Change to your own icon in front of the IE Address Bar & your icon can be displayed in favorites
<Link rel = "Shortcut Icon" href = "favicon. ico">
<Link rel = "Bookmark" href = "favicon. ico"> Font size scaling
More and more people are making a bubble for a long time, and the penetration rate of glasses is getting higher and higher, which makes the text bigger and clearer to more users.
<Script type = "text/javascript">
Function doZoom (size)
{Document. getElementById ('zoom '). style. fontSize = size + 'px ';}
</Script>
<Span id = "zoom"> text to be specified </span>
<A href = "javascript: doZoom (16)"> large </a> <a href = "javascript: doZoom (14) "> medium </a> <a href =" javascript: doZoom (12) "> small </a> How to block div with select
Add the following code to the div and adjust it as needed.
<Iframe src = "javascript: false" scrolling = "no" frameborder = "0" style = "z-index:-1; position: absolute; top: 5px; left: 2px; width: 168; height: 100px; ">
</Iframe>
Iframe (embedded frame) Adaptive height
The entered embedded address must be on the same site as the current page. Otherwise, the system will prompt "Access Denied !". You have permission for cross-Origin references. For more information, see.
<Iframe name = "guestbook" src = "gbook/index. asp "scrolling = no width =" 100% "height =" 100% "frameborder = no onload =" document.all+'guestbook').style.height#guestbook.doc ument. body. scrollHeight "> </iframe> New jump menu window
<Select name = "select" onchange = "window. open (this. options [this. selectedIndex]. value)">
<Option value = "http://www.microsoft.com/ie"> Internet Explorer </option>
<Option value = "http://www.microsoft.com"> Microsoft Home </option>
<Option value = "http://msdn.microsoft.com"> Developer Network </option>
</Select> Flash Transparent options
<Param name = "wmode" value = "transparent"> Add to favorites and set as Homepage
Add to favorites:
<A href = "javascript: window. external. addFavorite ('HTTP: // link', 'description');"> Add to favorites </a>
Set as homepage:
<A href = # onclick = this. style. behavior = 'url (# default # homepage) '; this. setHomePage ('HTTP: // link');> set as homepage </a> Record and display the last modification time of the webpage
<Script language = JavaScript>
Document. write ("Last Update time:" + document. lastModified + "")
</Script> Holiday countdown
<Script Language = "JavaScript">
Var timedate = new Date ("October 1,2002 ");
Var times = "National Day ";
Var now = new Date ();
Var date = timedate. getTime ()-now. getTime ();
Var time = Math. floor (date/(1000*60*60*24 ));
If (time> = 0)
Document. write ("now" + times + "and:" + time + "day ")
</Script> Add to HEAD
Disable caching
<Meta http-equiv = "Expires" CONTENT = "0">
<Meta http-equiv = "Cache-Control" CONTENT = "no-cache">
<Meta http-equiv = "Pragma" CONTENT = "no-cache">
Make the background of documents in the IFRAME framework transparent
<Iframe src = "about: <body style = 'background: transparent'>" allowtransparency> </iframe> Maximize when a window is opened
<Script language = "JavaScript">
<! -- Begin
Self. moveTo (0, 0)
Self. resizeTo (screen. availWidth, screen. availHeight)
// End -->
</Script> Add background music
<Bgsound src = "mid/windblue [1]. mid" loop = "-1"> only applicable to IE
<Embed src = "music. mid" autostart = "true" loop = "true" hidden = "true"> applicable to both Netscape and IE Scroll
<Marquee direction = up height = 146 onmouseout = start () onmouseover = stop () scrollAmount = 2> scroll Information
</Marquee> When you click an empty link, the page is often reset to the header.
The Code "javascript: void (null)" replaces the original "#" mark
Text or image pop-up window of the specified size
Add in body
<Script language = "JavaScript" type = "text/JavaScript">
Function MM_openBrWindow (theURL, winName, features) {window. open (theURL, winName, features );}
</Script>
Pop-up code
<A href = "#" target = "_ self" onClick = "mm_openbrwindow('windows01.htm','', 'width = 550, height = 380 ') "width =" 550 "height =" 380 "border =" 0 "> image or text </a>
Flash button and link
On (press ){
GetURL ("http://www.makewing.com", "_ blank ");
} Jump Page code
<Meta http-equiv = "refresh" content = "5; url = http://www.makewing.com"> Line separation line
<Hr noshade size = 0 color = # C0C0C0> Automatic line feed in Web pages
<Td style = "word-break: break-all">.
Complete is
Style = "table-layout: fixed; WORD-BREAK: break-all; WORD-WRAP: break-word" Remove the image toolbar that automatically appears in ie6 and set the GALLERYIMG attribute to false or no.
Prohibit page body content from being selected
<Body oncontextmenu = "return false" ondragstart = "return false" onselectstart = "return false" onselect = "document. selection. empty () "oncopy =" document. selection. empty () "onbeforecopy =" return
False "onmouseup =" document. selection. empty () ">
You cannot right-click it, or press CTRL + A to copy it!
<Body oncontextmenu = "window. event. returnValue = false"
Onkeypress = "window. event. returnValue = false"
Onkeydown = "window. event. returnValue = false"
Onkeyup = "window. event. returnValue = false"
Ondragstart = "window. event. returnValue = false"
Onselectstart = "event. returnValue = false">
</Body> Internet Explorer supports a Body attribute bgproperties, which can prevent the background from rolling:
<Body Background = "Image File" bgproperties = "fixed"> Random conversion of background images (a special effect that refreshes the mood)
<Script Language = "JavaScript">
Image = new Array (4); // defines the image as an Array of the number of images.
Image [0] = 'tu0.gif '// path of the background image
Image [1] = 'tu1.gif'
Image [2] = 'tu2.gif'
Image [3] = 'tu3.gif'
Image [4] = 'tu4.gif'
Number = Math. floor (Math. random () * image. length );
Document. write ("<body background =" + image [number] + "> ");
</Script>
Loading video in flash
On (release)
{
LoadMovie ("1-01.swf", "_ root. loaderclip ");
} Image form button
<Form id = "form1" name = "form1" method = "post" action = "">
</Form> CSS definition method for Left and Right shadow backgrounds
Body {
Text-align: center;
Background-repeat: repeat-y;
Background-position: center;
Background-image: url (../images/bg.jpg );
}