1. Copy the code to your page HTML HEADER
<script type="text/javascript" src="http://ajax.googleapis. com/ajax/libs/jquery/1.3/ jquery.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function()
{
$("#image").css("width", "800px");
$("#image").toggle(function()
{
$(this).animate({width: "100%"}, 1000);
$('p').text("Click To Zoom Out");
}, function(){
$(this).animate({width: "800px"}, 1000);
$('p').text("Click To Zoom In");
});
});
</script>
1. Put this id="image" in your photo retrieving SQL Query
Then try it.
No comments:
Post a Comment