Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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)£¬ÔÚÐèÒª


Ïà¹ØÎĵµ£º

JavascriptÃæÏò¶ÔÏó±à³ÌÏê½â

˽ÓбäÁ¿ ÔÚ¶ÔÏóÄÚ²¿Ê¹ÓÃ'var'¹Ø¼ü×ÖÀ´ÉùÃ÷£¬¶øÇÒËüÖ»Äܱ»Ë½Óк¯ÊýºÍÌØÈ¨·½·¨·ÃÎÊ¡£
˽Óк¯Êý ÔÚ¶ÔÏóµÄ¹¹Ô캯ÊýÀïÉùÃ÷£¨»òÕßÊÇͨ¹ývar functionName=function(){...}À´¶¨Ò壩£¬ËüÄܱ»ÌØÈ¨º¯Êýµ÷Ó㨰üÀ¨¶ÔÏóµÄ¹¹Ô캯Êý£©ºÍ˽Óк¯Êýµ÷Óá£
ÌØÈ¨·½·¨ ͨ¹ýthis.methodName=function(){...}À´ÉùÃ÷¶øÇÒ¿ÉÄܱ»¶ÔÏóÍⲿµÄ´úÂëµ ......

javascript×Ö·û´®×ª»»³ÉÈÕÆÚ[js³£ÓÃ]

function strToDate(){
var nowDate = new Date();
var oldDate = '2009-06-08';
var oldTime = '16:00';
var year = oldDate.substr(0,4);
var month = oldDate.substr(5,2);
var day = oldDate.substr(8,2);
var temDate = month+'/'+day+'/ ......

javaScriptÖеıհü

JavaScriptÖеıհüÓеãÀàËÆÓÚjavaÖеľ²Ì¬·½·¨£¬¶ÔÓÚ°üÖеķ½·¨²»ÒªÈ¥ÊµÀý»¯¿ÉÒÔÖ±½ÓʹÓã¬ËüµÄ×÷·¨ÈçÏÂËùÒÔ¡£
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
< ......

JavaScriptʹ¹â±ê¶¨Î»µ½Îı¾µÄ×îºó

function  setEnd(field)   {  
      if (field.createTextRange) {  
          var r = field.createTextRange();  
          r.moveS ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ