Search
Left Quote    Maybe this world is another planet's Hell.
- Aldous Huxley    
Right Quote
 
[login] | [Register]
Forum Index » Visual Basic » Viewing Topic and Replies
Post Reply


        Viewing Topic: Mouseover through css?
  This user is offline  Greenwalt1
  Subject: "Mouseover through css?" Posted: @ 9:21 am on Dec 10 2009   
Member #:
Since: 01/01/70
Posts:

i want to trigger the mouseover event within css script.

I know you can do it the following way:
<div onMouseover=&qu ot;function(... )" class="hi& quot;>conten t</div>
but i want to do this through css for every div tag in the 'hi' class. so, in case i have to change the code that triggers after the mouseover event, i don't have to go through all my pages and change it for each individual div tag in 'hi' class


    Viewed: 6,458 Times | Reply to This | To top
  This user is offline  misterhaan
  Subject: "re: Mouseover through css?" Posted: @ 5:42 pm on Dec 10 2009    

Member #: 5
Rank: User - (213)
Since: 02/11/05
Posts: 148
From: chair

css doesn



Edited at 05:53:17 pm on 12/10/09


please note that the above post is likely made up in its entirety.

    Viewed: 6,448 Times | Reply to This | To top
  This user is offline  David1159
  Subject: "re: Mouseover through css?" Posted: @ 7:24 am on Dec 25 2009    

Member #: 526
Rank: User - (81)
Since: 12/27/07
Posts: 81
From: usa

A mouseover event in CSS is done with hover.

div.hi
{
whatever: whatever;
}

is probably your div hi class. make another css class called...

div.hi:hover
{
different_whate ver: different_whate ver;
}

when you hover over the div that is referenced to the css class hi, it will do the hover option. when you are not hovering it will do that normal option.



Edited at 07:29:55 am on 12/25/09


Coding is simply CST... Combining $hit Together. We make different $hit to run in unison correctly.

    Viewed: 6,384 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2017; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank