Hi Shane,

you can do this

$('#myelement a').bind(
    'click',
    function () {
       var linkHref = this.href;
       $(this.parentNode).Puff(
               500,
                function(){
                   window.location.href = linkHref;
                }
        );
       return false;
    }
);


Shane Graber - jQuery wrote:
> I am attempting to use:
>
> $("#myelement").click(function() {
>     $("#myelement img").Puff(500);
> });
>
> My markup is as such:
>
> <div id="myelement">
>     <a href="mysite.com">
>         <img src="mysite.jpg" />
>     </a>
> </div>
>
> I need the Puff() effect to take place when the person clicks on the
> link before the browser heads over to mysite.com.  What is the proper
> syntax in order to achieve this effect?  The above javascript isn't
> achieving this.
>
> Thanks,
>
> Shane
>
>   


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to