太长了
<meta name='description' content='///////////////////////////////////////////////////////////////////////////////////////'>
<meta name='description' content='/////                    软件名称:NeoExam考试系统(E灵通考试系统)               /////'>
<meta name='description' content='/////                    程序设计:成都祥和源科技发展有限公司                     /////'>
<meta name='description' content='/////                    版权所有:成都祥和源科技发展有限公司                     /////'>
<meta name='description' content='/////                    公司网站:www.b6.cn                                      /////'>
<meta name='description' content='///////////////////////////////////////////////////////////////////////////////////////'>
<meta name='keywords' content='考试系统,成都祥和源,b6.cn,考试,试卷,试题,题库,NeoExam,网络课堂'>
<STYLE type=text/css>
body
{cursor: url('images/happy.ani');
}
</STYLE>
<html><head><meta http-equiv='Content-Language' content='zh-cn'><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>开始考试</title><script language='javascript'>
<!--
float_init  = 1;
function DHTML_Init(Object) {
 if (navigator.userAgent.match(/Mozilla\/5\../) && float_init) {
   SetObjectOffsetTop(Object, undefined);
}
}
function All (ID) {
if (document.all) {  return document.all[ID];   }
 else if (document.documentElement){
return document.getElementById (ID);
 }
 else if (document.layers) { return document.layers[ID]; }
}
function GetWindowOffsetTop() {
 if (window.innerHeight)   { return window.pageYOffset; }
else if (document.body)   { return document.body.scrollTop; }
}
function GetWindowHeight() {
if (window.innerHeight)   { return window.innerHeight; }
 else if (document.body)   { return document.body.clientHeight; }}
function GetObjectHeight(Object) {
 DHTML_Init(Object);
 if (document.all || document.documentElement) {
   Clip = Object.style.clip;
 if (! Clip) { return Object.offsetHeight; }
 else  { return GetClipElement (Clip, 'Bottom'); }}
 else if (document.layers) { return Object.clip.height; }}
function GetClipElement (Clip, Element) {
 Clip = Clip.substr(Clip.indexOf('(') + 1);
Clip = Clip.substr(0, Clip.length - 1);
Clippers = Clip.split (' ');
for (i = 0; i < Clippers.length; i++) {
 if (Clippers[i] != 'auto') {
 Clippers[i] = Clippers[i].replace (/D/g, ''); }
 }
 ClipTop = Number(Clippers[0]);
ClipRight = Number(Clippers[1]);
ClipBottom = Number(Clippers[2]);
ClipLeft = Number(Clippers[3]);
 if (Element == 'Top')     { return ClipTop; }
  else if (Element == 'Right')    { return ClipRight; }
  else if (Element == 'Bottom')   { return ClipBottom; }
 else if (Element == 'Left') { return ClipLeft; }
 else                { return undefined; }}
function GetObjectOffsetTop(Object) {
DHTML_Init(Object);
if (Object.offsetTop) { return Object.offsetTop; }
 else if (document.layers) { return Object.top; }
}
function SetObjectOffsetTop(Object, Offset) {
if (Object.style) { Object.style.top = Offset; }
else if (Object.top)  { Object.top = Offset; }}
CenterMenu = 1;
 MenuBorder = 100;
TimeCheck  = 250;
TimeUpdate = 15;
 DivUpdate  = 15;
Minimum    = 50;
AddHeight  = -4;
function ScrollMenu() {
Menu      = All('persistMenu');
WinTop    = GetWindowOffsetTop();
WinHeight = GetWindowHeight() + AddHeight;
MenuTop   = GetObjectOffsetTop(Menu);
MenuHeight = GetObjectHeight (Menu);
MenuNew   = (CenterMenu) ? Math.round (WinTop + (WinHeight - MenuHeight) / 1) : WinTop + MenuBorder;
if (MenuNew < Minimum)
{ MenuNew = Minimum; }
if (MenuTop != MenuNew) {
if ( (MenuTop + MenuHeight) < WinTop || MenuTop > (WinTop + WinHeight) ) {
 SetObjectOffsetTop (Menu, (MenuTop < MenuNew) ? (WinTop - MenuHeight) : (WinTop + WinHeight));
}
else {
 Add = (MenuTop < MenuNew) ? 1 : -1;
  SetObjectOffsetTop (Menu, MenuTop + Math.round((MenuNew - MenuTop) / DivUpdate) + Add);
 }
 }
     window.setTimeout('ScrollMenu()', (GetObjectOffsetTop(Menu) == MenuNew) ? TimeCheck : TimeUpdate);
 }
function MM_findObj(n, d) { //v4.01
 var p,i,x;  if(!d) d=document; if((p=n.indexOf('?'))>0&&parent.frames.length) {
 d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

解决方案 »

  1.   

    function MM_showHideLayers() { //v3.0
      var i,p,v,obj,args=MM_showHideLayers.arguments;
     for (i=0; i<(args.length-2); i+=3) 
     if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
     if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
     obj.visibility=v; }
    }
    function switchSysBar1(){
    if (switchPoint1.innerText=='计时器:'){
    switchPoint1.innerText='计时器'
    document.all('AutoNumber2').style.display='none'
    }else{
    switchPoint1.innerText='计时器:'
    document.all('AutoNumber2').style.display=''
    }}
    function switchSysBar(sid,nid){
    if (sid.innerText=='笔记本[开]'){
    sid.innerText = '笔记本[关]'
    document.all(nid).style.display = 'none'
    }else{
    sid.innerText = '笔记本[开]'
    document.all(nid).style.display = ''
    }
    }
    //-->
    </script>
    <SCRIPT language=javascript>
    <!-- begin
    function click() {
    if (event.button==2) {
    alert('考试期间,请不要使用右键!')
    }
    }
    document.onmousedown = click
     end -->
    </script>.....省略试题内容!!<!-- PersistentLayer--><input type='hidden'  name='kcid' value='1' size='20'><input type='hidden'  name='paperno' value='3' size='20'><input type='hidden'  name='starttime' value='16:10:24' size='20'><input type='hidden'  name='endtime' value='16:40:24' size='20'><input   type='hidden'  name='nowtime' value='2005-3-23 16:10:24' size='20'>
    <input type='hidden'  name='nian' value='2005' size='20'><input   type='hidden'  name='yue' value='3' size='20'><input   type='hidden'  name='ri' value='23' size='20'>
    <input type='hidden'  name='shi' value='16' size='20'><input   type='hidden'  name='fen' value='40' size='20'><input   type='hidden'  name='miao' value='24' size='20'>
    <div id='persistMenu' style='position: absolute; height:153; width:166; left:600; top:106;z-index: 100; visibility: hidden'  ><table border='1' cellspacing='0' style='border-collapse: collapse; border-width: 1'   width='158' id='AutoNumber1'  cellpadding='0' height='20'>
    <table border='1' cellspacing='0' style='border-collapse: collapse; border-width: 1'   width='158' id='AutoNumber1'  cellpadding='0' height='20'> <tr><td width='157'>
    <table border='1' cellspacing='0' style='border-collapse: collapse'   width='159' id='AutoNumber5' height='20' bgcolor='#799AE1' bordercolor='#799AE1' cellpadding='0'><tr>   <td width='92' class=menu_title onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title'; bgcolor='#799AE1'  onclick='switchSysBar1()' style='height: 25' background='images/admin_left_4.gif' >
     &nbsp;&nbsp;<b><font   color='#215DC6'><span id='switchPoint1'>计时器</span></font></b></td> </tr></table></td></tr>
    </table>
    <table      border='1' cellspacing='0' style='border-collapse: collapse' bgcolor='#799AE1'  width='161' id='AutoNumber2'  cellpadding='0' height='122'><tr>    <td   width='159' height='122'> <div align='center'><center> <table border='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' id='AutoNumber3' width='143' height='111' bgcolor='#799AE1'>
    <tr> <td height='28' width='61'>
    <p align='center'><b><font color='#FFFFFF'>开始时间</font></b></td><td width='78' height='28'>
    <input type='text' name='mystarttime' size='11'  class='s01' readonly style='text-align: center' ></td>
    </tr> <tr>
    <td height='28' width='61'> <p align='center'><b><font color='#FFFFFF'>结束时间</font></b></td><td width='78' height='28'>
    <input type='text' name='myendtime' size='11'  class='s01' readonly style='text-align: center' ></td>
    </tr><tr><td height='29' width='61'>
    <p align='center'><b><font color='#FFFFFF'>剩余时间</font></b></td><td width='78' height='29'>
    <input type='text' name='lefttime' size='11'  class='s01' readonly style='text-align: center' >
    </td>
    </tr>
      <tr>
     <td height='29' width='61'>
    <p align='center'><b><font color='#FFFFFF'>现在时间</font></b></td>
    <td width='78' height='29'>
    <input type='text' name='xintime' size='11'  class='s01' readonly style='text-align: center' ></td>
      </tr>   <tr>
    <td height='29' width='61'><p align='center'><font color='#FF0000'>请先保存</font></td>
    <td width='78' height='32'> <input type='submit' value='我要交卷' name='B3' class='s02' onclick='submitit(1)' style='color: #FF0000' ></td>
     </tr></table></center></div>
    </td></tr>
    </table></div><!--End PersistentLayer-->
    <script language='javascript'>
    MM_showHideLayers('persistMenu','','show');
    ScrollMenu();
    document.all.mystarttime.value=document.all.starttime.value;
    document.all.myendtime.value=document.all.endtime.value;
    var kcid = document.all.kcid.value
    var paperno = document.all.paperno.value
     startclock();
    var timerID = null;
    var timerRunning = false;
    function stopclock (){
    if(timerRunning)
    clearTimeout(timerID);
    timerRunning = false;
    }
    function showtime () {
    var now = new Date();
    var year = now.getYear();
    var month = now.getMonth() + 1;
    var date = now.getDate();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = hours + ':' + minutes + ':' + seconds
    var nian = document.all.nian.value
    var yue = document.all.yue.value - 1
    var ri = document.all.ri.value
    var shi = document.all.shi.value
    var fen = document.all.fen.value
    var miao = document.all.miao.value
    var endt= new Date();
    endt.setFullYear(nian,yue,ri)
    endt.setHours(shi,fen,miao)
    var chaju = endt.getTime() - now.getTime();
    var myh = Math.floor(chaju / (1000 * 60 * 60))
    var mym=Math.floor((chaju /(1000*60)) % 60)
    var mys=Math.floor((chaju /1000)%60)
    document.all.xintime.value = timeValue
    document.all.lefttime.value =myh+':'+mym+':'+mys;
    if (myh<0)
    {
    if (mym<0)
    {
    if (mys<0)
     {
     alert('考试时间到,*名词解释**填空题**判断题**单选题**多选题**简答题**论述题**阅读理解*没有保存,请提交您的试卷!');
     overtest.action='iamok_ks.asp?kcid='+kcid+'&ksnum=3&paperno='+paperno
     overtest.submit();
     }
     }
     }
     zuihou();
    zuihou1();
    timerID = setTimeout('showtime()',1000);
    timerRunning = true;
    }
    function startclock () {
    stopclock();
    showtime();
    }
     function zuihou(){
     if (document.all.lefttime.value=='0:1:0')
    {
     alert('考试时间还剩1分钟,*名词解释**填空题**判断题**单选题**多选题**简答题**论述题**阅读理解*没有保存,请注意保存!');
    }
    }
    function zuihou1(){
    if (document.all.lefttime.value=='0:0:10')
    {
    alert('还剩10秒钟,*名词解释**填空题**判断题**单选题**多选题**简答题**论述题**阅读理解*没有保存,请保存答案,并提交试卷!');
     }
    }
    function submitit(id)
    {
     if (confirm('未到交卷时间,*名词解释**填空题**判断题**单选题**多选题**简答题**论述题**阅读理解*没有保存,您确定要提前交卷么?'))
     {
    overtest.action='iamok_ks.asp?kcid='+id+'&ksnum=3&paperno='+paperno
      overtest.submit();
     }
    }
       </script>
      

  2.   

    用maxthon来浏览,使用View Page插件,所有的东西都看的一清二楚。
      

  3.   

    正如楼上所说,用maxthon,轻松