Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
background-image (hover) works IE6 local but not on host
Old 01-16-2008, 07:58 AM background-image (hover) works IE6 local but not on host
Junior Talker

Posts: 3
Name: dale
Trades: 0
HI Guys,
I'm a bit of a newbie nob at CSS coding but have taken time to learn as much as possible and create my code from scratch. I have been frustrated with IE6 on several things but have worked out most of the probs.

I have a perplexing problem now. I am using background-image on a ul hover. It works great in firefox and it actually works on my IE6 on localhost. When I have uploaded the file to the host, the hover background image no longer works in IE6 (all's well in firefox). I've checked this behaviour on another computer's IE6 and get the same results.

The offending area can be seen here:
http://www.irscl.com/about.html

Any ideas???

cheers
dale
< link removed, create a signature >

Last edited by chrishirst; 01-16-2008 at 06:54 PM..
littleredplanet is offline
Reply With Quote
View Public Profile Visit littleredplanet's homepage!
 
 
Register now for full access!
Old 01-16-2008, 08:49 AM Re: background-image (hover) works IE6 local but not on host
Novice Talker

Posts: 14
Name: Nathan Randle
Trades: 0
I believe this is due to the way different browsers treat relative URLs in external CSS files.

In your CSS file there is the following...
Code:
background-image:url(../images/nav_bar_bkgd.jpg);
try replacing that with...
Code:
background-image:url(/images/nav_bar_bkgd.jpg);
All browsers will fetch that from the correct place as it is an absolute path. I recommend using absolute paths wherever possible in external CSS files.
Dolbz is offline
Reply With Quote
View Public Profile
 
Old 01-16-2008, 03:22 PM Re: background-image (hover) works IE6 local but not on host
Junior Talker

Posts: 3
Name: dale
Trades: 0
Thanks Dolbz,
I corrected the paths but got no love from IE6. Still not showing the background-image on hover.

I remain perplexed :-/

cheers
littleredplanet

Last edited by chrishirst; 01-16-2008 at 06:59 PM..
littleredplanet is offline
Reply With Quote
View Public Profile Visit littleredplanet's homepage!
 
Old 01-16-2008, 04:55 PM Re: background-image (hover) works IE6 local but not on host
Junior Talker

Posts: 3
Name: dale
Trades: 0
OK,
After a bit of googling and reading, I found a fixed that's worked.
Add this to the css file:

Code:
html {
  filter: expression(document.execCommand("BackgroundImageCache", false, true));
}
I still dont understand why the background image worked on localhost but not on remote ... I'll never understand the voodoo behind IE6 :-/
littleredplanet is offline
Reply With Quote
View Public Profile Visit littleredplanet's homepage!
 
Old 01-16-2008, 06:59 PM Re: background-image (hover) works IE6 local but not on host
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
maybe it's because http://www.irscl.com/p7uberlink.js hasn't been uploaded to the server.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to background-image (hover) works IE6 local but not on host
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25271 seconds with 12 queries