![]() |
The Alert
Place this in your <HEAD></HEAD> tags.
<script language="JavaScript"> <!-- Hide from old Browsers //Beginning of script //Specify what you want the alert to say var alertmessage="My Message" //***No editing required beyond here*** //Alert only once per browser session (0=no, 1=yes) //The variable below controls whether or not you want the //alert to popup every browser session or just once var once_per_session=1 //The functions below will add a cookie //to tell your computer whether or not you've been //alerted or not //The following function controls the cookie itself function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(off set, end)) } } return returnvalue; } //The following function determines whether to alert you //or not, if you've recieved the cookie function alertornot(){ if (get_cookie('alerted')==''){ loadalert() document.cookie="alerted=yes" } } //The following function loads the alert function loadalert(){ alert(alertmessage) } //The following is an if/else statement on the frequency //of the alert if (once_per_session==0) loadalert() else alertornot() //-->End of Script End of hiding </script> Not too bad, if you look at it and get it down |
Template... not a hack
|
Excuse me: why do you put here a javascript course not having anything to do with VBulletin ?
|
oops,sorry,i sometimes over act >_< and why cant i delete the thread?
|
couse u're not MOD / Admin
|
I am sure they will delete it soon.... I think there should be a hack making guild line.. and people should read it.
|
This is indeed a template hack...
|
All times are GMT. The time now is 01:33 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|