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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -