弹出窗口
我想 在打开 一个页面的时候, 然后过几秒钟后 ,在桌面的右下角 弹出一个 提示消息 的 小窗体 该怎么做,希望大哥大姐们 给我点提示,谢谢啦!
------解决方案--------------------没做过
用javascript弹出来个IE窗口,改变一下样式,和位置应该可以吧
------解决方案--------------------setTimeout(事件,时间)
------解决方案-------------------- <script>
var oPopup = window.createPopup();
var popTop=50;
function popmsg(msgstr){
var winstr= " <table style=\ "border: 1 solid #FFA6CA\ " width=\ "241\ " height=\ "172\ " border=\ "0\ " cellpadding=\ "0\ " cellspacing=\ "0\ " background=\ "背景图片地址\ " > ";
winstr+= " <tr> <td height=\ "30\ "> </td> </tr> <tr> <td align=\ "center\ "> <table width=\ "90%\ " height=\ "110\ " border=\ "0\ " cellpadding=\ "0\ " cellspacing=\ "0\ "> ";
winstr+= " <tr> <td valign=\ "top\ " style=\ "font-size:文字大小; color: 文字颜色; face: Tahoma\ "> "+msgstr+ " </td> </tr> </table> </td> </tr> </table> ";
oPopup.document.body.innerHTML = winstr;
popshow();
}
function popshow(){
window.status=popTop;
if(popTop> 1720){
clearTimeout(mytime);
oPopup.hide();
return;
}else if(popTop> 1520&&popTop <1720){
oPopup.show(screen.width-250,screen.height,241,1720-popTop);
}else if(popTop> 1500&&popTop <1520){
oPopup.show(screen.width-250,screen.height+(popTop-1720),241,172);
}else if(popTop <180){
oPopup.show(screen.width-250,screen.height,241,popTop);
}else if(popTop <220){
oPopup.show(screen.width-250,screen.height-popTop,241,172);
}
popTop+=10;
var mytime=setTimeout( "popshow(); ",20);
}
popmsg( "弹出内容! ");
</script>