javascript - click image link and fade to new page based upon the url in the div -
i have image link inside div url next page. , want that; when images clicked, fades new page specified there link. if help, awesome.
<div> <a href="page three.htm"> <img src="images/tbutton.gif" width="71" height="65" border="0" alt="" id="tbutton" /> </a> </div>
think should work:
$(img).click(function() { window.location = $(this).closest('a').attr('href'); });
Comments
Post a Comment