JS Music Player popunder

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
User avatar
The Spy
Registered User
Posts: 46
Joined: Sat Jan 11, 2003 5:51 pm
Location: Florida, USA

JS Music Player popunder

Post by The Spy »

can anyone tell me where the appropriate place would be to place this code???

Code: Select all


//Pop-under window- By JavaScript Kit 
//Credit notice must stay intact for use 
//Visit http://javascriptkit.com for this script 

//specify page to pop-under 
var popunder="http://members.lycos.co.uk/teambp/phpBB2/templates/skyLineGrey/images/bpplayer.swf" 

//specify popunder window features 
//set 1 to enable a particular feature, 0 to disable 
var winfeatures="width=300,height=50,scrollbars=0,resizable=0,toolbar=0,location=0,menubar=0,status=0,directories=0" 

//Pop-under only once per browser session? (0=no, 1=yes) 
//Specifying 0 will cause popunder to load every time page is loaded 
var once_per_session=1 

///No editing beyond here required///// 

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(offset, end)) 
return returnvalue; 

function loadornot(){ 
if (get_cookie('popunder')==''){ 

function loadpopunder(){ 

if (once_per_session==0) 

the current player is just a test player. once i get this straightened out, i'm going to make a better looking player. no sense in wasting time on a sweet looking player if the code won't work.

i placed the code in the overall_header.tpl for skylinegrey,since it is my default style on my forum. when i did this, the popup worked. but......all the graphics in the header were either gone or red x's. any ideas???
"I'm just a figment of your imagination."

Return to “2.0.x Support Forum”