[ÌáÎÊ]һСÎÊÌâ¡£javascript Ñ¡ÏÇл»
HTML code:
</html>
<head>
<script type="text/javscript" language="javascript">
function setTab(thisObj,Num)
{
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0;i<tabList.length;i++)
{
if(i==Num)
{
thisObj.className="mouseOver";
document.getElementById(tabObj+"_Content"+i).className = "active";
}
else
{
tabList[i].className="mouseOut";
document.getElementById(tabObj+"_Content"+i).className="hide";
}
}
}
</script>
<style>
.nTab{
width:790px;
height:180px;
margin-top:5px;
}
.tabTitle{
width:100%;
height:30px;
overflow:hidden;
}
.tabTitle ul{
margin-top:2px;
list-style:none;
}
.tabTitle li{
width:90px;
height:28px;
padding:6px 0px 0px 0px;
cursor:hand;
font-weight:bold;
text-align:center;
display:inline-block;
float:left;
}
.tabTitle li.mouseOver{
color:White;
background-color:Green;
}
.tabTitle li.mouseOut{
color:white;
}
.tabContent{
width:100%;
height:auto;
overflow:visible;
padding:8px;
clear:both;
float:left;
}
.tabContent .active{
diplay:block;
}
.tabContent .hide{
display:none;
}
</style>
</h
Ïà¹ØÎÊ´ð£º
ÈçºÎʵÏÖµ±Êó±êÐüÍ£¿Ø¼þÉÏʱ£¬³öÏָÿؼþµÄβ²¿ÏÔʾ¶ÔÓ¦µÄ²ã£¬Êó±êÒÆ¶¯µ½¸Ã²ãÉϽøÐÐÏàÓ¦µÄ²Ù×÷£¬µ±Êó±êÒÆ³ýʱ£¨²»ÔڿؼþÉÏÒ²²»ÔÚ²ãÉÏ£©²ãÒþ²Ø£¬
http://topic.csdn.net/u/20090830/23/5e5ded07-7216-46c2-9712- ......
void CWEHelperDlg::OnOK(){
CString code;
//µ÷ÓÃVBSCRIPT£¬Äܵ¯³öÏûÏ¢¿ò,Ò²ÄÜÕýÈ··µ»Ø hello
code = "function main()\r\n\tMsgBox \"ok\"\r\n\tmain=\"hello\"\r\nend functio ......
ÎÒ×öÒ»¸öÒ³Ãæ£¬ÀïÃæ°üÀ¨ÁËÎı¾¿ò¡¢Îı¾ÓòµÈµÈ£¬ÎÒÏÖÔÚÏëÔÚÒ³ÃæÉϼÓÒ»¸ö°´Å¥£¬µ±ÎÒµã»÷°´Å¥Ê±ºò£¬¾Í½«±¾Ò³Ãæµ½³ö³ÉwordÎĵµ¡£´ó¼Ò°ï°ïÎÒ°É¡£¼±°¡¡£¡£¡£¡£¡£¡£¡£
ʹÓÃjs²Ù×÷µÄ»°£¬³ý·Ç±¾µØ°²È«ÔÊÐí£¬ÕâÑù¿ÉʹÓÃActive ......
Àý£º
<table width="100%" align="center" id="mytbl" border="0" bgcolor="#EEEEEE">
<tr>
<td class ......
ÎÒÍêÈ«²»¶®µÃµ÷ÊÔ°¡£¬ËùÒÔÏëÇëÄǸö¸ßÊִͽÌһϰ¡¡£Ð»Ð»£¡
ÊÖ¶¯£¬
´úÂëǰºó¼Óalert("sdfds")¿´ÓÐûÓÐÖ´ÐÐ
ÔÙÒ»ÖÖ¾ÍÊÇÄ£¿éɾ³ý·¨£¬É¾³ýÁË¿´¿´»¹ÓÐûÓдíÎó
ÎÒÓùýÊÇIE8°¡£¬¶Ô²»Æð£¬ÎÒÎʵÃÓеãÃÔºýÁ ......