Copy Code code as follows:
<script type= "Text/javascript" language= "JavaScript" >
function CCCC () {
var file_name= "";
var count=0;
if (Document.frames ("MyFrame"). Document.all.length) {
for (Var i=0;i<document.all.length;i++) {
if (Document.frames ("MyFrame"). document.all (i). Type = = ' checkbox ' && document.frames ("MyFrame"). document.all (i). checked== true) {
File_name=document.frames ("MyFrame"). document.all (i). value;
alert (file_name);
count++;
}
}
}
if (count==1) {
var url= "<%=path%>/attssss?" File_name= "+file_name;
var returnvalue=showmodaldialog (URL, "Attssss", "dialogwidth:700px;dialogheight:500px;dialogleft:400px;dialogtop : 200px;center:yes;help:yes;resizable:yes;status:yes ");
if (returnvalue) {
Window.location.href= window.location.href;
}
}
else if (count<1) {
Alert (' You have not selected the information, please click the mouse on the item you want to select! ');
}
else{
Alert (' Only one message can be selected at a time! ');
}
}
</script>