Post by Malagrond on Dec 19, 2009 14:09:23 GMT -8
Description:
Creates an announcement box similar to that used in vBulletin forums, directing users to visit an important thread before continuing their usual forum activities.
Preview:
Click
Global Header
Global Footer
~Mala
Creates an announcement box similar to that used in vBulletin forums, directing users to visit an important thread before continuing their usual forum activities.
Preview:
Click
Global Header
<!-- vB Style Announcements Begin -->
<table style="display:none;border:1px solid #000;width:92%;" align="center" cellspacing="0" id="anTable">
<tr><td class="titlebg" style="text-align:center;border-bottom:1px solid #000;">Announcement</td></tr>
<tr><td class="windowbg" style="padding:10px;">
The staff has made a very important announcement thread and would like all members to read it. Please click <a id="anLink">HERE</a> to view the thread.
</td></tr>
</table>
<script>
<!--
/*
vB Style Announcements
by Malagrond
*/
var aT = "1"; // ID of thread to announce.
var aB = "general"; // ID of board announcement thread resides in.
var isAnnounce = "yes"; // Yes: there is an announcement active. No: there is no active announcement.
// Do not edit below
var aL = '?board='+aB+'&action=display&thread='+aT;
if(!document.cookie.match(/announce=1;/gi) && isAnnounce=="yes" && !location.href.match(/thread=/gi)){
document.getElementById("anTable").style.display="block";
document.getElementById("anLink").href = aL;
document.write("<div style='display:none;'>");
}
if(location.href.indexOf(aL)!=-1){
document.cookie = "announce=1";
}
if(isAnnounce=="no"){
document.cookie = "announce=0";
}
-->
</script>
<!-- vB Style Announcements End -->
Global Footer
<!-- vB Style Announcements Footer Begin -->
<script>
if(!document.cookie.match(/announce=1;/gi) && isAnnounce=="yes" && !location.href.match(/thread/gi)){
document.write("</div>");
}
</script>
<!-- vB Style Announcements Footer End -->
~Mala