在右下角弹出提示

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sukey00 的 blog

  public static string getmsg(string strdescription)
  {
   string strscript = "<script language=\"javascript\">";
   if(strdescription != "")
   {
    strscript += "document.write(\"<div id='popmsg' style='position:absolute;right:0px;bottom:0px;width:260px;height:165px;z-index:1;padding:20px 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;
  }

本文关键:在右下角弹出提示
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top