<div class="codetitle"> <span><a style="CURSOR: pointer" data="23330" class="copybut" id="copybut23330" onclick="doCopy('code23330')"><u>複製程式碼</u></a></span>程式碼如下:</div> <div class="codebody" id="code23330"> <br><script type="text/javascript" language="javascript"> <BR>函數CCCC(){ <BR>var File_NAME=""; <BR>var 計數=0; <BR>if(document.frames("myFrame").document.all.length){ <BR>for (var i=0;i<document.all.length;i ){ <BR>if(document.frames ("myFrame").document.all(i).type == 'checkbox' && document.frames(" myFrame").document.all(i).checked== true) { <BR>File_NAME=document.frames ("myFrame").document.all(i).value; <BR>警報(檔案名稱); <BR> 計數; <BR>} <BR>} <BR>} <BR>if(count==1){ <BR>var url="<%=path%>/AttSSSS?File_NAME=" File_NAME; <BR>var returnValue=showModalDialog(url,"AttSSSS","dialogWidth:700px;dialogHeight:500px;dialogLeft:400px;dialogTop:200px;center:yes;help:yes;ressized:dialogTop:200px;center:yes;help:yes;ressized:yes); if(returnValue){ <BR>window.location.href= window.location.href; <BR>} <BR>} <BR>else if(count<1){ <BR>alert('您還沒有選擇訊息,請在需要選擇的入境點擊滑鼠! </腳本> <BR><BR></script> </div>