View Full Version : Remote popup player

08-28-2006, 07:37 PM
I need to be able to provide my users with a code they can use to link to my popup player from their sites. The player window must have no URL scrollbars etc.. just a box 500x200 which opens in the middle of the screen.

The link I give them must be fairly minimal like:

<!-- Begin Link-->
<a href="http://www.mysite.bla" target="_blank">Link</a>
<!-- End Link-->

Therefore I suppose the script functionality would be placed in the <head> of the player page.

Now here's the tricky bit - that player page currently loads into a page in my main site, and so if anything is added to the <head> it should not cause the main site to resize..

Any help would be HIGHLY appreciated! :)


08-28-2006, 07:54 PM
Use JavaScript:

<a href="#" onclick="window.open('http://www.mysite.bla','newwin','scrollbar=no,menubar=no,statusbar=no')"

08-28-2006, 08:11 PM

Spot on! And congratulations because you've just made my day :)

Just a quickie - I added the width/height because it didn't reflect it in the code you pasted, is there a way of centering the box too?


08-28-2006, 09:19 PM
Use the parameters left, and top to specify where it'll be on the screen. You can do the same for the width and height.