Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-28-2012, 11:47 AM   PM User | #1
fmerg
New to the CF scene

 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
fmerg is an unknown quantity at this point
help needed with video script

the following script opens a video and plays the video
is there anyway to have it list all the flv files in a folder and make it play the video onclick
something like a web photo album but for video's all with the same extension
the file name that would need to be replaced is detecting.flv

Code:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!-- A minimal Flowplayer setup to get you started -->
  

	<!-- 
		include flowplayer JavaScript file that does  
		Flash embedding and provides the Flowplayer API.
	-->
	<script type="text/javascript" src="flowplayer-3.2.6.min.js"></script>
	
	<!-- some minimal styling, can be removed -->
	<link rel="stylesheet" type="text/css" href="style.css">
	
	<!-- page title -->
	<title>detecting finds</title>

</head><body>

	<div id="page">
		
		<p style="text-align: center">Franks website</p>
		
		<!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
		<a  
			 href="http://franks.com/movies/detecting.flv"
			 style="display:block;width:520px;height:330px"  
			 id="player"> 
		</a> 
	
		<!-- this will install flowplayer inside previous A- tag. -->
		<script>
			flowplayer("player", "http://franks.com/movies/flowplayer-3.2.7.swf");
		</script>
	
	</div>
	
	
</body></html>

Last edited by fmerg; 01-28-2012 at 11:49 AM..
fmerg is offline   Reply With Quote
Reply

Bookmarks

Tags
menu, onclick, onwrite, video

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:02 PM.


Advertisement
Log in to turn off these ads.