TinyPortal
Development => Block Codes => Topic started by: Greenbug on September 03, 2006, 08:12:42 PM
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
Try changing the width of the popup from 450 to say 500 or something
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