chechem84
09-28-2008, 09:07 AM
Hello,
I have a frame page set up. On the left side is a navigation page with names of videos. On the right side is a wmv player. I want the user to be able to click on the navigation page on the left, select the video they want to play, and have it go to the video player on the right frame. How do I do that? Here is my code:
Framepage code:
<?PHP
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>Members Video Page</title>
</head>
<frameset cols="156,*">
<frame name="frame1" src="navigation.php" noresize>
<frame name="frame2" src="video.php" noresize>
<noframes>
<body bgcolor="#ffffff">
<p></p>
</body>
</noframes>
</frameset>
</html>
Navigation page code:
<?PHP
//session_start();
//if(!session_is_registered(username)){
//header("location:login.php");
//}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>Nav Page</title>
</head>
<body bgcolor="#000000" text="white">
<p><b>2008 Renagade Network Videos</b></p>
<p><a href="http://www.renagadenetwork.com/videos/demoderby.wmv" target="frame2">Demo Derby</a></p>
<p>Waterville VS MT Blue Soccer</p>
<p>MT Blue Girls Soccer</p>
<p>In Car Oxford Speedway</p>
<p>Football Punt Return</p>
<p>Lawrence VS Poland Hockey</p>
<p>Waterville VS Brewer Girls Soccer</p>
<p>Waterville VS Messalonskee Football</p>
<p>Unity Race</p>
<p>Youth Hockey</p>
<p>Slide Show</p>
<p>Renagade Video</p>
<p>Renagade Video</p>
</body>
</html>
Player page:
<?PHP
//session_start();
//if(!session_is_registered(username)){
//header("location:login.php");
//}
?>
<script language="JavaScript">
var message = "Sorry, that function is disabled.\n\n";
message += "This page is copyrighted, and ";
message += "all content is protected.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
<title>Video member page</title>
<body bgcolor="black" text="white">
<div align="center">
<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." height="492" width="510">
<param name="url" value="">
<param name="autostart" value="true">
<param name="uimode" value="full">
</object></div>
</body>
Its in PHP because its a member only page and I have it call a login.php to check to see if they are logged in. This part is only done in php, the rest in html.
Any help is appreciated,
Thanks
I have a frame page set up. On the left side is a navigation page with names of videos. On the right side is a wmv player. I want the user to be able to click on the navigation page on the left, select the video they want to play, and have it go to the video player on the right frame. How do I do that? Here is my code:
Framepage code:
<?PHP
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>Members Video Page</title>
</head>
<frameset cols="156,*">
<frame name="frame1" src="navigation.php" noresize>
<frame name="frame2" src="video.php" noresize>
<noframes>
<body bgcolor="#ffffff">
<p></p>
</body>
</noframes>
</frameset>
</html>
Navigation page code:
<?PHP
//session_start();
//if(!session_is_registered(username)){
//header("location:login.php");
//}
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive">
<title>Nav Page</title>
</head>
<body bgcolor="#000000" text="white">
<p><b>2008 Renagade Network Videos</b></p>
<p><a href="http://www.renagadenetwork.com/videos/demoderby.wmv" target="frame2">Demo Derby</a></p>
<p>Waterville VS MT Blue Soccer</p>
<p>MT Blue Girls Soccer</p>
<p>In Car Oxford Speedway</p>
<p>Football Punt Return</p>
<p>Lawrence VS Poland Hockey</p>
<p>Waterville VS Brewer Girls Soccer</p>
<p>Waterville VS Messalonskee Football</p>
<p>Unity Race</p>
<p>Youth Hockey</p>
<p>Slide Show</p>
<p>Renagade Video</p>
<p>Renagade Video</p>
</body>
</html>
Player page:
<?PHP
//session_start();
//if(!session_is_registered(username)){
//header("location:login.php");
//}
?>
<script language="JavaScript">
var message = "Sorry, that function is disabled.\n\n";
message += "This page is copyrighted, and ";
message += "all content is protected.";
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
</script>
<title>Video member page</title>
<body bgcolor="black" text="white">
<div align="center">
<object id="MediaPlayer" classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." height="492" width="510">
<param name="url" value="">
<param name="autostart" value="true">
<param name="uimode" value="full">
</object></div>
</body>
Its in PHP because its a member only page and I have it call a login.php to check to see if they are logged in. This part is only done in php, the rest in html.
Any help is appreciated,
Thanks