HighDots Forums  

csshover.htc doesn't always work

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss csshover.htc doesn't always work in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Edward Hass
 
Posts: n/a

Default csshover.htc doesn't always work - 12-23-2007 , 02:24 PM






I am using csshover.htc to allow me to use the hover pseudo element in IE6.
The following excerpted code works fine in IE6 when I load the file locally.
When I upload it to my ISP and load it from there in IE6, it doesn't work.
(It works fine in all other browsers, both locally and from my ISP.)

The purpose of this code is to have an image appear to the right of the
question when you hover over the block of text that has a question in it.

Any ideas on why this is happening, and how to fix it?
__________________________________________________ ___
<style type="text/css">
..mainpoint {border: 2px solid red; width:25%; background-color: #fe5200;
position: relative; }

..mainpoint img {display:none;}

..mainpoint:hover img {display:block; position: absolute; top: -100px; left:
225px; }

body {behavior: url(csshover.htc)}
</style>

<body>
<div class="mainpoint">
Question One
<img src="images/Answer1.gif" alt =" " />
</div>
</body>

Thanks to all,
Edward Hass



Reply With Quote
  #2  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-23-2007 , 04:25 PM






Edward Hass wrote:
Quote:
I am using csshover.htc to allow me to use the hover pseudo element in IE6.
The following excerpted code works fine in IE6 when I load the file locally.
When I upload it to my ISP and load it from there in IE6, it doesn't work.
(It works fine in all other browsers, both locally and from my ISP.)
That is because *other* browsers *do not* use the csshover.htc
Quote:
The purpose of this code is to have an image appear to the right of the
question when you hover over the block of text that has a question in it.

Any ideas on why this is happening, and how to fix it?
No. Not without a URL to the page! csshover.htc is just a name for a MS
proprietary script (hack). There is no just one "The csshover.htc"
script, there are many and it could be coded many ways...

Looking in my crystal ball I'd say the most likely reason is that it is
located in a different location relative to the arrangement on your hard
drive.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-23-2007 , 04:25 PM



In article <Ftzbj.4202$yC6.673@trndny05>,
"Edward Hass" <newsacct1 (AT) magiciandb (DOT) com> wrote:

Quote:
I am using csshover.htc to allow me to use the hover pseudo element in IE6.
The following excerpted code works fine in IE6 when I load the file locally.
When I upload it to my ISP and load it from there in IE6, it doesn't work.
(It works fine in all other browsers, both locally and from my ISP.)

The purpose of this code is to have an image appear to the right of the
question when you hover over the block of text that has a question in it.

Any ideas on why this is happening, and how to fix it?
http://tinyurl.com/24qh93

--
dorayme


Reply With Quote
  #4  
Old   
Edward Hass
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-24-2007 , 01:06 AM



Quote:
I am using csshover.htc to allow me to use the hover pseudo element in
IE6. The following excerpted code works fine in IE6 when I load the file
locally. When I upload it to my ISP and load it from there in IE6, it
doesn't work. Any ideas on why this is happening, and how to fix it?

snip
Jonathan N. Little replied:
Quote:
No. Not without a URL to the page! csshover.htc is just a name for a MS
proprietary script (hack). There is no just one "The csshover.htc" script,
there are many and it could be coded many ways...
The problem page is at www.feltsongs.com/ed.html

The csshover.htc file I am using can be found at:
http://www.xs4all.nl/~peterned/htc/csshover2.htc

It is in the same directory as my HTML file, on my local machine and on my
ISP's server.

I've tried url(csshover.htc) and url(./csshover.htc). Both work locally,
neither works from my ISP.

Any suggestions for other htc files?

This one's driving me crazy. I've seen this problem reported before. . .not
seen any solutions that work(sigh).

Thanks,
Edward Hass




Reply With Quote
  #5  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-24-2007 , 09:44 AM



Edward Hass wrote:
Quote:
I am using csshover.htc to allow me to use the hover pseudo element in
IE6. The following excerpted code works fine in IE6 when I load the file
locally. When I upload it to my ISP and load it from there in IE6, it
doesn't work. Any ideas on why this is happening, and how to fix it?

snip

Jonathan N. Little replied:
No. Not without a URL to the page! csshover.htc is just a name for a MS
proprietary script (hack). There is no just one "The csshover.htc" script,
there are many and it could be coded many ways...

The problem page is at www.feltsongs.com/ed.html

The csshover.htc file I am using can be found at:
http://www.xs4all.nl/~peterned/htc/csshover2.htc

It is in the same directory as my HTML file, on my local machine and on my
ISP's server.

I've tried url(csshover.htc) and url(./csshover.htc). Both work locally,
neither works from my ISP.

Since you have it in the same folder as your page url(csshover.htc) is
fine. It works for me, so th4e problem is most likely you have a old
version in your browser cache.
Quote:
Any suggestions for other htc files?
I use a much simpler version that I tweaked at

http://www.littleworksstudio.com/styles/IEFixes.htc

You can see it in action at:

http://www.littleworksstudio.com/CSTC2007.php

Advantage is you only have to add the class ".hover" for IE that is the
same as the ":hover" for modern web browser and I only attached it to
the element on class that I need add the effect.

element:hover,
element.hover { ... }

element { behavior: url(EFixes.htc); }

or just a class:

..someClass:hover,
..someClass.hover { ... }

..someClass { behavior: url(EFixes.htc); }



--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #6  
Old   
John Hosking
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-25-2007 , 08:38 AM



Edward Hass wrote:

Quote:
Darn! Your solution has the same problem I've already encountered. It
works when I load it locally, doesn't work when I try to execute it from my
ISP. If you have IE6, could you please access
http://www.feltsongs.com/test2.html and tell me if you get the rollover effect
or not? this way I'll get a better idea if it has to do with my own IE
settings, or some other bizarre problem. (It's not browser cache, it failed
the first time I loaded it.)
Works on my IE6, just like on my FF, upon my very first visit in each.

HTH. GL.

--
John


Reply With Quote
  #7  
Old   
Edward Hass
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-25-2007 , 08:47 AM



"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote

Quote:
Edward Hass wrote:
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote in message
news:d4b5a$476fd408$40cba7a9$4741 (AT) NAXS (DOT) COM...
Edward Hass wrote:
I am using csshover.htc to allow me to use the hover pseudo element
in IE6. The following excerpted code works fine in IE6 when I load
the file locally. When I upload it to my ISP and load it from there
in IE6, it doesn't work. Any ideas on why this is happening, and how
to fix it?
snip
Darn! Your solution has the same problem I've already encountered. It
works when I load it locally, doesn't work when I try to execute it from my
ISP. If you have IE6, could you please access
www.feltsongs.com/test2.html and tell me if you get the rollover effect or
not? this way I'll get a better idea if it has to do with my own IE
settings, or some other bizarre problem. (It's not browser cache, it failed
the first time I loaded it.)

Regards,
Edward Hass




Reply With Quote
  #8  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-26-2007 , 10:32 AM



Edward Hass wrote:
Quote:
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote in message
news:dad33$477087fa$40cba7a9$20528 (AT) NAXS (DOT) COM...
Edward Hass wrote:
"Jonathan N. Little" <lws4art (AT) centralva (DOT) net> wrote in message
news:d4b5a$476fd408$40cba7a9$4741 (AT) NAXS (DOT) COM...
Edward Hass wrote:
I am using csshover.htc to allow me to use the hover pseudo element
in IE6. The following excerpted code works fine in IE6 when I load
the file locally. When I upload it to my ISP and load it from there
in IE6, it doesn't work. Any ideas on why this is happening, and how
to fix it?
snip

Darn! Your solution has the same problem I've already encountered. It
works when I load it locally, doesn't work when I try to execute it from my
ISP. If you have IE6, could you please access
www.feltsongs.com/test2.html and tell me if you get the rollover effect or
not? this way I'll get a better idea if it has to do with my own IE
settings, or some other bizarre problem. (It's not browser cache, it failed
the first time I loaded it.)
It must be something in your IE setup. It works for me from your website
in MSIE5.01, 5.5, 6.01, and 7!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #9  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-26-2007 , 10:35 AM



Edward Hass wrote:

Quote:
Darn! Your solution has the same problem I've already encountered. It
works when I load it locally, doesn't work when I try to execute it from my
ISP. If you have IE6, could you please access
www.feltsongs.com/test2.html and tell me if you get the rollover effect or
not? this way I'll get a better idea if it has to do with my own IE
settings, or some other bizarre problem. (It's not browser cache, it failed
the first time I loaded it.)
Just thought of something. You may have "active scripting" disabled in
your Internet zone of your security settings but not for Local.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #10  
Old   
Edward Hass
 
Posts: n/a

Default Re: csshover.htc doesn't always work - 12-26-2007 , 09:31 PM



Quote:
Just thought of something. You may have "active scripting" disabled in
your Internet zone of your security settings but not for Local.

--
Take care,

Jonathan

EUREKA!!!!!!!!!!!

It's not active scripting (that's in the Advanced Tab, and I had it
enabled.)

I clicked on "Default Level" in the Security Tab, and all started working.


Thanks hugely John, and others who took time to tackle this.

Edward Hass




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.