Thanks Liam Potter...
I want this becoz my case in Drupal case... :D
If u know about primary link drupal based on link...
So I override that link became image link based on title link...
If I use css... I must add some line css for that link when I add some
link in Drupal
On Oct 6, 5:10 pm, Li
$(function(){
$("img").hover(
function(){
src = $(this).attr("src");
var newSrc = src.replace(/.png/, "-hover.png");
$(this).attr("src",newSrc);
},
function(){
I mean not like that...
I mean what ever the src value I want to add hover when it hover
and when mouse out I want delete that hover..
and when hover that image I want became like this
and when mouse out that image became
On Sep 28, 9:38 pm, Liam Potter wrote:
> $(function(){
>
$(function(){
$("img").bind("mouseover",function(){
$(this).attr("src","/images/menu-my-account-hover.png");
});
});
but this is the worst way you can do rollovers. You should be doing this in
pure CSS, and the best way would be to use an image sprite.
Teddy Ho
4 matches
Mail list logo