Pop Up
- Started
- Last post
- 4 Responses
- story
Hi all, a client want a way to have a pop up for every 10th visitor or so.
Do any of you good folk help me out with code?
Hope this makes sense, thanks.
- dinky0
rig the counter to trigger a varible that popsup
- nocomply0
Yeah use some js to create a random number (1-10). Then say if that random number == 3 (or whatever number you choose), implement the pop up window.
Won't be a pop-up every tenth visitor, but you'll avg 10% pop-ups.
- Nairn0
You could instead randomly choose 1 in 10, then write a cookie to prevent inclusion in future?
- story0
so far I have, but how do you make it so that it will do every 10th visitor?
function pop_window_Survey() {
window.open('http://www.appliedr... 'popup', 'width=800, height=600, top=100, left=100, menubar=1, scrollbars=1, location=1, toolbar=1, resizable=1, status=1');
}
found the script here: http://www.simple-code.net/Popup…