- #1
Mike Phan
- 67
- 0
Hi,
Here is code that can play a single FLV file:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0"
type="application/x-shockwave-flash" width="100%" height="570" align=middle />
<param name="movie" value="player.swf?file=videofile&autostart=true" />
</object>
I want to make a list:
video.flv
video1.flv
video2.flv
Anytime I click on each item of the list, for example video1, the "file = videofile" will become "file=video1.flv". In other words, I want to make the "filename" as variable.
I think it is possible for javascript, but I don't know how to write the code.
ANYONE CAN HELP? PLEASE!
Thanks in advance.
Mike
Here is code that can play a single FLV file:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0"
type="application/x-shockwave-flash" width="100%" height="570" align=middle />
<param name="movie" value="player.swf?file=videofile&autostart=true" />
</object>
I want to make a list:
video.flv
video1.flv
video2.flv
Anytime I click on each item of the list, for example video1, the "file = videofile" will become "file=video1.flv". In other words, I want to make the "filename" as variable.
I think it is possible for javascript, but I don't know how to write the code.
ANYONE CAN HELP? PLEASE!
Thanks in advance.
Mike