Frank, is the missing close brace a typo in the post, or is it missing in
your code too?

(Thanks to Komodo [1] for marking the syntax error with a squiggly red
underline.)

Also, what is $(this) == "click" supposed to do? That creates a jQuery
object and compares it with a string, which will always compare false.

-Mike

[1] http://www.activestate.com/Products/komodo_edit/

> From: Frank
> 
> Can jquery handle mouseover, mouseout and onclick in one function.  I
> need a mouseover to change the image.  I need to keep the image if the
> image is clicked, and not, if the image is not clicked.  I need to
> clear the function if another image is clicked.
> 
> I have tried this code structure but no success.  Any help would be
> appreicated.
> 
>       $(function() {
>               
> $("#fast").click(function(){linkOver('fast');view("hid1");
>               
> }).mouseover(function(){linkOver('fast')}).mouseout(function(){
>                       if($(this)=="click"){
>                         linkOver('fast');
>                       }else{
>                         linkOut('fast');
>       });
> });
> 
> Frank
> 

Reply via email to