User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 455,970 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,773 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 907 | Replies: 4
Reply
Join Date: Feb 2006
Location: Leeds innit
Posts: 29
Reputation: punkrockbboy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
punkrockbboy punkrockbboy is offline Offline
Light Poster

Question Help, page won't work in IE

  #1  
Nov 21st, 2007
Hi, i've been working on this page since yesterday and haven't had any problems up untill now, it's just a simple image gallery for a friends music website i'm building, it works fine in Mozilla, Opera and Safari on my mac and when i tested it on my housemates PC it was fine in Mozilla as well, but in Internet Explorer it just doesn't work.

The idea is you hover over the images and a larger image appears, simple, but can anyone explain what i've done wrong because i really don't know what to do to get it to work in IE...

Here's a link to the page, warning, it is a little image heavy, click at your peril!!

The full HTML and CSS code is pretty long so i'll just leave an example of it here, you can view the code if you need to through the link above i guess
/* Gallery Section */

#gcontainer {
position: absolute;
left: 50%;
margin-left: -395px;
width: 790px;
border: none;
}

/* This hides all the large images */
#gcontainer a.gallery span {
position: absolute;
width: 1px;
height: 1px;
top: 0px;
left: 0px;
overflow: hidden;
}

/* This shows the large images on :hover */


#gcontainer a.g002:hover span {
position: absolute;
width: 273px;
height: 340px;
top: 40px;
left: -10px;
z-index: 5;
}

#gcontainer a.g003:hover span {
position: absolute;
width: 340px;
height: 255px;
top: 40px;
left: -70px;
z-index: 5;
}

Etc, etc, you get the idea, it goes on like this for a while, here's the next section:

#gcontainer ul {
padding: 0;
margin: 0;
list-style-type: none;
}

#gcontainer a.gallery, #gcontainer a.gallery:visited {
display: block;
cursor: default;
}

#gcontainer a.g001 {
position: absolute;
width: 544px;
height: 75px;
top: 0px;
left: 96px;
background: url(gallery_images/g001.jpg);
}

#gcontainer a.g002 {
position: absolute;
width: 144px;
height: 200px;
top: 75px;
left: 0px;
background: url(gallery_images/g002.jpg);
}

#gcontainer a.g003 {
position: absolute;
width: 161px;
height: 159px;
top: 75px;
left: 144px;
background: url(gallery_images/g003.jpg);
}

And here is the HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="dlock.css" />
<title>Gallery</title>
</head>

<body>

<div id="gcontainer">
<ul>
<li>
<a class="g001">
<span>
</span>
</a>
</li>

<li>
<a class="gallery g002">
<span>
<img src="gallery_images/p02.jpg" />
</span>
</a>
</li>

<li>
<a class="gallery g003">
<span>
<img src="gallery_images/p03.jpg" />
</span>
</a>
</li>
Any Idea's please help, i'm well and truly stuck!!
Last edited by punkrockbboy : Nov 21st, 2007 at 9:40 pm. Reason: Needed to add to the description
bboykrillin[DOT]com always under construction!!!

krillin art: cause i like to draws and stuff
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2007
Location: Brisbane, Australia
Posts: 215
Reputation: sillyboy is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 13
sillyboy's Avatar
sillyboy sillyboy is offline Offline
Posting Whiz in Training

Re: Help, page won't work in IE

  #2  
Nov 22nd, 2007
Unfortunately I think IE doesn't support hover for anything other than anchors. BUT since this is a wide spread problem, I believe there is a free js script that takes care of this for you, if you google a but, you should be able to find it. If I knew the name I would tell you, but I can't remember. If you can't find it, let me know and I will look.
Reply With Quote  
Join Date: Feb 2006
Location: Leeds innit
Posts: 29
Reputation: punkrockbboy is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
punkrockbboy punkrockbboy is offline Offline
Light Poster

Re: Help, page won't work in IE

  #3  
Nov 23rd, 2007
Cheers for the response, thing is i'd like to build this using just nice clean HTML and CSS if at all possible.

On this sites index page i have a similar thing where you hover over the navigation links and the image switches between the default image and a active one, and that works just fine in IE, i've tried and tested it on a few PC's with no problems, the only difference between that page and this gallery one is that there is nothing between the <span> tags on the index page.

Or could it be that as i'm preloading the images in the <span> and hiding them behind a 1px x 1px dot with the overflow set to hidden be the problem..?

AHHH, headaches...
Last edited by punkrockbboy : Nov 23rd, 2007 at 11:23 am.
bboykrillin[DOT]com always under construction!!!

krillin art: cause i like to draws and stuff
Reply With Quote  
Join Date: Jan 2007
Posts: 2,604
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 119
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Help, page won't work in IE

  #4  
Nov 25th, 2007
I wish people would abandon using hover for things. It's annoying:

- It is not accessible, because it won't work with readers for the blind. It also causes trouble with dyslexia.

- Too often the image expansion from one link covers the link the user really wants.

Please use onclick instead of onhover.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Aug 2004
Posts: 9
Reputation: BeyerCorpuz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
BeyerCorpuz BeyerCorpuz is offline Offline
Newbie Poster

Re: Help, page won't work in IE

  #5  
Nov 26th, 2007
I'm not sure but your link shows up as gallery.htm in internet explorer. Usually that will cause the page not to work. In Firefox it is gallery.html which is correct.

Good Luck

Chris
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:13 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC