Here is a hover function. Same concept though.

$("#solution_list ul li a").hover(function () {
                img_src = $(this).attr("id");
                $("#change_img").attr({src: "images/" + img_src + ".jpg"});
        }, function () {
                img_src = "";
        });

On Apr 9, 11:19 am, Dan Hudson <[EMAIL PROTECTED]>
wrote:
> I would like to replace a link image with another image based on the
> location of the page in the site structure.
>
> Take for example this link - - <a class="apply" href="/apply/" ><img
> src="/images/sitewide/top_nav_apply.gif" /></a>
>
> If some one clicks this link they would be onwww.example.com/apply/
> and I would want the image at the top to be replaced with <a
> class="apply" href="/apply/" ><img src="/images/sitewide/
> top_nav_on_apply.gif" /></a>.
>
> I can get the directory from window.location() but do not know if
> jQuery has a 'replace' function.
>
> Thanks,
>
> Dan

Reply via email to