CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 16th, 2013, 06:19 AM
jeffshearer jeffshearer is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2009
Posts: 8 jeffshearer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m
Reputation Power: 0
How to hover on 1 div to change 3 divs

I have a page that includes three divs. The left div is SLA1, the second SLA2. The third div is an enrollment dialog. A user selects the SLA using a radio input.

I have SLA1 styled with a background image that is at this time static. I have SLA2 styled with an image that appears on hover.

What I'd like to do is have SLA1 styled with the background image until SLA2 has been hovered, then I'd like SLA1 to be absent the image. I'd also like to have the enrollment dialog change so that when the user hovers over SLA2, a slightly different dialog appears. Furthermore, once the user has selected the SLA, I'd like the associated dialog box to stay displayed so the user can enter data.

I'd like to use as little javascript as possible.

Thanks for the help.

Reply With Quote
  #2  
Old February 19th, 2013, 08:39 AM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
not knowing the actual markup, your best bet is to do this with javascript. Otherwise you need to make the hover element the parent of the others.
(ie)
Code:
<div id="hoverelement">
    <div>child element</div>
    <div>child element</div>
    <div>child element</div>
</div>

Code:
#hoverelement:hover div{property:value;}/*targets the child div */
__________________
PHP Tutorial

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > How to hover on 1 div to change 3 divs

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap