PDA

View Full Version : Pop Up Box



TuckJump
22-11-2008, 07:28 PM
Hello I think this is the right section although i may be wrong...

I'm looking for a simple code where i can put a radio player into that pops when a link is clicked so the radio player is in the pop up.

Can anyone help please?

HabbDance
22-11-2008, 10:32 PM
You weren't very detailed, but you can just put the radio in a file then add target="_blank" to your link...

TuckJump
23-11-2008, 07:19 AM
So using what you've said above will produce something like what club habbo have got under the radio player when clicked on? www./clubhabbo.net/radio/popup.html

Jxhn
23-11-2008, 09:56 AM
Put this in the head tags:


<script type="text/javascript">
function popup(url, width, height, name)
{
window.open(url, name, 'width='+width+',height='+height+',resizable=0,scr ollbars=0,location=0');
}
</script>

The link:

<a href="#" onClick=popup('radio.html', '300', '150', 'radio')

Hopefully that would work.

HabbDance
23-11-2008, 12:47 PM
Put this in the head tags:


<script type="text/javascript">
function popup(url, width, height, name)
{
window.open(url, name, 'width='+width+',height='+height+',resizable=0,scr ollbars=0,location=0');
}
</script>

The link:

<a href="#" onClick=popup('radio.html', '300', '150', 'radio')

Hopefully that would work.
Only advantage of that is you can set your width, so if you need to use it, other way mine is much simpler :D

Also, close your tags Jxhn

<a href="#" onClick=popup('radio.html', '300', '150', 'radio')>

Jxhn
23-11-2008, 12:55 PM
Only advantage of that is you can set your width, so if you need to use it, other way mine is much simpler :D

Also, close your tags Jxhn

<a href="#" onClick=popup('radio.html', '300', '150', 'radio')>

_blank opens in new tab which is probably too big for a radio player. Forgot about the end of the tag. :P

<a href="#" onClick="popup('radio.html', '300', '150', 'radio')">

TuckJump
24-11-2008, 04:44 PM
Put this in the head tags:


<script type="text/javascript">
function popup(url, width, height, name)
{
window.open(url, name, 'width='+width+',height='+height+',resizable=0,scr ollbars=0,location=0');
}
</script>

The link:

<a href="#" onClick=popup('radio.html', '300', '150', 'radio')

Hopefully that would work.

Sorry I'm being thick where would this code go? and if the link was say radiopopup.htm where would that go i'm sorry...


<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" name="player" width="145" height="40" standby="Loading" codebase="/CODEBASE=http:/activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715">
<param name=" id="player="player"" url="http://www.voiceitfm.listen2myradio.com" value="true" />
<param name="CONTROLS" value="Imagewindow" />
<param name="ShowStatusBar" value="false" />
<param name="src" value="http://IP.PORT/" />
<param name="url" value="http://IP:PORT/" />

<param name="autostart" value="true" />
<param name="autoplay" value="true" />
<param name="Controls" value="playbutton" />

<param name="uimode" value="mini" />
<embed src="http://www.DOMAIN.EXTENSION/windowsmediafile.asx" width="145" height="40" autostart="True" controls="playbutton" showstatusbar="false" url="http://www.DOMAIN.EXTENSION/windowsmediafile.asx" autoplay="true" uimode="mini"> </embed></object>

Jxhn
24-11-2008, 05:03 PM
It would just go under that.

<a href="#" onClick="popup('radio.html', '300', '150', 'radio')">Radio popup</a>

Change 300 and 150 to the width and height you want.

TuckJump
24-11-2008, 05:20 PM
Ohhh okay thank you :) +Rep

Want to hide these adverts? Register an account for free!