Response title
This is preview!
<a href="#" onclick="showPics('new_car', 'h')"><img src="images/new_car.jpg" width="150" height="224" alt="My new car" title="My new car" border="0"/></a>
function showPics(target, position)
{
$('#foto_frame').show();
if(position == 'v')
{
$('#foto_frame').html("<img src='images/full/"+target+".jpg' width='286' heigth='428'>");
}
if(position == 'h')
{
$('#foto_frame').html("<img src='images/full/"+target+".jpg' width='640' heigth='428'>");
}
}
<a href="#" id="new_car" width="150" height="224" alt="My new car" title="My new car" border="0"/></a>
$('document').ready(function()
{
$("#new_car").click(function(event)
{
showPics('new_car', 'h');
});
});
© 2013 jQuery Foundation
Sponsored by and others.