View Single Post
Old 03-31-2010, 05:40 AM  
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by SlamDesigns View Post
Bump back to the front page. Thanks!
a few ways to go about this.

heres an example (this is for pics)

http://www.cryer.co.uk/resources/jav...13_gallery.htm

would need to modify it for videos.

or jquery

Code:
<ul>
<li><a href="#video1" class="video">Video 1</a></li>
<li><a href="#video2" class="video">Video 2</a></li>
<li><a href="#video3" class="video">Video 3</a></li>
<li><a href="#video4" class="video">Video 4</a></li>
<li><a href="#video5" class="video">Video 5</a></li>
<li><a href="#video6" class="video">Video 6</a></li>
<li><a href="#video7" class="video">Video 7</a></li>
</ul>

<div id="videodiv">Video code</div>
Code:
$('.video').each(function() {
  $(this).click(function(event) {
      event.preventDefault();
      var video = $(this).attr('href');
      $('#videodiv').html('<h1>Hello</h1>');
  });
});
of course you would replace <h1>hello</h1> with the actual embed function.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote