navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

onmouseover with CSS?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> onmouseover with CSS?
Page: [1]
 
kt

 

Posts: 195
Joined: 11/3/2004
Status: offline

 
onmouseover with CSS? - 7/26/2005 11:46:25   
Been hunting around on the forum but haven't found one definitive answer to this:

Part of my current CSS is as follows (I know this is far from great, but only ventured into the world of CCS a couple of weeks ago...)

td.c25 {background-color: #000000; text-align:left; color:#FFFFFF; font-family:Arial,Helvetica,sans-serif,"MS sans serif"; font-size: 11px; line-height:95%}

a.c4 {color: #FFFFFF;}
a:hover.c4{text-decoration:underline; color: #FFFFFF;}


and then a cell on my page is like this:

<td class="c25" onmouseover="this.style.backgroundColor='#2C2C2C';" onmouseout="this.style.backgroundColor='#000000';"><a class="c4" href="login.asp" title="Sign in to your account"><b>sign in</b></a></td>

Is there a way to incorporate the "onmoueover" and "onmouseout" in to the CSS, so that the background colour, not just the link, changes colour?

thanks, kt
Tailslide

 

Posts: 5915
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: offline

 
RE: onmouseover with CSS? - 7/26/2005 12:12:30   
Here's a tutorial: http://www.cyberstar-designs.com/resorces/css-lessons/css-lesson3-part2.htm

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to kt)
kt

 

Posts: 195
Joined: 11/3/2004
Status: offline

 
RE: onmouseover with CSS? - 7/26/2005 12:42:56   
thanks tailslide - should be able to make it work with that!

kt

(in reply to Tailslide)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> onmouseover with CSS?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts