﻿// JScript 文件 //需要引用quanpingfangqq.js文件
//if(typeof(img)!="undefined")
//{
// document.write( "<div id='ggquanping' style='display: none; margin: 0px auto; width:900px;'></div>");
// 
//(function(){
//var a = AD2, dom = a.DomUtil, evt = a.DomEventUtil;

//a.area({
//	id: 'ggquanping'
//})({
//	oid: '1106746',
//	cid: '89670',
//	monitor_url: '',
//	display: 'fullscreen',
//	display_config: {
//		delay: 2, // 延迟时间
//		duration: 10, // 显示时间
//		
//		show_duration: .5, //显示持续的时间
//		hide_duration: .6 //隐藏持续的时间
//	},
//	fodder: [{
//		type: 'image', //类型 可为flash
//		resource_url: img,//路径
//		
//		link_to: url,//连接地址
//		
//		width: 900,
//		height: hsize,//高度
//		cover: false
//	}]
//});
//a.render('ggquanping');
//a.ping.flush();
//if(typeof(tlocation)!="undefined"){
//setTimeout("tanchu()",3000);//弹出
//}
//})();
//}
/*******************************************/
if(typeof(img)!="undefined")
{
 document.write( "<div id='quanping' style='margin:auto; display:none; width:996px; top:0px; height:0px; border:solid 0px #000; background-color:#fafafa; overflow:hidden; text-align:center;'>");
 document.write("<a href='"+url+"'target='_blank'><img src='"+img+"' />")
 document.write("</a></div>");
}
    function addCount()//下滑
    { 
        if(typeof(span)!="undefined") { 
        if(time>0) { 
            time--; 
            h = h+span;  
        } 
            if(h>hsize)  //高度
            { return; }
            document.getElementById("quanping").style.display = "";
            document.getElementById("quanping").style.height = h+"px";
            setTimeout("addCount()",30);
        }
        else{ return;}
        
    }
   
    window.onload = function showAds(){
        addCount();
        if(close==1)
        { 
          setTimeout("noneAds()",pulltime);
          //tanchu();//加载弹出广告
        }
        //tanchu();
        
    }
    var T = 100000;//让脚本自动停止防止 函数一直运行
    if(typeof(hsize)!="undefined"){
    var N = hsize; //高度
    }
    function noneAds(){
     if(close==0)
        { return;  }
        if(T>0){
           T--;
           N = N-span;
        }
        else{ return;}
        if(N<0){
            document.getElementById("quanping").style.display = "none";
            return; }        
        document.getElementById("quanping").style.height = N+"px";
        setTimeout("noneAds()",30); 
    }

