Website advice needed

Caporegime
Joined
8 Sep 2006
Posts
38,301
Location
On Ocuk
I'm trying to use a html/javascript as a pop up window player. So when it's clicked it opens a window and the player starts. I've got the media player working, but when I click anywhere else on the site away from the pop up the player keeps restarting. Also if I click any where else on the site the pop up window comes up which I don't want. I want it as a click able pop up window only in the area that I click that stays playing.

Code:
<img src="http://1.bp.blogspot.com/-ypHkdTyYojY/VTdWd7Xv2FI/AAAAAAAAT98/XD73jM96nGs/s1600/equalizer-roland.gif" style="border: 1px none;" width="150" height="25" />
<script type="text/javascript">

document.body.onclick= function(){

window.open('http://rolandradio.net/radio/miniplayer/miniplayer.php', 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=1, width=530, height=200, left = 300, top = 50');
}</script>


2)

This works fine as a player on the site, but it's not a pop up window so when another article page is opened, the player stops

Code:
<img src="http://1.bp.blogspot.com/-ypHkdTyYojY/VTdWd7Xv2FI/AAAAAAAAT98/XD73jM96nGs/s1600/equalizer-roland.gif" style="border: 1px none;" width="150" height="25" /><audio src="http://streaming.rolandradio.net:8000/rolandradio" controls="controls"></audio>

Basically acting like a blogger widget/plugin ^
 
Last edited:
Caporegime
OP
Joined
8 Sep 2006
Posts
38,301
Location
On Ocuk
FIXED!

Code:
<img src="Url GIF Image Link" style="border: 1px none;" width="150" height="25" /><a href="http://rolandradio.net/radio/miniplayer/miniplayer.php" onclick="window.open(this.href, 'mywin',
'left=20,top=20,width=500,height=500,toolbar=1,resizable=0'); return false;" ><img src="Url Play button Image" style="border: 1px none;" width="30" height="30" /></a>
 
Back
Top Bottom