说明一下函数的功能:主要是在弹出信息框,提式大家有新信息需要阅读。有新信息时可以点提式进入view.jsp页面。类似QQ。

解决方案 »

  1.   

    我这里可以打开<body>
    </body>
    <SCRIPT LANGUAGE="JavaScript">
    <!--
    function popmsg(msgstr)
    {
       var winstr="<table style=\"border: 1 solid  #000000\"  width=\"200\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"  background=\"../image/3701-1.gif\" >";
       winstr+="<tr><td height=\"0\"> </td></tr><tr><td align=\"center\"><table width=\"90%\" height=\"110\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">";
       winstr+="<tr><td valign=\"middle\" style=\"font-size:12px; color: #ffffff; face: Tahoma\" align=\"center\"><a href=\\message\\view.jsp target=\"_blank\"><font color=red>有"+msgstr+"条新消息,请阅读!</font></a></td></tr></table></td></tr></table>";
       document.body.innerHTML = winstr;
       //popshow();
    }
    popmsg("aaaa")
    //-->
    </SCRIPT>