Forum Moderators: open

Message Too Old, No Replies

Playing Various Media files using only one page.

         

JoJoJohnson

1:38 pm on Jun 7, 2004 (gmt 0)

10+ Year Member



Hi everyone.

Im currently working on a page

[example.com...]

What I would like to do, is whenever a user clicks on a button (1-9) it loads an individual video in the television space

Lets say for now that the file Locations are

[example.com...]
[example.com...]
[example.com...]

and so on.

does anyone have an idea of how i can achieve this?
If its any use, it is possible for me to create an SQL table, if that makes it easier.

Also, if it is of anyuse. here is the source code so far.

<html>
<head>
<title>Television</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#E8E8E8">
<div id="logo" style="left: 20px; top: 20px; position: absolute">
<img src="images/tv.gif">
</div>

<div id="top" style="left: 119px; top: 198px; position: absolute"><img src="/images/static.gif"></div>

<div id="logo" style="left: 550px; top: 20px; position: absolute">
<img src="images/remote.gif" border="0" usemap="#remote_map">
<map name="remote_map">
<area shape="rect" coords="92,64,122,77" href="javascript:self.close();" alt="Channel 1 - No Video">
<area shape=circle coords="44,138,10" href="http://www.example.com/tv_launch.php" alt="Channel 1 - No Video">
<area shape=circle coords="78,138,10" href="http://www.example.com/tv_launch.php" alt="Channel 2 - No Video" name="channel_2" value="0">
<area shape=circle coords="112,138,10" href="http://www.example.com/tv_launch.php"alt="Channel 3 - No Video" name="channel_3" value="0">
<area shape=circle coords="45,165,10" href="http://www.example.com/tv_launch.php" alt="Channel 4 - No Video" name="channel_4" value="0">
<area shape=circle coords="78,165,10" href="http://www.example.com/tv_launch.php" alt="Channel 5 - No Video" name="channel_5" value="0">
<area shape=circle coords="112,165,10" href="http://www.example.com/tv_launch.php" alt="Channel 6 - No Video" name="channel_6" value="0">
<area shape=circle coords="46,192,10" href="http://www.example.com/tv_launch.php" alt="Channel 7 - No Video" name="channel_7" value="0">
<area shape=circle coords="78,192,10" href="http://www.example.com/tv_launch.php" alt="Channel 8 - No Video" name="channel_8" value="0">
<area shape=circle coords="111,192,10" href="http://www.example.com/tv_launch.php" alt="Channel 9 - No Video" name="channel_9" value="0">
<area shape=circle coords="78,219,10" href="http://www.example.com/tv_launch.php" alt="Channel 0 - No Video" name="channel_0" value="0">
<area shape=circle coords="107,251,14" href="http://www.example.com/tv_launch.php" alt="Channel 1 - No Video" name="channel_1" value="0">
<area shape=circle coords="107,283,14" href="http://www.example.com/tv_launch.php" alt="Channel 9 - No Video" name="channel_1" value="0">
</map>
</div>

<div id="top" style="left: 119px; top: 198px; position: absolute">
<OBJECT
ID="WinMedia"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE= "http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width="323" height="244" standby="Loading Microsoft
Windows Media Player components..." type="application
/x-oleobject">
<PARAM NAME="FileName" VALUE="http://www.example.com/video/Nas_-_Half.wvx">
<PARAM NAME="AutoStart" Value="false">
<PARAM NAME="ShowControls" Value="false">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<param name="ShowStatusBar" value="True">
</OBJECT>

</div>

</body>
</html>

[edited by: jatar_k at 4:30 pm (utc) on June 7, 2004]
[edit reason] removed many specifics [/edit]

httpwebwitch

7:40 pm on Jun 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Put your TV into an <iframe>.

When the parent page gets a click on one of your buttons, load a new page into the TV.

WhosAWhata

2:15 am on Jun 8, 2004 (gmt 0)

10+ Year Member



this is much more of a JavaScript thing