function changeSelectIndex(selectID, changeID){
//取得被改變的select元件
var selectDOC = document.getElementById(selectID);
//取得另一個要被改變的select元件
var changeDOC = document.getElementById(changeID);

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

有空再整理
//HTML===============================================================
<tr>
<td><input style="display:none" id="1_fields1" type="text" value="" size="12"><span id="1_mySapns1">RulesName1</span></input></td>
<td><input style="display:none" id="1_fields2" type="text" value="" size="10"><span id="1_mySapns2">59.118.67.104</span></input></td>
<td><input style="display:none" id="1_fields3" type="text" value="" size="10"><span id="1_mySapns3">120.58.164.22</span></input></td>
<td><input style="display:none" id="1_fields4" type="text" value="" size="10"><span id="1_mySapns4">XP_REG, UNION SELECT, ‘;DROR</span></input></td>
<td><input style="display:none" id="1_fields5" type="text" value="" size="10"><span id="1_mySapns5">SYSTEM21, CMD.EXE</span></input></td>
<td><input style="display:none" id="1_fields6" type="text" value="" size="10"><span id="1_mySapns6">GET, POST, HEAD, COPY, POLL</span></input></td>
<td><input style="display:none" id="1_fields7" type="text" value="" size="10"><span id="1_mySapns7">Directory Traversal Exploits in URL, Directory Traversal Exploits in Query</span></input></td>
<td><input style="display:none" id="1_fields8" type="text" value="" size="10"><span id="1_mySapns8">Encoding Abuse Exploits in URL, Encoding Abuse Exploits in Query String, Encoding Abuse Exploits in Post Data</span></input></td>
<td><input style="display:none" id="1_fields9" type="text" value="" size="10"><span id="1_mySapns9">Maximum URL Length Allowed</span></input></td>
<td><input style="display:none" id="1_fields10" type="text" value="" size="10"><span id="1_mySapns10">High Bit Shellcode Protection in Post Data, High Bit Shellcode Protection in Header</span></input></td>
<td style="text-align:center">
<span id="1_ModifySpan1" style="display:block"><input type="button" value="修改" onClick="modify('1_ModifySpan', '1_fields', '1_mySapns');"></input></span>
<span id="1_ModifySpan2" style="display:none"><input type="button" value="確認" onClick="modify('1_ModifySpan', '1_fields', '1_mySapns');"></input></span>
</td>
<td style="text-align:center"><input type="button" value="刪除" onClick="deleteRow(1);"></input></td>
</tr>

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

2014-08-05 17 19 35
 

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

 
檔案格式為
[業務部]
IP=10.8.210.66

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

//不指定使用何種編碼讀取文字,預設為Unicode,
StreamReader sr = new StreamReader(@"C:\\Test.txt");
 

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

當需要使用多個List存放資料,且List的數量為動態增減的話
可用Hashtable存放所有的List
=============================================================================
using System.Collections;

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

在html的部分宣告方式如下,將input宣告為image的型態,注意input預設滑鼠移入會變成可以點擊的手型
<input type="image" id="status1" src="../../images/ONbutton.jpg" value='1' onClick="ChangeImage(this.id);"></input>
 
在 onClick="ChangeImage(this.id);" 傳入的參數為自身元件的ID,然後我們可以在function中透過ID操作該元件

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

Spring       :類似Controller在討厭鬼大大的範例中可以看到分成三個部分為Action、Service、DAO
                  Action :導向的控制
                  Service :??
                  DAO :針對資料庫的動作

Struts       :控制流程,判斷後端執行結果是否正確,導向正確的輸出

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

從顯示流程中去除_1
在 CSS 中的 position 屬性預設為 static 其結果如下圖:

 
以絕對位置 (position: absolute) 而言,故名思義,它是以父元素的邊界為絕對起點。

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

以下示範子元素選擇器[>]使用方法,子元素選擇器不會影響孫元素
 
<style type="text/css">
//css one

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

//value 為路徑或URL
window.location='LiveStatusTrapping.html';

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

//在認證帳號密碼後,先將SessionID儲存
Session.Add("ID", Session.SessionID);
//執行其他程式時的判斷式

JoyceHsu1126 發表在 痞客邦 留言(0) 人氣()

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。