1 Show div instead of pop up when new PM Sun Jan 09, 2011 2:33 am
Unknown Data
Registered Member
Hi,
My plan was to make a div fixed to the top when you recieve a PM, instead of showing a pop up. But when I did that, the bar was only visible the first time a page got loaded, ie. when you clicked a link on the page, will the bar be hidden again.
Here is what I've done to my PunBB sourc:
Overall header template:
Css:
Thanks.
My plan was to make a div fixed to the top when you recieve a PM, instead of showing a pop up. But when I did that, the bar was only visible the first time a page got loaded, ie. when you clicked a link on the page, will the bar be hidden again.
Here is what I've done to my PunBB sourc:
Overall header template:
- Code:
<div id="newmessage">There is a new message in your inbox, click <a href="../msg.forum?folder=inbox"><u>here</u></a> to see it.</div>
<!-- BEGIN switch_enable_pm_popup -->
pm = document.getElementById("newmessage").style.visibility = "visible";
pm.focus();
<!-- END switch_enable_pm_popup -->
Css:
- Code:
#newmessage {
visibility : hidden;
padding : 10px;
border-bottom : 3px solid #FF902E;
background : #FFFFFF;
position : fixed;
top : 0px;
left : 0px;
width : 100%;
font-size : 13px;
}
Thanks.
Last edited by Unknown Data on Fri Jan 14, 2011 6:13 pm; edited 1 time in total