Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ(ת)

 
¶¼×ªÀÃÁË£¬²»¹ý»¹ÊÇÌùÉÏÀ´ÁË¡£²éµÄʱºò·½±ã¡£¡£¡£
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)> <td>no </table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="return false;" oncut="return false;" ·ÀÖ¹¸´ÖÆ
5. <link rel="Shortcut Icon" href="favicon.ico"> IEµØÖ·À¸Ç°»»³É×Ô¼ºµÄͼ±ê
6. <link rel="Bookmark" href="favicon.ico"> ¿ÉÒÔÔÚÊղؼÐÖÐÏÔʾ³öÄãµÄͼ±ê
7. <input style="ime-mode:disabled"> ¹Ø±ÕÊäÈë·¨
8. ÓÀÔ¶¶¼»á´ø×Å¿ò¼Ü
<script language="JavaScript"> <!--
if (window == top)top.location.href = "frames.htm"; //frames.htmΪ¿ò¼ÜÍøÒ³
// --> </script>
9. ·ÀÖ¹±»ÈËframe
<SCRIPT LANGUAGE=JAVASCRIPT> <!--
if (top.location != self.location)top.location=self.location;
// --> </SCRIPT>
10. ÍøÒ³½«²»Äܱ»Áí´æÎª
<noscript> <*** src="/*.html>"; </***> </noscript>
11. <input type=button value="/²é¿´ÍøÒ³Ô´´úÂë
onclick="window.location = "view-source:"+ "http://www.pconline.com.cn"">
12.ɾ³ýʱȷÈÏ
<a href=""javascript :if(confirm("ȷʵҪɾ³ýÂð?"))location="boos.asp?&areyou=ɾ³ý&page=1"">ɾ³ý </a>
13. È¡µÃ¿Ø¼þµÄ¾ø¶ÔλÖÃ
//Javascript
<script language="Javascript">
function getIE(e){
var t=e.offsetTop;
var l=e.offsetLeft;
while(e=e.offsetParent){
t+=e.offsetTop;
l+=e.offsetLeft;
}
alert("top="+t+"/nleft="+l);
}
</script>
//VBScript
<script language="VBScript"> <!--
function getIE()
dim t,l,a,b
set a=document.all.img1
t=document.all.img1.offsetTop
l=document.all.img1.offsetLeft
while a.tagNam


Ïà¹ØÎĵµ£º

.net ÀûÓÃJavaScript»ñµÃÑùʽ±íÎļþÑùʽֵ

 ·½·¨Ò»£º
ÓÃ;£ºÓÃÓÚ»ñµÃÔÚCSSÎļþÖÐÉùÃ÷µÄÌØ¶¨ÑùʽÖеÄijÊôÐÔÖµ¡£È磺
<link id="system_style" type="text/css" href="global.css" rel="stylesheet"/>
<div id="myArticle" style="left:10px;top:35px;" >
ÔÚglobal.cssÖÐÉùÃ÷ÁË
#myArticle{width:400px; height:300px;}
ÕâÑùµÄÇé¿öÏ£¬Ö±½Óͨ¹ ......

javascript ÕýÔò±í´ïʽ ÊýÖµÑéÖ¤

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>ÑéÖ¤Êý×Ö×î¼òµ¥<a href="http://www.jb51.net/list/list_6_1.htm" tar ......

javascriptµÄparseIntº¯Êý(ת)

 javascriptµÄparseIntº¯Êý
javascriptµÄparseIntº¯Êý£¬´ó¼Ò¶¼ÖªµÀÊǸÉɶµÄ
µ«ÄãÖªµÀ
parseInt("07") ·µ»Ø¶àÉÙ ?
parseInt("08") ÓÖ·µ»Ø¶àÉÙ ?
ÕýÈ·´ð°¸ÊÇ
parseInt("07") ·µ»Ø8
parseInt("08") ·µ»Ø0
ÄãÖªµÀÎÊÌâÔÚÄÄ£¿
Æäʵ£¬Õâ¸öÎÊÌâ¿ÉÄÜ´ó¼Ò¶¼Ã»Ïë¹ý°É¡£
ÓÃjavascriptµÄparseIntº¯Êýʱ£¬
parseInt("08") ......

Javascript »ñÈ¡Á´½Ó(url)²ÎÊýµÄ·½·¨

 ×÷Õß:
YITU.org    
À´Ô´:
YITU.org    

ʱ¼ä:
2007-02-26 10:34:58

ÓÐʱÎÒÃÇÐèÒªÔÚ¿Í»§¶Ë»ñÈ¡Á´½Ó²ÎÊý£¬Ò»¸ö³£¼ûµÄ·½·¨Êǽ«Á´½Óµ±×ö×Ö·û´®£¬°´ÕÕÁ´½ÓµÄ¸ñʽ·Ö½â£¬È»ºó»ñÈ¡¶ÔÓ¦µÄ²ÎÊýÖµ¡£±¾Îĸø³öµÄ¾ÍÊÇÕâ¸öÁ÷³ÌµÄ¾ßÌåʵÏÖ·½·¨¡£
µ±È»£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ