I have a code which works like an image gallery script, click a button/thumbnail a large image above fades in. I actually want it changed that so instead of clicking the thumbnail you just mouseover and the large image fades in.
Here is my code, I would really appreciate somebody having a look over it.
Javascript:
Code:
$(function()
{
$("#section_select a").click(function()
{
var imageSource = $(this).children("img").attr("src");
$("#image_holder").addClass("loading");
$("#image_holder h3").remove();
showImage(imageSource);
return false;
});
});
function showImage(src)
{
$("#image_holder img").fadeOut("normal").remove();
var largeImage = new Image();
$(largeImage).load(function()
{
$(this)[0].style.display = "none";
$("#image_holder").append(this).removeClass("loading");
$(this).fadeIn("slow");
});
$(largeImage).attr("src", src);
}
Bookmarks