HTML Programming
 
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 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 June 5th, 1999, 04:30 PM
flamingsouls
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi

For the life of me, I can not find a book that tells me how to change the color of a link when someone moves their mouse over it. Could you guys help?

thx
Josh

Reply With Quote
  #2  
Old June 5th, 1999, 05:13 PM
scollo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Designing with javascript: Creating Dynamic Web Pages, by Nick Heinle. ISBN 1565923006
pages 140-141

<HTML>
<HEAD>
<STYLE>
.on {color:blue}

.off{color:black}
</STYLE>
<BODY>
<A HREF="customers.html"
CLASS="off"
onMouseOver="this.className='on';"
onMouseOut="this.className='off';"
>
Customers
</A></BODY>
</HTML>

I've never used this myself. I just copied it right out of the book for you. (BTW: It's a good book to have.)

Reply With Quote
  #3  
Old June 5th, 1999, 07:59 PM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
However! It's not cross-browser compatible, it'll only work in Explorer, although it may be implemented in NN 4.6, just released. As a browser and a webmaster, there's nothing I hate more than browser-biased sites...

adam

Reply With Quote
  #4  
Old June 6th, 1999, 07:32 PM
scollo
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Oh my God! You're right! I didn't even realise that this was IE-dependent. I feel dirty.

It's ironic, too, because I develop Netscape-only intranet applications. I've just never had to bother with mouseovers or dynamically-assigned CSS classes. I apologise to Earth and all of its inhabitants.

Reply With Quote
  #5  
Old June 6th, 1999, 09:03 PM
dahamsta
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Well, Netscape and Microflot are still going in different directions in some cases, no matter what the W3C have to say. If you want mouseover effects, you're probably better of sticking with images for the mo.

adam

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > How do I onMouseOver?

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