| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
css is for divs
Join Date: Feb 2003
Location: Norwich
Posts: 4,512
|
rollover issues
I'm having some issues with rollover buttons and javascript rollovers: Rollover buttons: I'm using css background image replacement for the rollover buttons at the bottom left of the page. I've (hopefully) preloaded the rollover Gifs when the page loads, but they seem to take an age to appear on rollover, any ideas? Javascript rollovers: There is an area to the right of the buttons that displays text depending on what button you rollover. This works fine on IE but doesn't do squat in Mozilla, something wrong with my javascript me thinks, again, any ideas? Here's the url TIA |
|
|
|
|
|
#4 (permalink) |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,624
|
Put all the states in one image - no javascript and no preloading. All the cool kids do it. There are loads of tutorials, including: http://www.simplebits.com/archives/2...rollovers.html |
|
|
|
#6 (permalink) | |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,237
|
Quote:
Forget javascript altogether. You can do it using pure css. I'm at uni and can't find any good links atm. These might start you off... http://www.meyerweb.com/eric/css/edge/popups/demo.html http://www.meyerweb.com/eric/css/edge/popups/demo2.html If you can wait til tomorrow I put something together for you. Not wanting to sound like bill ( Code:
They definitely aren't paragraphs. It should be a list... http://css.maxdesign.com.au/listamatic/index.htm That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
|
#8 (permalink) |
|
css is for divs
Join Date: Feb 2003
Location: Norwich
Posts: 4,512
|
Ok, I can get images changing elsewhere when buttons are rolled over, but once I start putting the buttons inline it all gets fooked,and if I start using relative or absolute positioning for the buttons then the changing images start moving seeing as they're in the <a> tag. It's all a big mess. Anyone know of any examples of what I'm trying to achieve (buttons that rollover and a seperate area that changes on hover states of the buttons). I can find button lists by the tonne, and the links from smallbeer show the images changing on button rollover, but I can't for the life of me find horizontal buttons that can do the same. |
|
|
|
#9 (permalink) |
|
css is for divs
Join Date: Feb 2003
Location: Norwich
Posts: 4,512
|
test file here All ok until I start to try and make the buttons go across horizontally. |
|
![]() |