在右下角彈出提示

 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;
  }

發佈了13 篇原創文章 · 獲贊 0 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章