在右下角弹出提示

80酷酷网    80kuku.com

  public static string GetMsg(string strDescription)
{
string strScript = "<script language=\"javascript\">";
if(strDescription != "")
{
strScript += "document.write(\"<div id='popmsg' 20px 20px 20px;word-break:break-all;text-align:left;background-image: url(images/popmsgbg.gif);'>"+strDescription+"</div>\");";

strScript += "j=3;"+
"function popClose() {"+
" j -= 1;"+
" if (j > 0){setTimeout(\"popClose()\",1000);}"+
" else{popmsg.style.display=\"none\";}"+
"}";

strScript += "popClose();";

}
strScript += "</script>";

return strScript;
}


分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: