Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-03 17:09:52

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

IE Win: Hover on an element other than (a href...)

How do I get a hover to show up in IE for windows on a non <a> element.

I can get a change in background color on all kinds of stuff in FF/Safari but they’re not visible in IE Win.

Any thoughts?

Offline

#2 2006-02-03 18:10:11

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: IE Win: Hover on an element other than (a href...)

I’m probably wrong but I don’t believe IE let’s you add hover to non <a> elements, this is meant to be included in IE7 I think

Offline

#3 2006-02-03 23:58:51

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: IE Win: Hover on an element other than (a href...)

No, you cannot use :hover on elements other than &lt;a&gt; in IE6

Last edited by paularms (2006-02-03 23:59:16)

Offline

#4 2006-02-04 00:00:09

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: IE Win: Hover on an element other than (a href...)

Ok, that solves that… Thanks

Offline

#5 2006-02-04 00:27:54

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: IE Win: Hover on an element other than (a href...)

You can run javascript to attach a hover class to other elements onmouseover for IE. That way you can do:

<pre>
li:hover, li.hover { stuff:foo;
}
</pre>

I’d be happy to send you the code if you want. I’ve been using it for a couple years now with no problems.

Last edited by hakjoon (2006-02-04 00:28:49)


Shoving is the answer – pusher robot

Offline

#6 2006-02-04 18:54:40

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: IE Win: Hover on an element other than (a href...)

patrick,
I’d be up to seein that code if you felt like sending it my way? :)


Offline

#7 2006-02-04 19:44:58

placenamehere
Archived Plugin Author
Registered: 2004-11-21
Posts: 88
Website

Re: IE Win: Hover on an element other than (a href...)

yes, you can use javascript to sniff out the css declarations and then apply event handlers that would mimic the hover bahavior.

This is one of the ways that the IE7 script library makes up for missing features in win/ie

If you’d like (and don’t mind the overhead) just download that library and link it in the head of your page and you’re set.

(no relation to the IE7 beta release earlier this week.)


Site: placenamehere.com
Microformat Plugin: pnh_mf

Offline

#8 2006-02-04 19:49:53

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: IE Win: Hover on an element other than (a href...)

Yep IE7 has lofty goals… and mostly works for most people. Hasn’t been updated in a while…

I just get a little skittish about what it does in the background, and I’m never exactly sure what it’s fixing and what it’s not.

In the end I elected to just let certain things (transparent pngs, etc…) gracefully degrade on Windows IE. And use hacks for the box model.

Offline

#9 2006-02-05 19:17:19

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: IE Win: Hover on an element other than (a href...)

For hover:whatever in IE see <a href=“http://www.xs4all.nl/~peterned/csshover.html”>http://www.xs4all.nl/~peterned/csshover.html</a> and <a href=“http://www.alistapart.com/articles/dropdowns”>http://www.alistapart.com/articles/dropdowns</a>.

Last edited by Jeff_K (2006-02-05 19:17:34)

Offline

#10 2006-02-05 19:27:07

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: IE Win: Hover on an element other than (a href...)

Jeff,
If you get a chance, can you fix your links: They should conform to forum standards, a link can be made like this:

“put something in quotes” : http://whatever.com here, (minus the spaces before and after the colon)

But thanks for the heads up!

Matthew

Last edited by ma_smith (2006-02-05 19:28:27)


Offline

#11 2006-02-07 06:53:28

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

Re: IE Win: Hover on an element other than (a href...)

Where is there an error in my links? I don’t really use textile, just plain old html. Is that the problem? shrugs

Offline

Board footer

Powered by FluxBB