1
carrie
Rollover Images
  • 2004/4/15 20:19

  • carrie

  • Just popping in

  • Posts: 58

  • Since: 2003/6/12


I was wondering if anyone has figured out a way to use rollover images in Xoops. On one of my pages, I would like for the visitors to be able to move their cursor over an image to see the inside of a house (http://www.simtycoongamer.net/modules/tinycontent/index.php?id=27). I've been successful using the DOM Image Rollover in Front Page, but I can't seem to get it to work with Xoops. I added the script code into the head of the theme.html file, but I couldn't get it to work. Any ideas? Thanks!

2
sunsnapper
Re: Rollover Images

I recommend what is called the "Pixy Fast Rollovers" which uses CSS and handles the image preload without JavaScript.

http://www.pixy.cz/blogg/clanky/cssnopreloadrollovers/update.html

This page above is the latest version, which includes a means to bypass an IE bug. To get step-by-step instructions, follow the link on the page to the original document.

It is super, super easy and works fantastic.

If you need help, let me know, and I will try.

Basically, you create a single image file with all the button states in it (hover, click, active, visited, etc.). Then you use offsets in CSS to have the proper button state pull up on demand.

In your case, think of the picture of the house as a giant button. Also, you might consider using hover instead of click if you don't really need the user to click.

3
carrie
Re: Rollover Images
  • 2004/4/16 17:02

  • carrie

  • Just popping in

  • Posts: 58

  • Since: 2003/6/12


I'll try it out. Thanks.

Login

Who's Online

133 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 133


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits