Quantcast

JQuery Javascript call

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JQuery Javascript call

aaronben
I am trying to get the JQuery to parse links with a class and make them use shadowbox or any link in a div that links to a file use shadow box.

this is the html i have

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <title>Untitled Document</title>
  <link rel="stylesheet" type="text/css" href="src/css/shadowbox.css">
  <script type="text/javascript" src="src/js/lib/jquery-1.2.3.min.js"></script>
  <script type="text/javascript" src="src/js/adapter/shadowbox-jquery.js"></script>
  <script type="text/javascript" src="src/js/shadowbox.js"></script>
  <script type="text/javascript">
 jQuery(function($){
  var boxOpts = Shadowbox.getOptions(); //get shadowbox options
 
  $.extend(boxOpts, {
  skipSetup:true,
  handleUnsupported:'remove',
  handleLgImages:'drag',
  counterType:'skip'
  }); //add in options
 
  Shadowbox.init(boxOpts); //initialise
 
  Shadowbox.setup($('a.JQueryTest'));
  }
  });
</script>
  </head>
  <body>
<a class="JQueryTest" title="Alien" href="gallery/alien.flv">Flash Video</a>
</body>
  </html>


Can someone please help! i am stuck and con not figure it out.

Thanks in advance for all the help!
Loading...