ÈÕ³£javascriptÖ®Ò»
1¡¢ÎÞÌáʾ¹Ø±Õ´°¿Ú
<input type="button" onClick="window.opener = '';window.close();" value="IE6×î¼òµ¥µÄÎÞÌáʾ¹Ø±Õ´°¿Ú" >
2¡¢·ÀÖ¹±»ÈËiframe
if (top.location != self.location)
{
top.location.href="http://www.34do.net";
}
3¡¢ÅжÏÒ»¸ö¶ÔÏó´æÔÚ²»´æÔÚ
document.all("a")==null£¨²»´æÔÚ£©
4¡¢µ¯³ö×Ó´°¿Ú
window.open ('default.asp', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
5¡¢´ò¿ªÄ£Ì¬´°¿Ú
window.showModalDialog('default.asp',window,'help: No; resizable: No; status: No;scrollbars:No;center: Yes;dialogWidth:width;dialogHeight:height;')
6¡¢µ¯³öµÄ×Ó´°¿Úˢи¸´°¿Ú
window.opener.opener=null;
window.opener.location.reload();
7¡¢Ä£Ì¬´°¿Úˢи¸´°¿Ú
window.parent.dialogArguments.document.execCommand('Refresh');
8¡¢Ò»¸öjsÎļþ°üº¬ÁíÍâÒ»¸öjsÎļþ
document.write('<script src="/b_trade/public/new/public.js"><\/script>');
9¡¢ÈÃÎÄ×ÖÊú×Åд
<td style="Writing-mode:tb-rl;">·ðÂÞÂ×</td>
10¡¢iframeÒýÓÃ×Ô¼º
window.parent.document.getElementById("iframe_dg")
ÕâÑùÔÚiframeÎļþÀï¾Í¿ÉÒÔ²Ù×÷Ëü×Ô¼º£¬±ÈÈ磺window.parent.document.getElementById("iframe_dg").height=200
11¡¢¸ù¾ÝÄÚÈÝ×Ô¶¯µ÷Õûiframe¸ß¶È
function autoSetiframeSize()
{
var obj=self.parent.parent.document.all[self.name];
if(obj!=null)
{
self.parent.parent.document.all[self.name].style.pixelHeight=self.document.body.scrollHeight+5;
}
}
±ØÐ붨ÒåiframeµÄnameÊôÐÔ
<iframe id="iframe1" name="iframe1" align="center" frameborder="0" width="100%" height="250" scrolling="no" src="a.asp"></iframe>
½«a.aspµÄ<body>ÐÞ¸ÄΪ£º
<body onload="autoSetiframeSize()">
12¡¢Îªµ¥Ôª¸ñÌí¼Ó½¥±äɫЧ¹û£¨ieÖ§³Ö£¬firefox²»Ö§³Ö£©
.bg3
{
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=#842B00, EndColorStr=#FFFFFF);
}
13¡¢¶¨Ê±Ö´ÐÐÈÎÎñ
¹æ¶¨Ò»ÏîÈÎÎñÔÚÒ»¶¨Ê±¼äÄÚÖ´ÐУºdelayID=setTimeout(vCode, iMilliSeconds)£¬ÔÚÐèÒª
Ïà¹ØÎĵµ£º
<script type="text/javascript">
function fnOnPageChanged(page) {
var url = '<?=url('ShowFront','Search',$Request);?>' + '&page=' + page;
//alert(url);
document.location.href = url;
}
</script>
<select id="selectPage" onChange="fnOnPageC ......
Ö»ÄÜÊäÈëÊý×Ö£º"^[0-9]*$"
Ö»ÄÜÊäÈë n λµÄÊý×Ö£º"^\d{n}$"
Ö»ÄÜÊäÈëÖÁÉÙ n λµÄÊý×Ö£º"^\d{n,}$"
Ö»ÄÜÊäÈë m ¡« n λµÄÊý×Ö£º"^\d{m,n}$"
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º"^(0|[1-9][0-9]*)$"
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º"^[0-9]+(.[0-9]{2})?$"
Ö»ÄÜÊ ......
http://www.effectgames.com/effect/
Effect GamesÌṩÃâ·ÑµÄÔÚÏß¹¤¾ß£¬¿ª·¢ºÍ·ÖÏí»ùÓÚÍøÒ³µÄÓÎÏ·¡£ÓÎÏ·×öµÄÏ൱°ô£¬¶øÇÒ³£³£±»ÓÃÓÚ²âÊԱȽÏOpera Firefox ChromeËٶȵŤ¾ß¡£"¿ª·¢Õß¿ÉÒÔʹÓÃJavaScriptºÍ¶¨ÖƵÄä¯ÀÀÆ÷ÓÎÏ·ÒýÇæ¡¢¹Ø¿¨±à¼Æ÷ºÍһϵÁпª·¢¹ý³Ì´´ÔìÓÎÏ·£¬¶øÓû§Ôò²»Óð²×°²å¼þ¾Í¿ÉÒÔÖ±½ÓÔÚä¯ÀÀÆ÷ÉÏÍæÕâЩ ......
1.ÏÈ»ñµÃselect£º
var s = document.getElementById("selectYear");
2.¿ÉÒÔÏÈÒÆ³ýÉÏ´ÎÌí¼ÓµÄoption£¨ÕâÀïҪעÒ⣬ÿ´Îɾ³ýµÄ¶¼ÊǵÚÒ»¸öÔªËØ£¬ÒòΪɾһ¸öÉÙÒ»¸ö£©£º
var l = s.options.length;
for(var i=0;i<l;i++){
s.options.remove(0);
}
3.Ìí¼ÓÐÂÔªËØ£¨iÊÇ×Ô¼º¶¨ÒåµÄ£¬¸ù¾Ý× ......
function setEnd(field) {
if (field.createTextRange) {
var r = field.createTextRange();
r.moveS ......