The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make javascript only take effect once per browser session
Ok bare with me i am new to html. I posted a similar thread but realised I was asking the wrong thing so I thought it best to start again.
The javascript I am using is called modalbox. In order for it to work you have to add the neccessary files to your server and paste this code into your pages: Quote:
I have tried adding this after the code: Quote:
|
#2
|
|||
|
|||
Is anybody able to help me? Thanks
|
#3
|
|||
|
|||
Sorry but i don't understand what you mean with "only take effect once per browser session"
|
#4
|
|||
|
|||
Basically, this popup will "pop-up" every time the page is viewed, and I only want to to "pop-up" once per browser session, or even once per 24 hours. So once it has popped up, if the oage is viewed again, nothing will happen. Thanks
|
#5
|
|||
|
|||
You can use cookies. When the cookie exists don't show the popup. If cookie doesn't exist show popup and create cookie.
|
#6
|
|||
|
|||
Quote:
EDIT: Ok I think I have to send a cookie that lasts for 24 hours? How would I do this please? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|