Calling a different video with every click on ordered list
Hi! Great to be back.
I'll stick to one issue today. I'm using Neolao flv-player (
http://flv-
player.net) with swfobject, though I've tried it with Malsup media plugin. That's another subject kinda.
CURRENT OBJECTIVE: to be able to click on any of the 'li''s in my menu and have a different video start playing or at least load, AND have the previous video stop and disappear.
An example section of my menu is:
<li>
<a href="#landing" class="first">Third</a>
<ul class="first">
<li><a href="#first-a">first-a</a></li>
<li><a href="#first-b">first-b</a></li>
<li><a href="#first-c">first-c</a></li>
</ul>
</li>
So.. when they click the first <a href> they'd get the first video playing in the videoplayer div. Then when clicking on any of the lower li's they should get a different video loading and the previous video should STOP.
That's the basic need.
I guess it's important to know that the li's in the menu are already triggering scrollto stuff. And, the entire site, currently running localhost, is a SINGLE html file and a single css file.
So...
- I guess I need to add an onclick to the li's?
- would this conflict with what they already trigger with the scrollto stuff?
- Is swfobject cool to use for this or should I keep trying with malsup media plugin? the media plugin does play videos when using JWplayer.
-I've thought that the FlashVar that calls the actual video flv file in the script area for either the media plugin OR swfobject would need to be moved to the html portion of the page as I need multiple videos and not just one. Thoughts on this??
Yes, I'm a bit in the dark.. though I'll stay with it if it's possible for sure.
Thank you for thinking.... really really big thanks! :--)