Click to See Complete Forum and Search --> : mp3 & iframe issue


pabelius
11-22-2005, 07:52 PM
Hi.

I'm trying to get an mp3 to load into an iframe, which is in a <td> of a table that the link is in. It works in Safari, but apparently it doesn't in IE and others.

http://robsimonsen.com/film.html

If you click on an mp3, the idea was that it would load into the <td> right next to it and play right there. I successfully embedded the video here: http://robsimonsen.com/commercial.html, but that requires an html page for each video file. There has to be some way to accomplish something similar without creating a page for each mp3. Any ideas? I just want the mp3 to load on a space on the page it was linked from, instead of a pop-up or the whole page refreshing to the blank white with an mp3 bar.

Maybe it's just some extra code I need for explorer or something?

Thanks for any help.

Rob

deejaybet
11-23-2005, 12:23 PM
yeh i have the same problem but i solved it with the page per song only thing about that is theres too many pages if anyone can solve the problem then please help us... below is a script that can be used for selecting songs but i dnt want my songs to be in a option thing i want them to be listed on one page:

<OBJECT style="FILTER: xray" ID="Player" height="69" width="320" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" standby="Loading Microsoft® Windows® Media Player components..." type="application/x-oleobject" VIEWASTEXT>
<PARAM name="FileName" value="" />
<PARAM NAME="showControls" VALUE="-1">
<PARAM NAME="AnimationatStart" VALUE="0">
<PARAM NAME="TransparentatStart" VALUE="0">
<PARAM NAME="currentPosition" VALUE="0">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">
<embed name="wmplayer" TYPE="application/x-mplayer2" pluginspace="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&" FileName="" WIDTH="320" HEIGHT="43" showcontrols="1" showdisplay="0"></embed></OBJECT>

<form name="form" >
<script language="JavaScript">
<!--
var playstate = 1;
shuffle = 0; // set to 0 to always play first song in list
// set to 1 to randomly choose the first song to play
songs=new Array();
songs[0]="";
songs[1]="Song File 1";
songs[2]="Song File 2";
songs[3]="Song File 3";


if (shuffle == 1) {
var randsg = Math.floor(Math.random()*songs.length);
document.Player.FileName = songs[randsg];
document.Player.scr = songs[randsg];
document.forms['form'].playlist.options[randsg].selected = true;
}
function play(list) {
if (playstate == 2) {
document.Player.Play();
} else {
var snum = list.options[list.selectedIndex].value
document.Player.FileName = songs[snum];
document.Player.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

<select style="BACKGROUND:#000000; WIDTH: 300; COLOR: #FFFFFF; font-face: arial; height:15" name="playlist" size="1">
<option value="0">Select A Song...</option>
<option value="1">Song Option 1</option>
<option value="2">Song Option 2</option>
<option value="3">Song Option 3</option>
</select>
<br>

<input TYPE="button" NAME="PLAY" VALUE="Click To Start Song" OnClick="play(document.forms['form'].playlist);">