PDA

View Full Version : Java Lightbox and Collapsable Menu


cocoonfx
09-27-2009, 04:10 PM
Hello Chaps


I have a java script for a lightbox which works perfectly and i also have a java script to collapse and open a menu which works really well. However I can not get the two to work together i.e i have an image within the menu which when click the lightbox should work. HELP I am still learning java...

http://www.tcmedia.co.uk/publication.html

Here is the script

<link href="special.css" rel="stylesheet" type="text/css" />
<link href="nav.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="lightbox.css" type="text/css" media="screen" />

<style type="text/css">


<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="js/lightbox.js" type="text/javascript">
</script>
<script type="text/javascript" src="jquery-1.3.2.js"></script>

<script type="text/javascript">
$(document).ready(function(){

$(".toggle_container").hide();

$("h2.trigger").toggle(function(){
$(this).addClass("active");
}, function () {
$(this).removeClass("active");
});

$("h2.trigger").click(function(){
$(this).next(".toggle_container").slideToggle("slow,");
});

});

</script>

cocoonfx
09-29-2009, 04:54 PM
Can anyone assist???

domedia
09-29-2009, 08:28 PM
Cocoon, you're using three (3) JavaScript frameworks. It almost defeats the point IMHO. Choose one :) There's no surprise you have conflicts I think..

Also remember that JavaScript and Java are two very different programming languages, it can cause confusion for some if you use the one for the other 8)