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
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 } ?> Code (markup):
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
replace // Put the code for the popup here Code (markup): with $text = "Your popup text goes here!"; echo '<script type="text/javascript">alert(\'' . $text . '\');</script>'; Code (markup):
And what if I wanted a pop up for Firefox and Internet Explorer that will open a html file that contains the following webradio: 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