﻿
<!--对联代码开始-->
   //<![CDATA[
   var adLeftSrc2 = "images/qibei.gif"   //图片地址 
   var adLeftFlash2 = ""  //flash的话直接填写flash
   var adLeftHref2 = "http://v.youku.com/v_show/id_XMjU0NzEwOTA0.html"
   var adLeftWidth2 = 120  //图片宽
   var adLeftHeight2 = 230 //图片高
   var adRightSrc2 = "images/qibei.gif"//图片地址
   var adRightFlash2 = ""
   var adRightHref2 = "http://v.youku.com/v_show/id_XMjU0NzEwOTA0.html"
   var adRightWidth2 = 120
   var adRightHeight2 = 230
   var marginTop2 = 200 //在这里更改距离浏览器底端的高度
   var marginLeft2 = 5//在这里更改距离浏览器右端的高度
   var navUserAgent2 = navigator.userAgent
   function load2(){
    judge2();
    move2();
   }
   function move2() {
    judge2();
    setTimeout("move2();",80)
   }
   function judge2(){
    if (navUserAgent2.indexOf("Firefox") >= 0 || navUserAgent2.indexOf("Opera") >= 0) {
     if (adLeftSrc2 != "") {document.getElementById("adLeftFloat2").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adLeftHeight2 - marginTop2 + 'px';}
     if (adRightSrc2 != "") {
      document.getElementById("adRightFloat2").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight) - adRightHeight2 - marginTop2 + 'px';
      document.getElementById("adRightFloat2").style.left = ((document.body.clientWidth > document.documentElement.clientWidth)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth2 - marginLeft2 + 'px';
     } 
    }
    else{
     if (adLeftSrc2 != "") {document.getElementById("adLeftFloat2").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adLeftHeight2 - marginTop2 + 'px';}
     if (adRightSrc2 != "") {
      document.getElementById("adRightFloat2").style.top = (document.body.scrollTop?document.body.scrollTop:document.documentElement.scrollTop) + ((document.documentElement.clientHeight == 0)?document.body.clientHeight:document.documentElement.clientHeight) - adRightHeight2 - marginTop2 + 'px';
      document.getElementById("adRightFloat2").style.left = ((document.documentElement.clientWidth == 0)?document.body.clientWidth:document.documentElement.clientWidth) - adRightWidth2 - marginLeft2 + 'px';
     }
    }
    if (adLeftSrc2 != "") {document.getElementById("adLeftFloat2").style.left = marginLeft2 + 'px';}
   }
   
   
   
   if (adLeftSrc2 != "") {
    if (adLeftFlash2 == "flash") {
   // document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth2 + ";height:100px; font-size:12px;\"><img src=\"images/close.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_left();void(0);\";>");
    
 document.write("<div id=\"adLeftFloat2\" style=\"position: absolute;width:" + adLeftWidth2 + ";height:100px; font-size:12px;text-align:right;\">");
 
    document.write("<div id=\"Float2\" style=\"width:" + adLeftWidth2 + ";\"><embed src=\"" + adLeftSrc2 + "\" quality=\"high\"  width=\"" + adLeftWidth2 + "\" height=\"" + adLeftHeight2 + "\" type=\"application/x-shockwave-flash\"></embed></div>");
 document.write("<span OnClick=\"javascript:close_float_left2();close_float_right2();void(0);\"; style=\"cursor:hand;background-color:#FFFFFF;width:" + adLeftWidth2 + "; height:15\">[关闭]</span>");
  //document.write("<div OnClick=\"javascript:close_float_left2();void(0);\"; style=\"cursor:hand; width:" + adLeftWidth2 + "; height:15\">[关闭]</div>");
     document.write("</div>");
    }
    else{
    //document.write("<div id=\"adLeftFloat\" style=\"position: absolute;width:" + adLeftWidth2 + ";height:100px; font-size:12px;\"><img src=\"images/close.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_left();void(0);\";>");
    document.write("<div id=\"adLeftFloat2\" style=\"position: absolute;width:" + adLeftWidth2 + ";height:100px; font-size:12px;text-align:right;\">");
 
     document.write("<div id=\"Float2\" style=\"width:" + adLeftWidth2 + ";\"><a href=\"" + adLeftHref2 +"\" target=_blank><img src=\"" + adLeftSrc2 + "\"  width=\"" + adLeftWidth2 + "\" height=\"" + adLeftHeight2 + "\"  border=\"0\" \></a></div>");
 document.write("<span OnClick=\"javascript:close_float_left2();close_float_right2();void(0);\"; style=\"cursor:hand;background-color:#FFFFFF;width:" + adLeftWidth2 + "; height:15\">[关闭]</span>"); 
     document.write("</div>");
    }
   }
   
   
   
   if (adRightSrc2 != "") {
    if (adRightFlash2 == "flash") {
     document.write("<div id=\"adRightFloat2\" style=\"position: absolute;width:" + adRightWidth2 + ";height:100px; font-size:12px;text-align:right;\">");
     //document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth2 + ";height:100px; font-size:12px;text-align:right;\"><img src=\"images/close.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_right();void(0);\";>");
 
     document.write("<div id=\"Float2\" style=\"width:" + adRightWidth2 + ";\"><embed src=\"" + adRightSrc2 + "\" quality=\"high\"  width=\"" + adRightWidth2 + "\" height=\"" + adRightHeight2 + "\" type=\"application/x-shockwave-flash\"></embed></div>");
  document.write("<span OnClick=\"javascript:close_float_right2();close_float_left2();void(0);\"; style=\"cursor:hand;background-color:#FFFFFF;width:" + adRightWidth2 + "; height:15\">[关闭]</span>");
     document.write("</div>");
 
    }
    else{
    //document.write("<div id=\"adRightFloat\" style=\"position: absolute;width:" + adRightWidth2 + ";height:100px; font-size:12px;text-align:right;\"><img src=\"images/close.gif\" width=\"12\" border=\"0\" height=\"12\" onMousedown=\"javascript:close_float_right();void(0);\";>");
    
  document.write("<div id=\"adRightFloat2\" style=\"position: absolute;width:" + adRightWidth2 + ";height:100px; font-size:12px;text-align:right;\">");
  
     document.write("<div id=\"Float2\" style=\"width:" + adRightWidth2 + ";\"><a href=\"" + adRightHref2 +"\" target=_blank><img src=\"" + adRightSrc2 + "\"   width=\"" + adRightWidth2 + "\" height=\"" + adRightHeight2 + "\"  border=\"0\"  \></a></div>");
     document.write("<span OnClick=\"javascript:close_float_right2();close_float_left2();void(0);\"; style=\"cursor:hand;background-color:#FFFFFF;width:" + adRightWidth2 + "; height:15\">[关闭]</span>");
  document.write("</div>");
    }
   }
   
   
   
   
   load2();

function close_float_right2(){
document.getElementById("adRightFloat2").style.display="none";} 
function close_float_left2(){
document.getElementById("adLeftFloat2").style.display="none";}  //]]>


<!--对联代码结束-->


