enne87
03-05-2012, 12:47 PM
Hi guys,
I'm currently developing a simple website with a menu bar. Now this bar consists of several tabs, and I want to enlarge the tabs as soon as the user puts the mouse cursor over it.
To illustrate this, here is the menu bar in normal mode:
http://advancedata.ad.funpic.de/normal.jpg
And when the user puts the cursor over the tab "Aktuelles", it should look like this:
http://advancedata.ad.funpic.de/enlarged.jpg
My idea was to use the jQuery-function .animate(), but the problem is that I use one background image for each tab and it is not possible to resize background images. I also tried to the <img> tag and change the height-attribute in the animate() function, but this doesn't work either.
Well I have no idea left how I could solve this.
Any help is very welcome.
Thanks in advance,
enne
I'm currently developing a simple website with a menu bar. Now this bar consists of several tabs, and I want to enlarge the tabs as soon as the user puts the mouse cursor over it.
To illustrate this, here is the menu bar in normal mode:
http://advancedata.ad.funpic.de/normal.jpg
And when the user puts the cursor over the tab "Aktuelles", it should look like this:
http://advancedata.ad.funpic.de/enlarged.jpg
My idea was to use the jQuery-function .animate(), but the problem is that I use one background image for each tab and it is not possible to resize background images. I also tried to the <img> tag and change the height-attribute in the animate() function, but this doesn't work either.
Well I have no idea left how I could solve this.
Any help is very welcome.
Thanks in advance,
enne