• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inline rollover

 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to be able to do some kind of inline rollover on an image background
below is the code block i need to do it in. any help would be great

ORIGINAL


[ October 31, 2008: Message edited by: John Schretz ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure why you would have lists with only one item in it. Pretty bad use of a list.

If I was going to do it, this is how I would:


If you want to go a JS route, you need to use onmouseover and onmouseout and set the this.style.backgroundImage or this.parentElement.style.backgroundImage

Eric
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i was able to get this working correctly with the following code. I just need to fix one thing. I need to set both mo Useovers background = to no repeat. How would i go by doing that?

TIA John





[ November 06, 2008: Message edited by: John Schretz ]
[ November 06, 2008: Message edited by: John Schretz ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Eric
 
John Schretz
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That did the trick, thanks a million
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic