473,770 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rollover buttons with IE (including framesets) bug

I'm wrestling with CSS variations between Firefox and IE. I'm trying to
create rollover buttons in a menu frame. It is working perfectly in
Firefox but in IE only the first button is properly highlighted and
linked. The second button, has only a partial "hit area" at the top of
the image, although if you click the link, you can see the link border
is properly place around the image. The rest of the buttons have no
rolloever state or link at all.

As I say, all of this works perfectly in Firefox. You can see the web
page at:

http://www.wesleyumc-vinton.org/beta/index.html

And yes, I know that there are other problems with pages as you load
them. One thing at a time. Let's fix the rollovers first :)

Here is the relavant CSS code that I'm using to create the rollover
buttons;

/* This hides the text that we use for the menu links */
#menu a i { visibility: hidden; }

/* This positions the hover images vertically */
a#Home { top: 187px; left: 0; }
a#Action { top: 233px; left: 0; }
a#Learning { top: 279px; left: 0; }
a#Groups { top: 325px; left: 0; }
a#Links { top: 371px; left: 0; }

/* Define the hover images */
a#Home:hover { background-image: url(img/home_btn_glow.j pg);
background-repeat: no-repeat; }
a#Action:hover { background-image: url(img/action_btn_glow .jpg);
background-repeat: no-repeat; }
a#Learning:hove r { background-image:
url(img/learning_btn_gl ow.jpg); background-repeat: no-repeat; }
a#Groups:hover { background-image: url(img/groups_btn_glow .jpg);
background-repeat: no-repeat; }
a#Links:hover { background-image: url(img/links_btn_glow. jpg);
background-repeat: no-repeat; }

/* This allows the hover image to hide again after you move away
from it */
a#Home:hover,
a#Action:hover,
a#Learning:hove r,
a#Groups:hover,
a#Links:hover {border: none; }

As a final note, Let me say that this was all working fine in IE until,
for design reasons, I decided to go with frames on the page.

Anyway, can someone point out to me a hack to make IE behave properly?

Thanks!

AJ

Nov 26 '05 #1
6 3192
AJBopp wrote:
I'm wrestling with
the Submit button? Five identical posts? <lol> Look into getting a
real newsreader...
CSS variations between Firefox and IE. I'm trying to
create rollover buttons in a menu frame. It is working perfectly in
Firefox
No, it is not.
http://k75s.home.att.net/show/wesley.jpg
This screenshot was made just after clicking on the "Action" item. Also
notice you haven't assigned a background color, so my ugly aqua is used.
but in IE only the first button is properly highlighted and
linked. The second button, has only a partial "hit area" at the top of
the image, although if you click the link, you can see the link border
is properly place around the image. The rest of the buttons have no
rolloever state or link at all.

As I say, all of this works perfectly in Firefox. You can see the web
page at:

http://www.wesleyumc-vinton.org/beta/index.html

And yes, I know that there are other problems with pages as you load
them. One thing at a time. Let's fix the rollovers first :)
Sorry, I don't do rollover buttons.
Here is the relavant CSS code that I'm using to create the rollover
buttons; <snip>

/* This hides the text that we use for the menu links */
#menu a i { visibility: hidden; }

/* This positions the hover images vertically */
a#Home { top: 187px; left: 0; }
a#Action { top: 233px; left: 0; }
a#Learning { top: 279px; left: 0; }
a#Groups { top: 325px; left: 0; }
a#Links { top: 371px; left: 0; }
Why do you need absolute positioning? If you used a list instead of
links floating in a div, you may have better luck.
/* Define the hover images */
a#Home:hover { background-image: url(img/home_btn_glow.j pg);
background-repeat: no-repeat; }
a#Action:hover { background-image: url(img/action_btn_glow .jpg);
background-repeat: no-repeat; }
a#Learning:hove r { background-image:
url(img/learning_btn_gl ow.jpg); background-repeat: no-repeat; }
a#Groups:hover { background-image: url(img/groups_btn_glow .jpg);
background-repeat: no-repeat; }
a#Links:hover { background-image: url(img/links_btn_glow. jpg);
background-repeat: no-repeat; }

/* This allows the hover image to hide again after you move away
from it */
a#Home:hover,
a#Action:hover,
a#Learning:hove r,
a#Groups:hover,
a#Links:hover {border: none; }
Way too complicated, I think.

Your code for the menu frame is malformed. You have HTML between the
<head> and the <body> sections, so browsers have to guess what you mean.

You should visit:
<http://validator.w3.or g/check?verbose=1 &uri=http%3A//www.wesleyumc-vinton.org/beta/index.html>
and
<http://jigsaw.w3.org/css-validator/validator?profi le=css2&warning =2&uri=http%3A//www.wesleyumc-vinton.org/beta/index.html>
As a final note, Let me say that this was all working fine in IE until,
for design reasons, I decided to go with frames on the page.
Sorry, I am a member of the "frames are evil" contingent. Google for it.
Anyway, can someone point out to me a hack to make IE behave properly?


If I were you, I would make sure it worked in a modern browser first.

--
-bts
-Warning: I brake for lawn deer
Nov 26 '05 #2
Yeah, Google kept telling me the request timed out :(
CSS variations between Firefox and IE. I'm trying to
create rollover buttons in a menu frame. It is working perfectly in
Firefox
No, it is not.
http://k75s.home.att.net/show/wesley.jpg
This screenshot was made just after clicking on the "Action" item. Also
notice you haven't assigned a background color, so my ugly aqua is used.
Yes it is. Remember, I'm just talking about the rollover state here. I
know that there are problems with the pages displaying correctly. That
will be easily solved with deleting some things out of the style sheet.
But the problem that has my immediate focus is just getting the buttons
to work.
Why do you need absolute positioning? If you used a list instead of
links floating in a div, you may have better luck.
Well as you can tell from looking at my HTML and CSS, this is all
pretty new to me and I'm learning as I go. However, I believe that I
need absolute positioning so that the rollover image occupies exactly
the same space as the normal background image.
Way too complicated, I think.
Too complicated? How so? It's easy enough even for me to understand,
and I don't understand much at this point :) All I'm doing is defining
a hover image for each menu item, and ensuring the original image
returns once the rollover state is no longer in effect.
Your code for the menu frame is malformed. You have HTML between the
<head> and the <body> sections, so browsers have to guess what you mean.
Thanks for catching that. However, moving this code to either the
<head> or the <body> section has no effect on how the page functions in
either browser.
Sorry, I am a member of the "frames are evil" contingent. Google for it.
I'm not a big fan of frames either, but they solve certain problems
that I haven't been able to fix with CSS. And I am NOT going to a
scripting language to do things. One of the things frames gets me that
CSS doesn't (I don't think) is the ability to create a 1000 pixel long
(or wide) gradient image for the background, with no scrollbars
uglifying things (which is what I need for the menu bar down the left
side).
If I were you, I would make sure it worked in a modern browser first.


I HAVE made sure it works in a modern browser. It's the browser 90% of
the people use that I have to make it worth with now.

Nov 27 '05 #3
AJBopp wrote:
Yeah, Google kept telling me the request timed out :(
CSS variations between Firefox and IE. I'm trying to
create rollover buttons in a menu frame. It is working perfectly in
Firefox
No, it is not.
http://k75s.home.att.net/show/wesley.jpg
This screenshot was made just after clicking on the "Action" item. Also
notice you haven't assigned a background color, so my ugly aqua is used.


Yes it is. Remember, I'm just talking about the rollover state here. I
know that there are problems with the pages displaying correctly. That
will be easily solved with deleting some things out of the style sheet.
But the problem that has my immediate focus is just getting the buttons
to work.


Ok, well the buttons seem to do their job, at least in my several
browsers, though in IE the yellow parts only seem to load for the first
two of them. Can't say why.
Why do you need absolute positioning? If you used a list instead of
links floating in a div, you may have better luck.


Well as you can tell from looking at my HTML and CSS, this is all
pretty new to me and I'm learning as I go. However, I believe that I
need absolute positioning so that the rollover image occupies exactly
the same space as the normal background image.
Way too complicated, I think.


Too complicated? How so? It's easy enough even for me to understand,
and I don't understand much at this point :) All I'm doing is defining
a hover image for each menu item, and ensuring the original image
returns once the rollover state is no longer in effect.


I would try to use a list - <ul><li> - and use just one image: a button
with no words on it, as background for the <li>'s. Then I would use
plain text links, with

a:link { color: white }
a:visited { color: gray }
a:hover { color: yellow }
a:active { color: somethingelse }

to show the changes. (Must be in that order: link, visited, hover,
active - we'll bypass focus for the moment)

The Home images seem to have a different sized "M" as that one jumps
when hovering.
Your code for the menu frame is malformed. You have HTML between the
<head> and the <body> sections, so browsers have to guess what you mean.


Thanks for catching that. However, moving this code to either the
<head> or the <body> section has no effect on how the page functions in
either browser.


At this moment, I still see the "<div class="left">" section *between*
the </head> and the <body>. It should be after the <body>.

Also, maybe it would work as you expect if you fixed the CSS errors?
<http://jigsaw.w3.org/css-validator/validator?profi le=css2&warning =2&uri=http%3A//www.wesleyumc-vinton.org/beta/index.html>
Different browsers may try to correct the errors .. differently.
Sorry, I am a member of the "frames are evil" contingent. Google for it.


I'm not a big fan of frames either, but they solve certain problems
that I haven't been able to fix with CSS. And I am NOT going to a
scripting language to do things. One of the things frames gets me that
CSS doesn't (I don't think) is the ability to create a 1000 pixel long
(or wide) gradient image for the background, with no scrollbars
uglifying things (which is what I need for the menu bar down the left
side).


The nav frame has no scrollbar, so (as you saw in my screenshot) I only
see Home, Action, Learning, and the top half of the word Groups. Many
users will not realize that area is scrollable, and will never find the
Links choice.

For those with smaller monitors and browser windows, giving them two
areas necessary to scroll is a penalty. You should be able to do this
layout with a simple two-column CSS design. Where only one scroll is
necessary.
If I were you, I would make sure it worked in a modern browser first.


I HAVE made sure it works in a modern browser. It's the browser 90% of
the people use that I have to make it worth with now.


No, I said *modern* browser, not a popular one (operating system
component). IE6 is over five years old, and does not do complicated CSS
very well. <g>

--
-bts
-Warning: I brake for lawn deer
Nov 27 '05 #4
> > I HAVE made sure it works in a modern browser. It's the browser 90% of
the people use that I have to make it worth with now.
No, I said *modern* browser, not a popular one (operating system
component). IE6 is over five years old, and does not do complicated CSS
very well. <g>


That's what I meant. The hover buttons worked OK with a modern browser
(Firefox) but not very well with IE, which 90% of the people use. Much
as I'd like to, I just can't ignore IE and hope it will go away :)

Nov 28 '05 #5
AJBopp wrote:
I HAVE made sure it works in a modern browser. It's the browser 90% of
the people use that I have to make it worth with now.

[Beauregard wrote:] No, I said *modern* browser, not a popular one (operating system
component). IE6 is over five years old, and does not do complicated CSS
very well. <g>
That's what I meant.


Well heh, then I misinterpreted your statement.
The hover buttons worked OK with a modern browser (Firefox) but not
very well with IE, which 90% of the people use.
Put a big "Get Firefox!" graphic and link on your page. <g>
Much as I'd like to, I just can't ignore IE and hope it will go away
:)


Ahh, yes. We can wish, eh?

No thoughts on my suggestion to change to a list with only one graphic?

--
-bts
-Warning: I brake for lawn deer
Nov 28 '05 #6
> No thoughts on my suggestion to change to a list with only one graphic?

Well, yes, I'm going to look into that as soon as I get home, provided
I feel well enough (seem to have picked up a bit of a bug today). I've
run across some things like listamatic.com that should help out too.

I like very much the idea of cutting down the number of graphics the
user has to load, as well as minimizing the number of graphical buttons
I have to manage. So I will investigate this link thing and see if I
can get it to work. I'm also determined to ditch frames, so I'll be
seeing what I can do to correct that error in judgement as well.

Thanks much!

AJ

Nov 28 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1768
by: Max Biancofiore | last post by:
I am working on a new website. Please, can everybody go to www.intheloop.org.uk\sw5\index.html and tell me: 1) How long do the buttons take to download (please, also state connection speed)? 2) How does the image rollover for the buttons work? Especially concerning the preload.
4
1851
by: down_w/spam | last post by:
Hi all, I've done some research on this issue and am looking to you for further information on why IE still does a server look-up of a rollover image, even if the image has been preloaded and/or looked-up. I've tended to think that it is just a bug with IE but then i found a site that has rollovers that do not get looked up with IE. I thought that maybe they are using some special js script that fixed it. But no, it uses the same...
4
1957
by: Leythos | last post by:
I've got several sites that I used DreamWeaver MX to add RollOver buttons to the pages, it also adds some javascript that pre-loads the images and does the mouse_over and such. In FireFox 1.0.1 when I load the page and it pre-loads the images the status bar shows DONE. When I mouse over any item, it changes the image properly, but the status (lower left of browser) shows "Read www.somesite.com", it may also show "Waiting for...
4
1606
by: Matt | last post by:
i know more-or-less zero about javascript, but my client wants a rollover and he created this code, which doesn't work. All comments are appreciated. 1. the tag: <td align="center" width="66" nowrap="nowrap" background="/work/phc1.10/images/layout/main_nav_bg.gif"> <a href="http://localhost/work/phc1.10/index.php?page=homecare" onmouseover="imgSwap('','gnav_hc_on','gnav_hc_on')" onmouseout="imgSwap('','gnav_hc_off','gnav_hc_off')">
0
369
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly highlighted and linked. The second button, has only a partial "hit area" at the top of the image, although if you click the link, you can see the link border is properly place around the image. The rest of the buttons have no rolloever state or link...
2
3444
by: Casimir | last post by:
I am looking into making pure CSS image rollovers. Do you have any clever (and robust) CSS rollover-tricks? Or links to such "in the wild"? I have figured out two methods for this, but have yet to do proper testing on browser support. Method I:
2
3048
by: eholz1 | last post by:
Hello CSS and StyleSheet members, I have decided to move away from Dreamweaver javascript rollover buttons, in favor of a CSS type rollover button. (hope that is ok). I plan to use PHP to include the page with the rollover buttons as a php include in a div for navigation buttons (left side of web page). I have cobbled together some code complements of http://sophie-g.net/jobs/css/e_buttons.htm.
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10102
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.