thumbnail to large image jquery issue

lloydfuzzy

New Member
In my view i am using this to show my images as thumbnails on each record\[code\]<img src="http://stackoverflow.com/questions/15727330/<?php echo Router::url("**../files/images/small/**".$ad["Advertisement"]["advertisement_image"],false)?>\[/code\]with thumbnails saving in small directory folders, same large images are stored under big directory folder.Can you please tell me how can I get large images of same thumbnail as I am using jQuery tooltip for large preview of images, how can I implement this in what should i give in alt for my above code.\[code\]<img src="http://stackoverflow.com/questions/15727330/hills-thumb.jpg" alt="hills.jpg" rel="Hills Image" />\[/code\]JS:\[code\]$(document).ready(function() { $("#thumbnail img").hover(function(e) { $("#large").css("top", (e.pageY + 5) + "px") .css("left", e.pageX + 5) + "px") .html("<img src="http://stackoverflow.com/questions/15727330/+ $(this).attr("alt") + " alt='Large Image' /><br/>" + $(this).attr("rel")) .fadeIn("slow"); }, function() { $("#large").fadeOut("fast"); });});\[/code\]please help thanks
 
Back
Top