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

Javascript ÐÞ¸Ä URL ²ÎÊý


String.prototype.changeQuery = function(name,value)
{
var reg = new RegExp("(^|)"+ name +"=([^&]*)(|$)");
var tmp = name + "=" + value;
if(this.match(reg) != null)
{
return this.replace(eval(reg),tmp);
}
else
{
if(this.match("[\?]"))
{
return this + "&" + tmp;
}
else
{
return this + "?" + tmp;
}
}
}
var href = 'http://dlib.apabi.com/?Token=44AB&cult=CN&orgid=pku';

alert("old url is -- "+href);
href = href.changeQuery("cult","US");
alert("new url is -- "+href); 


Ïà¹ØÎĵµ£º

javascript¶¨Ê±¸ü»»±í¸ñ±³¾°

<html>
<head>
<title>changePage</title>
</head>
<body>
<table id="pic" cellpadding="0" cellspacing="0" border="1" width="200" height="100" bordercolor="red">
<tr>
<td>picture chanage!</td>
</tr>
</table>
< ......

JavascriptʵÏÖ×Ó´°¿ÚÏò¸¸´°¿Ú´«Öµ(ת)

page1.htmlΪ¸¸´°¿Ú£¬page2.htmΪ×Ó´°¿Ú¡£Ïêϸ´úÂëÈçÏ£º 
page1.html 
ÒýÓÃ
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html> 
<head> 
  <meta http-equiv="Con ......

15 ¸ö JavaScript Web UI ¿â


¼¸ºõËùÓеĸ» Web Ó¦Óö¼»ùÓÚÒ»¸ö»ò¶à¸ö Web UI ¿â»ò¿ò¼Ü£¬ÕâЩ UI ¿âÓë¿ò¼Ü¼«´óµØ¼ò»¯ÁË¿ª·¢½ø³Ì£¬²¢´øÀ´Ò»Ö£¬¿É¿¿£¬ÒÔ¼°¸ß¶È½»»¥ÐÔµÄÓû§½çÃæ¡£±¾ÎĽéÉÜÁË 15 ¸ö·Ç³£Ç¿´óµÄ JavaScript Web UI ¿â£¬·Ç³£Êʺϸ÷ÖÖ¸÷ÖÖ¹æÄ£µÄ¸» Web Ó¦ÓõĿª·¢¡£
LivePipe
LivePipe UI »ùÓÚ Prototype Javascript ¿ò¼Ü£¬°üº¬ÁËÒ»ÕûÌ×¾­Ñ ......

JavaScript Êó±êÒƶ¯Çл»Í¼Æ¬

<title>JavaScriptÇл»Í¼Æ¬</title>
<script>
function showDaTu(src){
document.getElementById("defaultImg").src=src;
}
</script>
<img src="/jscss/demoimg/wall1.jpg" id="defaultImg">
<br><br><br>
<img src='/jscss/demoimg/wall_s1.jpg' onmouseover ......

javascriptÖÐsetTimeoutÓ¦ÓÃ

²»ÖªµÀÔõô»ØÊ£¬ÒÔÇ°ÓÃsetTimeoutû³ö¹ýÎÊÌ⣬Õâ´ÎÔõôÓö¼´í
´úÂ룺
window.onload=function(){
function x(){
alert("s");
}
setTimeout("x()",1000);
}
°Ñwindow.onload=function(){}È¥µô¾ÍÄÜÓÃÁË£¬µ«ÊÇÕâÑùд¹ßÁË£¬¶øÇÒÈ¥µôÖ®ºó£¬Ïñdocument.getElementByIdÕâÑùµÄ·½·¨»áÕÒ²»µ½¶ÔÏó£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ