How to make this function?
Like 
http://news.china.com/zh_cn/
the Lift "gift"

解决方案 »

  1.   


    <SCRIPT language=javascript>
    document.ns = navigator.appName == "Netscape"
    function winload()
    {
    if (navigator.appName == "Netscape")
    {document.win.pageY=pageYOffset;
    document.win.pageX=0;
    }
    else
    {
    win.style.top=document.body.scrollTop;
    win.style.right=0;
    streamlayer1.style.top=document.body.scrollTop;
    streamlayer1.style.right=0;
    }
    }function writeCookie(name, value, hours)
    {
      var expire = "";
      if(hours != null)
      {
        expire = new Date((new Date()).getTime() + hours * 3600000);
        expire = "; expires=" + expire.toGMTString();
      }
      document.cookie = name + "=" + escape(value) + expire;
    }function readCookie(name)
    {
      var cookieValue = "";
      var search = name + "=";
      if(document.cookie.length > 0)
      { 
        offset = document.cookie.indexOf(search);
        if (offset != -1)
        { 
          offset += search.length;
          end = document.cookie.indexOf(";", offset);
          if (end == -1) end = document.cookie.length;
          cookieValue = unescape(document.cookie.substring(offset, end))
        }
      }
      return cookieValue;
    }function openwin()
    {
    if (readCookie("tbadshow")=="hide"){
    document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: visible;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash'  id=winicon name='winicon'></EMBED></div>");
    document.writeln("<div id=streamlayer1 style='position: absolute;visibility:hidden;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high  WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");
    writeCookie("tbadshow", "hide", 1);
    }
    else {
    document.writeln("<div id=win style='position: absolute;width:64;top:300;visibility: hidden;z-index: 1'><EMBED src='http://ads.china.com/zxs/news/sp/8080.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash'  id=winicon name='winicon'></EMBED></div>");
    document.writeln("<div id=streamlayer1 style='position: absolute;visibility:visible;z-index:30'><EMBED src='http://ads.china.com/zxs/news/sp/350250.swf' quality=high  WIDTH=350 HEIGHT=250 TYPE='application/x-shockwave-flash' wmode='transparent' id='winhide' name='winhide'></EMBED></div>");
    writeCookie("tbadshow", "hide", 1);
    }
    winload();
    }
    openwin(); 看清楚了,是flash
      

  2.   

    是的,他是个FLASH啊!!!!