javascript - Change content on hover/click -
i have client wants specific function on website , i'm bit stumped how it.
basically, if check out existing site can see 4 round buttons.
what want when hovers (or clicks if using ipad) on 1 of buttons line of text below, says "professional sign language interpreting, consultancy, , logistics", changes else.
so example, if hover on "phone us" button, "professional sign language interpreting, consultancy, , logistics" change "call : +44(0) 999 999 9999"
what best way go that?
edit
i'm using code found on thread;
$('.button').bind('hover', function() { // suppose <a id='about' class='menu'> tag $('p.tagline').hide(); // hide texts $('#tag-' + this.id).show(); // show 1 id=text-about }); which works fine.
is there way can make work on click or hover , possibly fade in/out instead of switching?
any appreciated.
there 2 jquery events you: mouseenter , mouseleave
you can easly catch them , add/delete text want to. example:
$('element').mouseenter(function() { //do }).mouseleave(function() { //do });;
Comments
Post a Comment