JavaScript ÈçºÎµ¯³öÒ»¸ö¶Ô»°¿ò´°¿Ú
//¶¨ÒåÒª´ò¿ªµÄ¶Ô»°¿òÒ³ÃæµÄµØÖ· Ò»°ãÓÃactionÌø×ªÒªÐ´Ã÷actionµÄµØÖ·£¬Èç¹ûÐèÒª²ÎÊý£¬ÔòÔÚºóÃæÆ´½Ó
var urlDialog = "grpBlackWhiteManageAction.do?act=choiceMessageModel&GrpBWhiteListLevel=0";
//¶¨ÒåÒªµ¯³öµÄ¶Ô»°¿òµÄģʽ£¬dialogWidth¿í£¬dialogHeight¸ß µÈµÈ
var style = "dialogWidth=600px;dialogHeight=600px;status=yes;edge=sunken;help=no";
//¶¨ÒåÒ»¸ö±äÁ¿À´½ÓÊܶԻ°¿òµÄ·µ»ØÊý¾Ý
var rv = window.showModalDialog(urlDialog,"",style);
//Èç¹ûûÓзµ»ØÊý¾ÝµÄ»°,¾ÍÖ±½Óд
window.showModalDialog(urlDialog,"",style); ¡¢
¶Ô»°¿òÒ³ÃæµÄ¹Ø±Õ°´Å¥´¥·¢Ê¼þ¿ÉÒÔÕâÑùд
<input type="button" name="colse" value="¹Ø±Õ" onclick="javaScript:window.close();">
Ïà¹ØÎĵµ£º
replace·½·¨µÄÓï·¨
ÊÇ£ºstringObj.replace(rgExp, replaceText)
ÆäÖÐstringObjÊÇ×Ö·û´®(string)£¬reExp¿ÉÒÔÊÇÕýÔò±í´ïʽ¶ÔÏó(RegExp)Ò²¿ÉÒÔÊÇ×Ö·û´®
(string)£¬replaceTextÊÇÌæ´ú²éÕÒµ½µÄ×Ö·û´®¡£¡£ÎªÁ˰ïÖú´ó¼Ò¸üºÃµÄÀí½â£¬ÏÂÃæ¾Ù¸ö¼òµ¥Àý×Ó˵Ã÷Ò»ÏÂ
<script language="javascript">
var str ......
¶¨ÒåºÍÓ÷¨
replace() ·½·¨ÓÃÓÚÔÚ×Ö·û´®ÖÐÓÃһЩ×Ö·ûÌæ»»ÁíһЩ×Ö·û£¬»òÌæ»»Ò»¸öÓëÕýÔò±í´ïʽƥÅäµÄ×Ó´®¡£
Óï·¨
stringObject.replace(regexp,replacement)
²ÎÊý
ÃèÊö
regexp
±ØÐè¡£¹æ¶¨ÁËÒªÌæ»»µÄģʽµÄ RegExp ¶ÔÏó¡£Çë×¢Ò⣬Èç¹û¸ÃÖµÊÇÒ»¸ö×Ö·û´®£¬Ôò½«Ëü×÷ΪҪ¼ìË÷µÄÖ±½ÓÁ¿Îı¾Ä£Ê½£¬¶ø²»ÊÇÊ×ÏÈ ......
[ÐÂÎÅ×ÊѶ] ¿ÉÒÔ°ÑjavaScriptǶÈëµ½swfÀïÁË
×ÊѶÀàÐÍ: ·Òë
À´Ô´Ò³Ãæ: http://www.kennybunch.com/blog/2009/09/embedding-javascript-into-a-swf/
×ÊѶԱêÌâ: Embedding JavaScript into a SWF
×ÊѶÔ×÷Õß: Kenny Bunch
flex ¿ª·¢ÕßÓ¦¸Ã¶ÔʹÓÃEmbedÔªÊý¾Ý±êǩǶÈë¸÷ÖÖ×ÊÔ´¶¼ºÜÊìϤÁË£¬ÏÖÔÚÔÚflash cs4ÖÐͬÑù¿ÉÒ ......
innerTextÊÇieµÄ˽ÓÐÊôÐÔ£¬firefoxµÄÀàËÆÊôÐÔΪtextContent£¬Èç¹ûÔÚÍøÒ³ÖÐʹÓÃinnerTextµÄ»°£¬ÐèÒªÓÃÒ»¸öÌõ¼þÅжÏÀ´²é¿´ä¯ÀÀÆ÷Ö§³ÖÄÄÖÖÊôÐÔ¡£ÕâÀïÎÒÃÇ¿ÉÒÔΪfirefox¶¨ÒåÒ»¸öinnerTextʹµÃÔÚÕýÎÄ´úÂëÖÐÖ»ÐèÒªÓÃinnerText¶ø·ÇÒ»¸öº¯Êý£¬¿Éʹ´úÂë±äµÃ¸üÖ±¹Û¼ò½à¡£
var lBrowser = {};
lBrowser.agt = navigator.userAgent.t ......
·½·¨1£º
1function CheckSelect()
2 {
3 var tb = document.getElementById("ctl00_ContentPlaceHolder1_chkYear");
4
5 for(var i=0;i < tb.rows.length;i+ ......