if( window.onload != null){
var oldOnload = window.onload;
window.onload = function(){
oldOnload();
enetgetMsg();
};
}
else{
window.onload = enetgetMsg;
}
if (window.onresize != null){
var oldOnresize = window.onresize;
window.onresize = function() {
oldOnresize();
enetresizeDiv();
};
}
else{
window.onresize = enetresizeDiv;
}
window.onerror = function(){}
var enetdivTop,enetdivLeft,enetdivWidth,enetdivHeight,enetdocHeight,enetdocWidth,enetobjTimer,i = 0;
var tuiguangcookieName = "ali_popup_blog_list";
var expires = new Date();
var exp_time = expires.setTime(expires.getTime() + 12*60*60*1000);
function enetgetMsg()
{
//alert(getCookie(tuiguangcookieName)=="")
try{
if (getCookie(tuiguangcookieName)==null){
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
enetdivLeft = parseInt(document.getElementById("enetMeng").style.left,10)
enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)
enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)
enetdocWidth = document.documentElement.clientWidth;
enetdocHeight = document.documentElement.clientHeight;
document.getElementById("enetMeng").style.top = parseInt(document.documentElement.scrollTop,10) + enetdocHeight + 10;// enetdivHeight
document.getElementById("enetMeng").style.left = parseInt(document.documentElement.scrollLeft,10) + enetdocWidth - enetdivWidth
document.getElementById("enetMeng").style.visibility="visible"
enetobjTimer = window.setInterval("enetmoveDiv()",10)
setCookiePopup()
//setCookie(tuiguangcookieName, "popped", 43200)
}
}
catch(e){}
}
function enetresizeDiv()
{
try{
enetdivHeight = parseInt(document.getElementById("enetMeng").offsetHeight,10)
enetdivWidth = parseInt(document.getElementById("enetMeng").offsetWidth,10)
enetdocWidth = document.documentElement.clientWidth;
enetdocHeight = document.documentElement.clientHeight;
document.getElementById("enetMeng").style.top = enetdocHeight - enetdivHeight + parseInt(document.documentElement.scrollTop,10)
document.getElementById("enetMeng").style.left = enetdocWidth - enetdivWidth + parseInt(document.documentElement.scrollLeft,10)
}
catch(e){}
}
function enetmoveDiv()
{
try
{
if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight - enetdivHeight + parseInt(document.documentElement.scrollTop,10)))
{
window.clearInterval(enetobjTimer)
enetobjTimer = window.setInterval("enetresizeDiv()",1)
}
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
document.getElementById("enetMeng").style.top = enetdivTop - 2
}
catch(e){}
}
function enetcloseDiv()
{
document.getElementById('enetMeng').style.visibility='hidden';
if(enetobjTimer) window.clearInterval(enetobjTimer)
}
function setCookiePopup()
{
var expires = new Date();
expires.setTime(expires.getTime() + 12*60*60*1000);
var the_cookie = tuiguangcookieName+"=viewed;path=/;domain=.alibaba.com;expires=" + expires.toGMTString();
document.cookie = the_cookie;
}
function getCookie(cookieName) {
var cookieString = document.cookie;
var start = cookieString.indexOf(cookieName + '=');
if (start == -1)
return null;
start += cookieName.length + 1;
var end = cookieString.indexOf(';', start);
if (end == -1) return unescape(cookieString.substring(start));
return unescape(cookieString.substring(start, end));
}
function miniDiv()
{
try
{ alert(document.getElementById("enetMeng").style.top);
alert(enetdocHeight + enetdivHeight + parseInt(document.documentElement.scrollTop,10) - 28);
//var enetobjTimer =0;
if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight + enetdivHeight + parseInt(document.documentElement.scrollTop,10) - 28))
{
window.clearInterval(enetobjTimer)
enetobjTimer = window.setInterval("miniDiv()",1)
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
document.getElementById("enetMeng").style.top = enetdivTop + 2
}
}
catch(e){}
}
function miniDivup()
{
try
{
//alert('s'+ document.getElementById("enetMeng").style.top);
//alert( enetdocHeight - enetdivHeight);
//var enetobjTimer1 =0;
if(parseInt(document.getElementById("enetMeng").style.top,10) > (enetdocHeight - enetdivHeight + parseInt(document.documentElement.scrollTop,10)))
{
window.clearInterval(enetobjTimer1)
enetobjTimer1 = window.setInterval("miniDivup()",1)
enetdivTop = parseInt(document.getElementById("enetMeng").style.top,10)
document.getElementById("enetMeng").style.top = enetdivTop - 2
}
}
catch(e){}
}
function minimenu(){
enetdocWidth = document.body.clientWidth;
if(parseInt(document.getElementById("enetMeng").style.top,10) <= (enetdocHeight + enetdivHeight + parseInt(document.documentElement.scrollTop,10) - 28))
{
EnetobjTimer1 = window.setInterval("miniDiv()",10);
}else{
EnetobjTimer3 = window.setInterval("miniDivup()",10);
}
}
document.write("<div id=enetMeng style=\"Z-INDEX: 99999; LEFT: 0px; VISIBILITY: visible; POSITION: absolute; TOP: -256px; HEIGHT: 157px\">")
document.write("<a id='closeButton' target=\"_self\" href='javascript:enetcloseDiv()' style=\"position:absolute;z-index:2;font-size:0px;line-height:0px;left:240px;top:6px;width:16px;Height:16px;background-image:url('http://img.china.alibaba.com/images/cn/news/others/061109/b1.gif')\"></a> <iframe id=\"xp_content_iframe\" src=\"http://video.china.alibaba.com/static/fuchu.html?iframe_delete=true\" frameborder=\"0\" scrolling=\"no\" height=\"170\" width=\"264\"></iframe></div>")
