surreal5335
03-06-2009, 07:37 PM
I am using a jcarousel lite plugin and trying to get it to show a certain selection of photos upon clicking a picture in another carousel.
I have been able to get the sub carousels to show up, but just not in a carousel format, just made random static lists.
The code I have below firefox says the showMe(n) is not defined, well actually it says that about the html code onclick="showMe(1)" which is placed in the img tag of the main carousel.
var currentUl = 1;
function showMe(n) {
$("ul#gallery").click(function(){
$("#ex_"+currentUl).hide();
$("#ex_"+n).show(function() {
$("div#picture").show();
$("span#picture").show();
});
currentUl = n;
});
}
I have this code loaded into the
$(document).ready(function(){
Which I understand is crucial to getting this kind of thing to work.
my link:
http://royalvillicus.com/photo_site/photo.html
I appreciate any assistance in the matter
I have been able to get the sub carousels to show up, but just not in a carousel format, just made random static lists.
The code I have below firefox says the showMe(n) is not defined, well actually it says that about the html code onclick="showMe(1)" which is placed in the img tag of the main carousel.
var currentUl = 1;
function showMe(n) {
$("ul#gallery").click(function(){
$("#ex_"+currentUl).hide();
$("#ex_"+n).show(function() {
$("div#picture").show();
$("span#picture").show();
});
currentUl = n;
});
}
I have this code loaded into the
$(document).ready(function(){
Which I understand is crucial to getting this kind of thing to work.
my link:
http://royalvillicus.com/photo_site/photo.html
I appreciate any assistance in the matter