View Full Version : Need Auto Popup or Popunder that works for Firefox
moker
May 17th 2008, 5:58 pm
Hey everybody,
I am searching for a javascript code for a Popup or Popunder, when a visitor gets on a website a popup/popunder appears, i dont want to annoy the visitor so i want it in 1 popup per session.
its very easy to find the javascript for IE but for Firefox its very hard.
can anyone help me with this?
thanks in advance
crath
May 18th 2008, 6:24 am
are you using php?
moker
May 18th 2008, 10:36 am
no but my server has PHP installed
tnx
crath
May 18th 2008, 10:46 am
You could mess with...<?php
session_start();
if( $_SESSION['popup'] == 'done'){
//The user has already seen the popup
} else {
$_SESSION['popup'] = 'done';
// Put the code for the popup here
}
?>
moker
May 18th 2008, 11:05 am
thanks Shane, but that is just the session.
I need a javascript that could automaticlly popup 1 popup that works with Firefox and Internet Explorer
tnx
crath
May 18th 2008, 11:24 am
replace
// Put the code for the popup here
with
$text = "Your popup text goes here!";
echo '<script type="text/javascript">alert(\'' . $text . '\');</script>';
insanity1983
Jul 19th 2008, 9:28 pm
And what if I wanted a pop up for Firefox and Internet Explorer that will open a html file that contains the following webradio:
www DOT mxinflict DOT nl SLASH tuning SLASH radio.html
The size of the pop up needs te be like 225 width and 30 height.
I added a mediaplayer like option to stream an online radio.
Thnx in advance
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.