﻿// JScript 文件
document.write('<div id="china_ads_div405" style="position:static;z-index:400;opacity:.100;background-color: #ffffff;filter:alpha(opacity=100);width:215px; border-right: dodgerblue 3px solid; border-top: dodgerblue 3px solid; border-left: dodgerblue 3px solid; border-bottom: dodgerblue 3px solid; height: 80px;">');
document.write('<div style="z-index:400;text-align:right;padding-right:5px;font-weight:700;cursor:pointer;font-size:12px;color:#ffffff;background:dodgerblue;border:1px #245286 solid;border-bottom:0" onclick="document.getElementById(\'china_ads_div405\').style.display=\'none\'">关闭</div>');
document.write('<div style="z-index:400;font-size: 13px; color: #0000ff; text-align: center">');
document.write('<table style="width: 211px; height: 42px; line-height: 0.7cm;">');
document.write('<tr>');
document.write('<td colspan="3" rowspan="3">');
document.write('<a href="../MessageProposals.html" target="_blank"><span style="font-size:14px; color:Blue; cursor:hand">许诺网免费为企业制作展厅网站');
document.write('&nbsp; &nbsp; 业务留言板！</span></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('<table style="width: 210px">');
document.write('<tr>');
document.write('<td colspan="3" rowspan="3" style="font-weight: bold; font-size: 13px; color: #0000ff;text-align: right">');
document.write('<a href="../MessageProposals.html" target="_blank"><span style="font-size:14px; color:Blue; cursor:hand">点击进入&gt;&gt;</span></a></td>');
document.write('</tr>');
document.write('<tr>');
document.write('</tr>');
document.write('<tr>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
 var Class = {
   create: function() {
     return function() {
       this.initialize.apply(this, arguments);
     }
   }
 }
 Function.prototype.bind = function() {
   var __method = this, args = $A(arguments), object = args.shift();
   return function() {
     return __method.apply(object, args.concat($A(arguments)));
   }
 }
 var $A = Array.from = function(iterable) {
   if (!iterable) return [];
   if (iterable.toArray) {
     return iterable.toArray();
   } else {
     var results = [];
     for (var i = 0; i < iterable.length; i++)
       results.push(iterable[i]);
     return results;
   }
 }
 var Float = Class.create();
 Float.prototype = {
  initialize: function(elem, options) {
   this.toDo = options.toDo || function(){},
   this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop,
   this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft,
   this.element = document.getElementById(elem);
   this.dely = options.dely || 500;
   this.top = options.top || 0;
   this.left = options.left || 0;
  },
  start:function(){
   if(!this.element){
    ('please set a element first!');
    return false;
   }
   this.element.style.position = 'absolute';
   this.toDo();
   setInterval(this.toDo.bind(this),this.dely)
  }
 }
var f = new Float('china_ads_div405',{dely:100,
 toDo:function(){
  var isIE = document.all && window.external;
  this.bodyScrollTop = document.documentElement.scrollTop || document.body.scrollTop;
  this.bodyScrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
  if(isIE){
   this.docWidth = document.documentElement.clientWidth || document.body.clientWidth;
   this.docHeight = document.documentElement.clientHeight || document.body.clientHeight;
  }else{
   this.docWidth = (document.body.clientWidth > document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.clientWidth;
   this.docHeight = (document.body.clientHeight > document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.clientHeight;
  }
  this.element.style.top = (this.docHeight - parseInt(this.element.offsetHeight,10)) + parseInt(this.bodyScrollTop, 10)+ 'px';
  this.element.style.left = (this.docWidth - parseInt(this.element.offsetWidth,10)) + parseInt(this.bodyScrollLeft, 10) + 'px';
 }
});
f.start();

