popup help

ok. I am making a page on my site which will have the embedded windows media player. but I dont want to restrict people from having to have the whole site open to listen. so I want to have a link that will open a popup window with the player in that. dont know how though. I already have the html file specially made for the popup (it is HERE (<!-- m --><a class="postlink" href="http://pokeradio.web1000.com/listenpop.html">http://pokeradio.web1000.com/listenpop.html</a><!-- m -->))<br />
<br />
any help would be appreciated.<!--content-->Try something like this...<br />
<br />
<script language="javascript" type="text/javascript"><br />
function openwin(url)<br />
{<br />
window.open(url,"Window Name","width=400,heigh=300")<br />
}<br />
</script><br />
</head><br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"yourpage.htm" onclick="openwin(this.href); return false;">Open Music Page</a><!--content-->hmm. didnt seem to work. <br />
<br />
what was the link that went into the href=http://www.webdeveloper.com/forum/archive/index.php/"" spot? one that would only allow the onclick="" value to run? I forget what is was.<!--content-->Sorry. Try this instead:<br />
<br />
<script language="javascript" type="text/javascript"><br />
function openwin(url)<br />
{<br />
window.open(url, "winname", "width=400,height=300");<br />
}<br />
</script><br />
</head><br />
<body><br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"yourpage.htm" onclick="openwin(this.href); return false;">Open Music Page</a><br />
<br />
The link it will open is yourpage.htm. If users have javascript disabled, the link will simply open in the current window.<!--content-->
 
Back
Top