Help - Search - Members - Calendar
Full Version: mouse over image change using javascript
HTMLHelp Forums > Programming > Client-side Scripting
blubird
Hello all!

I know the very basics of html (very!). I just spent the last 4 hours (yeah I am definitely a beginner here!) trying to set up my menu with mouse over image changes on my ebay store. I finally got it working perfectly (and was super proud of myself!) only to get an error when I went to publish it. Basically saying I'm not allowed to use javascript. (Your listing cannot contain javascript (".cookie", "cookie(", "replace(", IFRAME, META, or includes), cookies or base href.)

So... I did a bit of research after screaming for awhile and it said you can accomplish mouse overs using something called CSS? Does anyone have any suggestions? I know there are other stores on ebay with mouse overs so they must be using something besides javascript? OR is there another option - see below.

Thank you!!

-Maegan

P.S. I also read the ebay "rules" about javascript and for what I am using it for, it doesn't seem like I am violating anything. Is there a way to disguise the javascript so ebay doesn't recognize it as javascript? (is this a crazy question??)
pandy
QUOTE
something called CSS?

This is CSS. biggrin.gif

QUOTE
Is there a way to disguise the javascript so ebay doesn't recognize it as javascript? (is this a crazy question??)


Don't know about eBay, but there isn't any (reasonable) way to disguise JS period. And that's a good thing. wink.gif

A CSS rollover is very easy. The most common way to to it is to change an background image or color and/or text color when the mouse is over a link. The CSS property that corresponds to JS onmouseover is called :hover. But start at the beginning or you won't know what you are doing.


This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.