Hmmm.. well that would kill 2 birds with one stone...

My boss was thinking on hover off it should go back to the original
image.. I guess...

I don't know... where I land on that UI issue....


On Sep 26, 9:29 am, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> Oh...
>
> I just thought of something. The hover method is actually supposed to have
> two functions built into it. One for over, and the other for out. I wonder
> if that's why you're getting the error. Should look like this:
>
> $(".swapImages").hover(function() {
>         var newSRC = $(this).attr("rel");
>         $(this).attr("src",newSRC);},function(){
>
>         // something else goes here
>
>
>
> });
> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
>
> Behalf Of Danjojo
> Sent: Wednesday, September 26, 2007 8:17 AM
> To: jQuery (English)
> Subject: [jQuery] g has no properties?
>
> I am doing a simple imageChange onLinkHover...
>
> I get the following error in Firebug everytime I hover over a link.
> But the image swaps work GREAT in all browsers.
> Except for the fact I see the error getting thrown in the browsers I am
> fine.
>
> g has no properties
> handleHover(Object type=mouseout target=a.showPic)jquery-svn.js (line
> 11)
> e(Object type=mouseout target=a.showPic)jquery-svn.js (line 11)
> e()jquery-svn.js (line 11) [Break on this error]
> eval(function(p,a,c,k,e,r){e=function(c)
> {return(c<a?'':e(parseInt(c/a)))+((c=c%a...
>
> The jQuery code to swap images is:
>
>         $(".showPic").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/cylinder.jpg");
>         });
>         $(".showPic2").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/mgp_swap.jpg");
>         });
>         $(".showPic3").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/mhc_swap.jpg");
>         });
>         $(".showPic4").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/shock_swap.jpg");
>         });
>         $(".showPic5").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/emy2_swap.jpg");
>         });
>         $(".showPic6").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/ncy2_swap.jpg");
>         });
>         $(".showPic7").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/crq_swap.jpg");
>         });
>         $(".showPic8").hover(function() {
>                 $("#imgLinkAct").attr("src", "images/clean_room_swap.jpg");
>         });
>
> });- Hide quoted text -
>
> - Show quoted text -

Reply via email to