TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 25, 2024, 08:45:49 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,173
  • Total Topics: 21,219
  • Online today: 319
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 149
  • Total: 150
  • @rjen

I need help with a embeding a popup music player.

Started by Greenbug, September 03, 2006, 08:12:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Greenbug

I have the following code and it works great but now i would like to embed the code to show the sroller on the right for more music.

I got most of it to work, but since I dont really know what I am doing I am not real sure I know what I did.

<center><bold> <a href="music.html" onclick="return popitup('music.html')"> ^Music^ </a></center></bold>


brings up the new window which is this

<html>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=150,width=420');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="650" height="168" >
        <param name="allowScriptAccess" value="sameDomain"/>
        <param name="movie" value="http://www.chicohotornot.com/folder/xspf_player.swf"/>
        <param name="quality" value="high"/>
        <param name="bgcolor" value="#E6E6E6"/>
    <embed src="http://www.chicohotornot.com/folder/xspf_player.swf?playlist_url=http://www.chicohotornot.com/folder/&autoload=true"
    quality="high" bgcolor="#E6E6E6" name="xspf_player" allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    align="center" height="168" width="650"> </embed>
</object>
</html>


Now I tried to embed it with this

<html>
<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
newwindow=window.open(url,'name','height=150,width=450');
if (window.focus) {newwindow.focus()}
return false;
}

// -->
</script>

<center> <embed width="450" height="150" autostart="0" controltype="1" showcontrols="1" src="http://www.chicohotornot.com/folder/xspf_player.swf"> </embed></center>
</html>


But I still dont have the scroll on the right side, but if I embed it without the popup it works, Whats wrong?

Any help would be great.

I have some examples here on this site www.chicohotornot.com

Thanks in advance.

GB


alan s

Try changing the width of the popup from 450 to say 500 or something

Greenbug

#2
You know I was thinking the same thing, I did and it worked. Actually I had to have the height taller and the width smaller for some weird reason but it works. I believe its the .swf file size or whatever determines how it looks.

This worked <center> <embed width="400" height="170" autostart="0" controltype="1" showcontrols="1" src="http://www.chicohotornot.com/folder/xspf_player.swf"> </embed></center>


Thanks for taking a look.

GB