Displaying 1 result from an estimated 1 matches for "active_video".
2008 Jun 30
1
javascript onclick for thumbnails
...function where only 1 thumbnail should be active
and others inactive when clicked on the particular thumbnail.
code:
1. view:
2. <script type="javascript">
3. function PlayVideo_options(videoFile, id) {
4. document.getElementById(id).className = ''video_option
active_video'';
5. }
6. </script>
7.
8. <div id="video_options">
9. <% for eligible_exercise in excercises %>
10. <% exercise = eligible_exercise.exercise %>
11. <div onclick="PlayVideo_options(''<%= exercis...