Hi Michael, Thank you very much for your reply. Please forgive my sloppy code work. I am a novice with Javascript and now jquery so there will be errors in my code. So again I thank you for your help, patience and understanding. --
The closing brace is missing from my code. I assume I need to add one. -- I tried $(this) == "click" to keep image2 in place after clicking. My goal is to have the side navigation show image2 if clicked and not if no click. And revert to image1if another image link on the same side navigation is clicked. see my test site www.solawebb.com/computer_guru_home.php Only the top two images are setup on the page for now. Hopefully I explained this properly? cheers, Marshall On Aug 3, 6:30 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > 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