function tips_pop(){
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);//将对象的高度转化为数字
if (popH==0){
MsgPop.style.display="block";//显示隐藏的窗口
show=setInterval("changeH('up')",2);
}
else {
hide=setInterval("changeH('down')",2);
}
}
function dang()
{
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);//将对象的高度转化为数字
//var ttop = document.getElementById('winpop').style.top
if (popH>55)
{
document.getElementById('winpop').style.height=(popH-4)+"px";
//if (jjww < 1300)
//{
//document.getElementById('winpop').style.top= jjww +4;
//jjww = jjww+3;
//}
setTimeout("dang()",1);//3秒后调用tips_pop()这个函数
}
else
{
jjww = document.documentElement.scrollTop+document.documentElement.clientHeight-50;
document.getElementById('guanbi').src='/images/fd_dk.gif';
document.getElementById('guanbia').href='javascript:dang2()';
setTimeout("move(jjww)",1);//3秒后调用tips_pop()这个函数
}
//alert(jjww);
}
function dang2()
{
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);//将对象的高度转化为数
//alert(popH)
if (popH<190)
{
document.getElementById('winpop').style.height=(popH+4)+"px";
//if (jjww < 1300)
//{
//document.getElementById('winpop').style.top= jjww +4;
//jjww = jjww+3;
//}
setTimeout("dang2()",1);//3秒后调用tips_pop()这个函数
}
else
{
jjww = document.documentElement.scrollTop+document.documentElement.clientHeight-popH;
document.getElementById('guanbi').src='/images/fd_gb.gif';
document.getElementById('guanbia').href='javascript:dang()';
setTimeout("move2(jjww)",1);//3秒后调用tips_pop()这个函数
}
}
//var jjww = document.documentElement.clientHeight-50;
function move(jjww)
{
var jjwws = parseInt(document.getElementById('winpop').style.top);
if (jjwws < jjww)
{
document.getElementById('winpop').style.top= (jjwws+4)+"px";
jjwws = jjwws+4;
setTimeout("move(jjww)",1);//3秒后调用tips_pop()这个函
}
}
function move2(jjww)
{
var jjwws = parseInt(document.getElementById('winpop').style.top);
//alert(jjww);
//alert(jjwws);
if (jjwws > jjww)
{
document.getElementById('winpop').style.top= (jjwws-4)+"px";
jjwws = jjwws-4;
setTimeout("move2(jjww)",1);//3秒后调用tips_pop()这个函
}
}
function changeH(str) {
var MsgPop=document.getElementById("winpop");
var popH=parseInt(MsgPop.style.height);
if(str=="up"){
if (popH<=183){
MsgPop.style.height=(popH+4).toString()+"px";
}
else{
clearInterval(show);
}
}
if(str=="down"){
if (popH>=4){
MsgPop.style.height=(popH-4).toString()+"px";
}
else{
clearInterval(hide);
MsgPop.style.display="none"; //隐藏DIV
}
}
}
window.onload=function(){//加载
document.getElementById('winpop').style.height='0px';
setTimeout("tips_pop()",1000);//3秒后调用tips_pop()这个函数
var tt=document.documentElement.clientHeight-190;
new couplet("winpop",tt,-1);
//alert(document.documentElement.clientHeight);
}
function couplet(){
if(arguments.length>=1) this.objID = document.getElementById(arguments[0]);
if(arguments.length>=2) this.divTop = arguments[1];
if(arguments.length>=3) this.divPlane = arguments[2];
if(arguments.length>=4) this.scrollDelay = arguments[4];
if(arguments.length>=5) this.waitTime = arguments[5];
if(!this.objID){
alert("对象名【"+ arguments[0] +"】无效,对联无法初始化,请检查对象名称是否正确!");
this.objID = null; return;
}else{
this.objID.style.position="absolute";
this.objID.style.display="block";
this.objID.style.zIndex=9999;
}
if("" == this.objID.style.top){
if(isNaN(this.divTop)){
alert("对象垂直位置(top)参数必须为数字。"); return;
}else{
this.objID.style.top = this.divTop+"px";
}
}
if("" == this.objID.style.left && "" == this.objID.style.right){
if(isNaN(this.divPlane)){
alert("对象水平位置(left||right)参数必须为数字。"); return;
}
if(this.divPlane>0) this.objID.style.left = this.divPlane+"px";
if(this.divPlane<0) this.objID.style.right = Math.abs(this.divPlane)+"px";
}
if(this.scrollDelay<15 || isNaN(this.scrollDelay)) this.scrollDelay = 15;
if(this.waitTime<500 || isNaN(this.waitTime)) this.waitTime = 500;
if(arguments.length>=1) this.start();
}
couplet.prototype.start = function(){
if(null == this.objID) return;
var objCouplet = this;
timer = this.scrollDelay;
objCouplet.lastScrollY = 0;
objCouplet.timerID = null;
objCouplet.startID = function(){
if("block" == objCouplet.objID.style.display){
objCouplet.run();
}else{
clearInterval(objCouplet.timerID);
}
}
objCouplet.Begin = function(){
objCouplet.timerID = setInterval(objCouplet.startID,timer);
}
setTimeout(objCouplet.Begin,this.waitTime);
}
couplet.prototype.run = function(){
if(document.documentElement && document.documentElement.scrollTop){
uu_scrY = parseFloat(document.documentElement.scrollTop);
}else if(document.body){
uu_scrY = parseFloat(document.body.scrollTop);
}
uu_divX = parseFloat(this.objID.style.top.replace("px",""));
uu_curTop = .1 * (uu_scrY - this.lastScrollY);
uu_curTop = uu_curTop>0?Math.ceil(uu_curTop):Math.floor(uu_curTop);
this.objID.style.top = parseFloat(uu_divX + uu_curTop) + "px";
this.lastScrollY += uu_curTop;
}
var GetRandomn = 1;
var name =new Array()
name[1]="张";
name[2]="鞠";
name[3]="赵";
name[4]="胡";
name[5]="严";
name[6]="李";
name[7]="宋";
name[8]="周";
name[7]="吴";
name[9]="魏";
name[10]="姚";
name[11]="江";
name[12]="崔";
name[13]="姬";
name[14]="司徒";
name[15]="冯";
name[16]="陈";
name[17]="朱";
name[18]="孔";
var sex =new Array()
sex[1] ='女士';
sex[2] ='先生';
sex[3] ='女士';
sex[4] ='先生';
sex[5] ='小姐';
var ccoonn = new Array()
ccoonn[1] = '加盟了<a href="/'+pid+'.html"><span class="font02">'+item_title+'</span></a>项目,并得到了专家指导,立即留言走向成功之路。'
ccoonn[2] = '给<a href="/'+pid+'.html"><span class="font02">'+item_title+'</span></a>项目留了言,并获取了相关的资料信息。如果你对该项目感兴趣,那么赶快留言吧~!'
document.writeln("<link href=\"/css/mge_style.css\" type=\"text/css\" rel=\"stylesheet\" />");
document.writeln("<style type=\"text/css\">");
document.writeln("#winpop { width:237px;margin:0; padding:1px;overflow:hidden;");
document.writeln("</style>");
document.writeln("<div id=\"winpop\">");
document.writeln("<div class=\"fd\">");
document.writeln(" <div class=\"fd_l\">");
document.writeln(" <div class=\"fd_lnr\">");
document.writeln(" <h2>");
document.writeln(" <span>致富新信息</span>");
document.writeln(" <a href=\"javascript:dang()\" id=\"guanbia\"><img src=\"/images/fd_gb.gif\" id=\"guanbi\"/></a>");
document.writeln(" </h2>");
document.writeln(" <h3><span class=\"font01\" style=\"color:#0044de\">"+miao+" 秒前</span> <span class=\"font01\"><script>document.write(name["+name2+"]);document.write(sex["+sex2+"]);</script></span> <script>document.write(ccoonn["+ccoonntt2+"]);</script>~!</h3>");
document.writeln(" <h4><a href=\"javascript:div_x('div_cen');sendData(3,location.hostname)\"><img src=\"/images/messge.gif\"></a></h4>");
document.writeln("<h5><marquee direction=\"left\" scrollamount=\"6\" scrolldelay=\"120\">如果您已经为 <a href=\"/"+pid+".html\">"+item_title+"</a> 留言,我们推荐您为十个以上项目留言,可");
document.writeln("大大增加成功机会</marquee></h5>");
document.writeln(" </div>");
document.writeln(" </div>");
document.writeln("</div>");
document.writeln("</div>");