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

³£¼ûJavascript´úÂë

1¡¢ºóÍË Ç°½ø  
<input type="button" value="ºóÍË" onClick="history.go(-1)">  
<input type="button" value="Ç°½ø" onClick="history.go( 1 );return true;">  
2¡¢·µ»Ø  
<form><input type="button" value="·µ»ØÉÏÒ»²½" onClick="history.back(-1)"></form>  
3¡¢²é¿´Ô´Âë  
<input type="button" name="view" value="²é¿´Ô´Âë" onClick="window.location="view-source:" +window.location.href">  
4¡¢½ûÖ¹²é¿´Ô´Âë  
<body oncontextmenu="return false"></body>  
5¡¢Ë¢Ð°´Å¥Ò»  
<input type="button" value="ˢа´Å¥Ò»" onClick="ReloadButton()">  
<script>function ReloadButton(){location.href="i001.htm";}</script>  
ˢа´Å¥¶þ  
<input type="button" value="ˢа´Å¥¶þ" onClick="history.go(0)">  
6¡¢»ØÊ×Ò³°´Å¥  
<input type="button" value="Ê×Ò³" onClick="HomeButton()">  
<script>function HomeButton(){location.href=http://www.winliuxq.com;}</script>  
7¡¢µ¯³ö¾¯¸æ¿ò  
<input type="button" value="µ¯³ö¾¯¸æ¿ò" onClick="AlertButton()">  
<script>function AlertButton(){window.alert("Òª¶à¶à¹âÁÙѽ£¡");}</script>  
8¡¢×´Ì¬À¸ÐÅÏ¢  
<input type="button" value="״̬À¸ÐÅÏ¢" onClick="StatusButton()">  
<script>function StatusButton(){window.status="Òª¶à¶à¹âÁÙѽ£¡";}</script>  
9¡¢±³¾°É«±ä»»  
<form><input type="button" value="±³¾°É«±ä»»" onClick="BgButton()"></form>  
<script>function BgButton(){  
if (document.bgColor=='#00ffff')  
    {document.bgColor='#ffffff';}  
else{document.bgColor='#00ffff';}  
}  
</script>  
10¡¢´ò¿ªÐ´°¿Ú  
<input type="button" value="´ò


Ïà¹ØÎĵµ£º

ÈçºÎÎÒjavaScript»ñÈ¡´°¿ÚµÄ¸ß¶ÈºÍ¿í¶È

ÔÚjavascriptÖеõ½µ±Ç°´°¿ÚµÄ¸ßºÍ¿í
<body><SCRIPT LANGUAGE="JavaScript">
var  s = "";
s += "\r\nÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.clientWidth;
s += "\r\nÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.clien ......

javascript trim·½·¨

ÔÚjavascriptÖеÄstring¶ÔÏóûÓÐtrim·½·¨£¬ËùÒÔtrim¹¦ÄÜÐèÒª×Ô¼ºÊµÏÖ£º
´úÂëÈçÏ£º
Java´úÂë
﹤scriptlanguage=”javascript”﹥   
/**  
*ɾ³ý×óÓÒÁ½¶ËµÄ¿Õ¸ñ  
*/  
String.prototype.trim=function(){      
  &nbs ......

107ÌõJavascriptµÄ³£ÓÃÓï¾ä


1. document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËصÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËصÄID號 ").name(»òvalue)
6.Ò ......

JavascriptÁ·Ï°ÊµÀý01:³Ë·¨¿Ú¾÷±íÓëɸѡËØÊý

<html>
<body>
<mce:script type="text/javascript"><!--
document.write("<table border=1px>");
for(i=1;i<=9;i++)
{document.write("<tr>");
for (j=1;j<=i;j++)
{document.write("<td class='table1'>"+i+"*"+j+"="+i*j+"&nbsp;&nbsp;& ......

ÖÊÊý Javascript ֮ǰµÄÄǸöÓеãС벡

<mce:script type="text/javascript"><!--
document.write("<table border=1px border-color=red>"); //±í¸ñ¿ªÊ¼
for (h = 1; h <= 10; h++) {
document.write("<tr>"); //¿ªÊ¼µÚÒ»ÐÐ
for (s = 1; s <= 10; s++) {
var num = (h-1)*10+s; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ