View Single Post
Old 12-27-2009, 01:34 AM  
symtab
Confirmed User
 
Join Date: Nov 2009
Posts: 415
Hi,

Dont assign a image to the div yet, once someone clicks on the link (or div) add the image via jquery:
Code:
$(document).ready(function() {
$("#div_id").click(
$("#div_id").html('<img src="/path/to/image.jpg" alt="" />');
);
});
Good luck!
symtab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook