[thelist] formatting the input tag

Tom Dell'Aringa pixelmech at yahoo.com
Tue Jul 2 10:34:01 CDT 2002


Matthias,

You can use a function in the mouseover event to mimic it if you wish
like this:

function fakeHover() {
document.all.myInput.style.color = "red";
}

or getElementById or whatever you need.

Tom
--- Matthias Ritzkowski <Matt at grndwtr.com> wrote:
> Hi evolt people!
>
> I am trying to get a certain behavior for an input. This is
> actually the
> submit button of a form, which I want to make behave like a link
> (ok, so I
> cannot us a link here ...)
> Everything is great, until I try to change the color with a
> pseudoclass
> input:hover.
> Is this even possible??
>  Regards
> Matthias Ritzkowski
>
>
> this is the code i use in the css
>
> input{
> color:#003399;;
> background-color:#eef;;
> font-size:11px;
> text-decoration:none;
> font-weight:300;
> font-family:verdana, arial, helvetica, sans-serif;
> border-style:none;
> line-height:11px;
> cursor:hand;
> }
> input:hover{color:#ff0000;}
>
>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



More information about the thelist mailing list