SunQuest
           HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsWeb DesignHTML Programming

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 July 25th, 2000, 08:48 AM
blr blr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Vejle, Denmark
Posts: 7 blr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
whats the easiest way to make 2 different "hover" styles on the same page?

Reply With Quote
  #2  
Old July 25th, 2000, 10:50 PM
krr krr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: san jose
Posts: 11 krr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Using CSS1 it will work for IE 4-5 and netscape 4.7 earlier versions of netscape won't support it.

I used <td class="link name"> and then put the links all in the same <td> cell.
I have 3 tiered navigation setup and three styles of links.
<style>

TD.subNav2 A:hover {
font-weight : 300;
font-size : 0.9em;
line-height : 1em;
color : #ffcc99;
text-decoration : none;
}
TD.subNav A:hover {
font-weight : 500;
font-size : 0.9em;
line-height : 1em;
color : #ffcc99;
text-decoration : none;
}
</style>

Reply With Quote
  #3  
Old July 28th, 2000, 03:18 AM
BillyPeterson BillyPeterson is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 14 BillyPeterson User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well, this script on the web will generate the hover code for you: http://www.dynamicdrive.com/dynamicindex5/linkover.htm If you want to add muliple of such effects to one page, put each definition in a CSS class of its own, and assign that class to the elements you want affected.

Here's a quick example:

<style>
.effect1{
//hover code here
}
.effect2{
//hover code here
}
</style>

<div class="effect1">bla bla bla>/div>

<div class="effect2">bla bla bla>/div>

Reply With Quote
  #4  
Old August 2nd, 2000, 02:54 PM
TSRealm TSRealm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2000
Location: Randolph, NJ
Posts: 36 TSRealm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via ICQ to TSRealm
Or you can do this if they are links.
Example:

a.header { font-family: arial ;
font-size: 8pt ;
text-decoration: none ;
font-weight: normal ;
color: #808080 }
a.header:hover { font-family: arial ;
font-size: 8pt ;
text-decoration: underline ;
font-weight: normal ;
color: #808080 }




------------------
================
-Khill, www.tsrealm.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > different hover


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway