This seems like massive overkill to me. What's wrong with the hover function in the core API?
Glen On 9/6/07, Michael Stuhr <[EMAIL PROTECTED]> wrote: > > > howa schrieb: > > Something like what dreamweaver provide, are there such as plugin in > > jQuery? > > > > Thanks. > > > > > function onMouseOver () > { > var file = $j(this).attr("src"); > var filetype = file.substr(-4); > file = file.substr(0, file.length - 4); > $j(this).attr("src", file +'_OVER' + filetype); > } > function onMouseOut () > { > var file = $j(this).attr("src"); > var filetype = file.substr(-4); > file = file.substr(0, file.length - (4 + 5)); > $j(this).attr("src", file + filetype); > } > $j('img.hoverImage').mouseover(onMouseOver); > $j('img.hoverImage').mouseout(onMouseOut); > $j('img.hoverImage').mousedown(onMouseOut); > $j('img.hoverImage').focus(onMouseOver); > > > now you just have to have 2 images where a Hover-State is needed. just > name the Hover-State-Image imagename+'_OVER' ... > > no plugin needed. > > > but one quest: can't you use CSS ? is much faster than js + u can so > simply preload the images ... > > micha >