<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>変数カウント=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>アラート(File_NAME); <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;resizable:yes;status:yes"); <br>if(returnValue){ <br>window.location.href= window.location.href; <br>} <br>} <br>else if(countalert('您还没有选择信息,请在需要选择的条目点击鼠标!'); <br>} <br>else{ <br>alert('每次只能选择一条情報!'); <br>} <br>} <br></script> <br> </div>