Home >Web Front-end >JS Tutorial >Very good js code_JavaScript

Very good js code_JavaScript

WBOY
WBOYOriginal
2016-05-16 19:28:36818browse
Very good js code_JavaScript Control the visibility of horizontal and vertical scroll bars?
Remove the x-axis
Remove the y-axis
Do not show

Very good js code_JavaScript Table changes color
onmouseout="this.style.backgroundColor=''"
style ="CURSOR: hand">
Very good js code_JavaScript Copying is prohibited, drag the mouse to select

Very good js code_JavaScript Normal iframe page


Very good js code_JavaScript iframe adaptive height

Very good js code_JavaScript Change the IE address bar to your own icon & your icon can be displayed in your favorites


Very good js code_JavaScript Font size scaling
More and more people spend a lot of time surfing the Internet, and the popularity of glasses is also getting higher and higher. Make the text larger so that more users can see it more clearly. .

Very good js code_JavaScript 节日倒计时

Very good js code_JavaScript 加在HEAD里
禁止缓存




Very good js code_JavaScript 让IFRAME框架内的文档的背景透明

Very good js code_JavaScript 打开窗口即最大化

Very good js code_JavaScript 加入背景音乐
只适用于IE
对Netscape ,IE 都适用
Very good js code_JavaScript 滚动
滚动信息

Very good js code_JavaScript 防止点击空链接时,页面往往重置到页首端
代码“javascript:void(null)”代替原来的“#”标记

Very good js code_JavaScript 文字或图片弹出指定大小的窗口
在body中加入

弹出代码
图片或文字


Very good js code_JavaScript flash button to add link
on (press) {
getURL("http://www.makewing.com","_blank");
}
Very good js code_JavaScript Jump page code

Very good js code_JavaScript Thin line divider


Very good js code_JavaScript Automatic word wrapping in web pages
is done.
The complete one is
style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word"
Very good js code_JavaScript Eliminate the image toolbar that automatically appears in ie6 and set the GALLERYIMG attribute to false or no.

Very good js code_JavaScript Prevent page body content from being selected


Very good js code_JavaScript Cannot right click, do not use CTRL A, cannot copy!
onkeypress="window.event.returnValue= false"
onkeydown="window.event.returnValue=false"
onkeyup="window.event.returnValue=false"
ondragstart="window.event.returnValue=false"
onselectstart=" event.returnValue=false">

Very good js code_JavaScript IE browser supports a Body property bgproperties, which can prevent the background from scrolling:

Very good js code_JavaScript Randomly transform the background image (a special effect that can refresh your mood)


Very good js code_JavaScript flash loading movie
on (release)
{
loadMovie("1-01.swf", "_root.loaderclip");
}
Very good js code_JavaScript Image form button



Very good js code_JavaScript 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);
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn