查看了一下論壇,發展沒有消息提醒功能的彈窗提示功能。
仔細研究了一下,找到解決的辦法。
查找“您有新消息”源代碼找到其所在的位置。
例如:e/member/login/loginjs.php文件
找到$havemsg="<a href='".$public_r['newsurl']."e/member/msg/' target=_blank><font color=red>您有新消息</font></a>";
將其替換為$havemsg="<script> alert('您有新的消息! ');window.location.href='".$public_r['newsurl']."e/member/msg/';</script>";
這時出現下面的彈窗提示。
上傳以下圖片:
點擊確定后,會自動跳轉到消息列表的頁面!
同樣如果不打算強制跳轉到消息列表的頁面,只需要將代碼修改為
$havemsg="<a href='".$public_r['newsurl']."e/member/msg/' target=_blank><font color=red>您有新消息</font></a><script> alert('您有新的消息! ');</script>";
不錯吧!分享給大家!
下面是7.2的方法
e/data/template/loginiframetemp.php
找到$havemsg
<a href='".$public_r['newsurl']."e/member/msg/' target=_blank><font color=red>您有新消息</font></a><img 'CURSOR:hand;' onclick='music();' src='/style/images/mes.gif' width='0' height='0' /><embed src='/style/images/newmesg.mp3' id='mp' align='center' border='0' 'height:0px;width:0px;' autostart='true' loop='true'>
新聞熱點
疑難解答