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

ÈÕ³£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)£¬ÔÚÐèÒª


Ïà¹ØÎĵµ£º

FFºÍIEÖ®¼ä7¸öJavaScriptµÄ²îÒì

¾¡¹Ü JavaScript ÀúÊ·ÉÏʹÓÃÈß³¤¶øÁîÈËÉúÑáµÄ´úÂë¿éÀ´±êµÄÌØ¶¨ä¯ÀÀÆ÷µÄʱÆÚÒѾ­½áÊøÁË£¬µ«ÊÇż¶ûʹÓÃһЩ¼òµ¥µÄ´úÂë¿éºÍ¶ÔÏó¼ì²âÀ´È·±£Ò»Ð©´úÂëÔÚÓû§»úÆ÷ÉÏÕý³£¹¤×÷ÒÀÈ»ÊDZØÒªµÄ¡£
ÕâÆªÎÄÕÂÖУ¬ÎÒ»áÂÔÊöһϠInternet Explorer ºÍ Firefox ÔÚ JavaScript Óï·¨Éϲ»Í¬µÄ 7 ¸ö·½Ãæ¡£
1. CSS “float” ÊôÐÔ
»ñÈ¡ ......

javaScript´«Öµ¸øjsp

¶ÔÓÚWEB³ÌÐòÀ´Ëµ£¬Ç°¶Ë£¨JavaScript£©ºÍºó¶Ë£¨JSP/Servlet£©ÊÇû·¨¹²ÓÃÊý¾ÝµÄ£¬Ö»ÄÜÊǺó¶Ë³ÌÐò£¨JSP£©°ÑÊý¾ÝÊä³ö£¬Éú³ÉÒ³Ãæµ½
ǰ¶Ë£¬ÕâʱºòÉú³ÉµÄÒ³ÃæÖеÄJavaScript´úÂë²ÅÓпÉÄܵõ½ËùνjspµÄÊý¾Ý¡£Í¬ÑùµÄ£¬Ö»ÓаÑJavaScriptÀïµÄÊý¾ÝÌá½»¸øºó¶ËJSP´ú
Â룬JSP³ÌÐòÖвÅÄܵõ½JavaScriptµÄÊý¾Ý¡£
     ......

javaScriptʱ¼äº¯Êý

var today = new Date();
·µ»Øµ±Ç°µÄÈÕÆÚºÍʱ¼ä
var newyear = new Date("December 31, 1998 23:59:59");
ÊäÈëµÄÊÇ±íµ¥µÄ×Ö·û´® “Ô ÈÕ£¬Äê Сʱ£º·ÖÖÓ£ºÃë”
var bday = new Date(75, 1, 16);
²ÎÊýÊÇÄê·Ý£¬Ô£¬ÈÕ
var bday = new Date(75, 1, 16, 12, 0, 0);
²ÎÊýÊÇÄê·Ý£¬Ô£¬ÈÕ£¬Ð¡Ê±£¬·ÖÖÓ£¬Ãë
Õ ......

JavaScriptĬÈϱàÂ뷽ʽÒÔ¼°MyEclipseµÄÐÞ¸Ä


´ò¿ªÒ»¸ö js Îļþ£¬±à¼­Íê³É±£´æÊ±£¬Í»È»ÌáÐÑÏÂÃæµÄ´íÎó£º
Save could not be completed.
Reason:
Some characters cannot be mapped using “ISO-8859-1″ character encoding. Either change the encoding or remove the characters which are not supported by the “ISO-8859-1″ character ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ