media player using iframe - howto4newbie

B

Beemer Biker

I have a drop down box that shows jpg's in an inline frame. When I added a
couple of wmv they do not show up in the iframe. I googled around saw where
one author used an htm page that identified the player. The name of the htm
page was then "executed' (probably not the right term)

The page would have something like this (copied from the authors site
!THANKS!
http://www.edgesz28.com/edgesZ28/embedmediaplayer.htm )

=== one page for each item in table had like the following ====

<object id="MediaPlayer"
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">
<param name="FileName"
value="http://www.edgesz28.com/edgesz28/jokes/blinddate.wmv">
<param name="AnimationatStart" value="true">
<param name="TransparentatStart" value="true">
<param name="AutoStart" value="true">
<param name="ShowControls" value="TRUE">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
src="http://www.edgesz28.com/edgesz28/jokes/blinddate.wmv"
name="MediaPlayer" showcontrols="TRUE" width="320" height="280"></embed>
</object>

=======end of code segment from ed's page===

Can this be done using html or jscript where I can create "object id" on the
fly, or just be able to change the name of the "src" above? I want to use
my existing dropdown (or maybe add a one just for movies) and launch the
movies into my inline frame. Currently I got the following code and would
like to not change it much
============start of existing code segment that works for images, not
movies===========

<script language="JavaScript">
function ShowWacky()
{
var sD = document.getElementById('id_selectwacky');
FP_jumpMenu(sD,'iframe1',false)
}

function FP_jumpMenu(el,frm,sel) {//v1.0
var href=el.options[el.selectedIndex].value; if(sel) el.selectedIndex=0;
if('_new'==frm) open(href); else eval(frm+".location='"+href+"'");
}
</script>


BIG SNIP

<select size="5" onchange="FP_jumpMenu(this,'iframe1',false)"
id="id_selectwacky" name="SelectWacky" style="color: #0000FF;
position:relative; left:10">
<option value="http://stateson.net/pub/bike_for_sale.jpg" selected>Not your
typical bike for sale adv</option>
<option value="http://stateson.net/pub/Honda2HD.jpg">Honda Tours Harley
factory</option>

BIG SNIP
<option value="http://stateson.net/misc_images/Learn2ride.wmv">Learn To
Ride Movie</option>
<option value="http://stateson.net/pub/CrashOnCamera.wmv">Crash on cam -
who is at fault?</option>

</select>&nbsp;&nbsp;&nbsp; <input type="button" value="GO"
onclick="ShowWacky()" name="SelectDivision2" style="color:
#0000FF">&nbsp;</p>
<p align="left">

&nbsp;
<iframe name="iframe1" src="http://stateson.net/pub/bike_for_sale.jpg"
width="738" height="265">Your browser does not support inline frames or is
currently configured not to display inline frames.
</iframe>

================end of sample code segment that does images ok=============

...thanks.. (see below url for "Wacky Bike" code on my club page)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top