CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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 June 1st, 2004, 05:14 AM
rmca rmca is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 8 rmca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 sec
Reputation Power: 0
css-driven menus using whatever:hover

hello

im very excited about your whatever:hover script http://www.xs4all.nl/~peterned/csshover.html, but im wondering if there is a way to make the css valid (according to eric meyer in "more eric meyer on css" the behavior spec isnt valid css)

instead of feeding ie through the behavior spec in the css file (that doesnt compute in other browsers), how about adding a conditional comment in the html file?

im not sure what it would look like (as im no expert) but how about <!-- [if ie]> @import url("csshover.htc") <![endif] -->?
or maybe it needs to be some form of <!-- [if ie]> <script type="text/jscript" src="csshover.htc"></script> <![endif] -->?

thank you very much
rasmus
rasmus@samtaleterapi.com
www.samtaleterapi.com

Reply With Quote
  #2  
Old June 2nd, 2004, 04:53 PM
Michael2003 Michael2003 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Posts: 1,037 Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 20 m 3 sec
Reputation Power: 20
The underscore hack may be what you are looking for to make it valid and still work, since behaviour is a IE only thing.

Reply With Quote
  #3  
Old June 3rd, 2004, 03:31 AM
rmca rmca is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 8 rmca User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 sec
Reputation Power: 0
that sounds very interesting
how can the underscore replace the invalid line "behavior(url:csshover.htc)"?

thanks
rasmus

Reply With Quote
  #4  
Old June 3rd, 2004, 04:34 PM
Michael2003 Michael2003 is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Dec 2003
Posts: 1,037 Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level)Michael2003 User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 20 m 3 sec
Reputation Power: 20
Hmm, appears that the underscore hack doesn't help make things validate. Perhaps conditional comments would be more helpful. Use the if IE ones and write out a new <style> perhaps? Failing that you could probably write a separate JS script to add onmouseover and onmouseout events to the relevent elements. A list apart did something like that to make CSS driven menus.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css-driven menus using whatever: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 1 hosted by Hostway
Stay green...Green IT