http://www.hbxfwy.com/centent.asp?newsid=C237C60I51G9F36这个右下脚的预约框,过一段时间就会最小化,但是我想点击它出来,或者关闭没有反应
请问下这个怎么做啊
我把JS和HTML代码贴上来
var $w = window;
var $d = document;
var $l = location;
function $i(s){return $d.getElementById(s);}
function $t(s){return $d.getElementsByTagName(s);}
function $n(s){return $d.getElementsByName(s);}var www_jz123_cn = {};www_jz123_cn.client = (function(){ 
 var t = {};
 var b = navigator.userAgent.toLowerCase();
 t.isOpera = (b.indexOf('opera') > -1);
 t.isIE = (!t.isOpera && b.indexOf('msie') > -1);
 t.isFF = (!t.isOpera &&!t.isIE&&b.indexOf('firefox') > -1);
 return t;
})();www_jz123_cn.util = (function(){
 var t = {};
 t.addEvent = function(o,c,h){
  if(www_jz123_cn.client.isIE){
   o.attachEvent('on'+c,h);
  }else{
   o.addEventListener(c,h,false);
  }
  return true;
 };
 t.delEvent = function(o,c,h){
  if(www_jz123_cn.client.isIE){
   o.detachEvent('on'+c,h);
  }else{
   o.removeEventListener(c,h,false);
  }
  return true;
 };
 t.ga = function(o,s){
  return o.getAttribute(s);
 };
 t.sa = function(o,k,v){
  return o.setAttribute(k,v);
 };
 t.s2d = function(s){
  var sa = s.split('-');
  var d =  new Date(sa[0],(sa[1]-1),sa[2]);
  return d;
 };
 t.d2s = function(d,b){
  var ye = d.getFullYear();
  var me = (parseInt(d.getMonth())+1).toString()
  var de = d.getDate();
  if(me.length==1&&b)me='0'+me;
  if(de.length==1&&b)de='0'+de;
  return ye+me+de;
 };
 return t;
})();www_jz123_cn.cookies = (function(){
 var t = {};
 t.setCookie = function(name,value,days)
 {
  if(days){
    var exp  = new Date(); 
    exp.setTime(exp.getTime() + days*3*1000);
    document.cookie = name + "="+ escape(value) +";expires="+ exp.toGMTString()+";path=/;";
  }else{
   document.cookie = name + "="+ escape(value)+";path=/;";
  }
 };
 
 t.getCookie = function(name)
 {
   var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
   if(arr != null) return unescape(arr[2]); return null;
 };
 
 t.setCookie2 = function(name,value,days)
 {
  if(days){
    var exp  = new Date(); 
    exp.setTime(exp.getTime() + days*3*1000);
    document.cookie = name + "="+ encodeURIComponent(value) +";expires="+ exp.toGMTString()+";path=/;";
  }else{
   document.cookie = name + "="+ encodeURIComponent(value)+";path=/;";
  }
 };
 
 t.getCookie2 = function(name)
 {
   var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
   if(arr != null) return decodeURIComponent(arr[2]); return null;
 };
 
 t.delCookie = function(name)
 {
   var exp = new Date();
   exp.setTime(exp.getTime() - 1);
   var cval=getCookie(name);
   if(cval!=null) document.cookie=name +"="+cval+";expires="+exp.toGMTString();
 };
 
 t.delCookie2 = function(name)
 {
   var exp = new Date();
   exp.setTime(exp.getTime() - 1);
   var cval=getCookie2(name);
   if(cval!=null) document.cookie=name +"="+cval+";expires="+exp.toGMTString();
 };
 
 return t;
})();www_jz123_cn.jscload = (function(){
 var t = function(){
     if(!www_jz123_cn.quickload){
      var cs = $t('label');
      for(var i=0;i<cs.length;i++){  
       var ct = www_jz123_cn.util.ga(cs[i],'c_type');
       if(ct){
        var pe = www_jz123_cn.dom.gNxtSib(cs[i]);
        if(pe){
         eval("new "+ct+"(pe)");
        }
       }
      }
  }
  if(typeof jsconload == 'function'){
   jsconload();
  }
  www_jz123_cn.loaded = true;
 };
 return t;
})();www_jz123_cn.jscunload = (function(){
 var t = function(){
  if(true){
      try{
    if(typeof jsconload == 'function'){
     jsconunload();
    }                           
            }catch(e){}
  }
 };
 return t;
})();www_jz123_cn.init = (function(){
 www_jz123_cn.util.addEvent(window,'load',www_jz123_cn.jscload);
 www_jz123_cn.util.addEvent(window,'unload',www_jz123_cn.jscunload);
 return true;
})();var downMsg=function(msgid,contentid,config){
 this.msg = $i(msgid);
 this.content = $i(contentid);
 this.config = config ? config : {start_delay:3000, speed: 1, movepx:2,cookie:'downMsgcookie',expiresDay:0};
 this.offsetHeight;
 this.emsg_objTimer;
 this.ie6Add =0;
 var _this = this;
 
 this.init = function(){
  var ifcookie=www_jz123_cn.cookies.getCookie(this.config.cookie);
  if(ifcookie == "show")
   return;
  window.setTimeout(_this.start,parseInt(_this.config.start_delay,10));
 }
 
 this.start = function(){
  _this.msg.style.display="block";
  _this.content.style.display="block";
  _this.offsetHeight = _this.content.offsetHeight;
  _this.content.style.height ="0px";
  _this.emsg_objTimer = setInterval(_this.moveUpDiv,parseInt(_this.config.speed,10));
 }
 
 this.moveUpDiv = function(){
   if(_this.offsetHeight> parseInt(_this.content.style.height,10)){
    _this.content.style.height =  parseInt(_this.content.style.height,10)+parseInt(_this.config.movepx,10)+"px";
   }
   else{
    window.clearInterval(_this.emsg_objTimer);
    www_jz123_cn.cookies.setCookie(_this.config.cookie,"show",_this.config.expiresDay);
    // ie6下才做,因为没有fixed属性
    var isMSIE = !!(/*@cc_on!@*/0);
  if(isMSIE &&!(window.XMLHttpRequest))
  { 
    _this.content.style.height = parseInt(_this.content.style.height,10) +2+"px";
    _this.autoMoveIe6();
    }
   }
 }
 this.autoMoveIe6 = function(){  if(_this.ie6Add ==0){
   _this.content.style.height =  parseInt(_this.content.style.height,10) + 1 +"px";
   _this.msg.style.bottom="-2px";
   _this.ie6Add =1;
  }
  else{
   _this.content.style.height =  parseInt(_this.content.style.height,10) - 1 +"px";
   _this.msg.style.bottom="-1px";
   _this.ie6Add =0;
  }
  setTimeout(_this.autoMoveIe6,100)
 }
}function closeDiv()
{
 document.getElementById('downmsg_emessage').style.display='none';
}function showHideDiv()
{
 alert("hebo");}var start=new Date();
 start=Date.parse(start)/1000;
 var counts=30;
 function CountDown(){
  var now=new Date();
  now=Date.parse(now)/1000;
  var x=parseInt(counts-(now-start),10);
  if(x>0){
   window.setTimeout('CountDown()',300)
  }else{
   showHideDiv()
  }
 }
window.setTimeout('CountDown()',300);
function closeDiv()
{
 document.getElementById('downmsg_emessage').style.display='none';
}function showHideDiv()
{
 var ct = document.getElementById('donwmsg_content');
 var btn = document.getElementById('msg_hidden_btn');
 if(ct.style.display!="none"){
   ct.style.display = "none"
   btn.className="msg-hidden-btn-2";
 }else{
   ct.style.display="block";
   btn.className="msg-hidden-btn-1";
 }}www_jz123_cn.util.addEvent(window,"load",function(){
 var downmsg = new downMsg("downmsg_emessage","donwmsg_content",{start_delay:2000, speed: 1, movepx:2,cookie:'downMsgcookie',expiresDay:1});
 downmsg.init();
})[color=#FF0000]这个是JS的[code=HTML]

解决方案 »

  1.   

    一般看看你的安全级别,--高级--设置里看看有没有禁止ax 和java等。
    你的代码太长 ,贴出关键代码吧。
      

  2.   

    代码太长了,没看,如果能在火狐上正确运行,那代码应该没问题。可能是IE7没有设置好吧。。Internet 安全设置一下。不要太高。
      

  3.   

    http://www.hbxfwy.com/qq.asp 是这个网站
      

  4.   

    谁有那种像商务通那中悬浮效果的JS啊 
    QQ119066075 
    [email protected]
    发一个急用
    谢谢了
      

  5.   

    八成是IE7下某个元素没找到,或用到了"undefined"的属性,一步错导致连锁反应。
    IE7下它能自动最小化不?能最小化就也能最大化,关闭就更不是问题。检查你让它最大化的代码,与最小化的代码有何不同,即可对症下药。