Click to See Complete Forum and Search --> : image links don't work in IE (using frames)


SandiD
08-15-2005, 06:34 PM
I can't get my image links to work in IE. They work in Mozilla's browser. The images are supposed to change from green to red on mouseover (a different image) and are supposed to open a page into the same frame when clicked. It all works in Mozilla, but not in IE. Help anyone???????

(The code is ugly because I started it in Microsoft Word.... I am a newbie trying to learn.)

Here's the url (it's the home page that I can't get to work): http://users.cableaz.com/~az/MNF3/

Sandi

SandiD
08-16-2005, 09:32 AM
By the way, if you open the frame in a new window, the links work (but still not the mouseovers):

http://users.cableaz.com/~az/MNF3/main.htm
:confused:

Sandi

SandiD
08-16-2005, 05:29 PM
Well, I put a workaround in place...

Instead of
<a href="where.htm" target="main" >
I coded
<a href="http://users.cableaz.com/~az/MNF3/where.htm" target="main" >

I had to hardcode the URL to get the links to work. I will have to do a replace-all when I upload the pages to the host site.

That took care of the linking problem, but I still don't know why the mouseover isn't working. If anyone can help with that - I would appreciate it.

airforcemook
08-17-2005, 05:44 AM
Go to www.javascriptsource.com and see their mouse-over scripts, there's tons.

I looked real quick at one and they have something like this:
document.images['image12'].src = whatever
as opposed to your
img12.src = whatever

It works in IE.

Gonna have to make a single function that handles it with input, and checks for the browser type it looks like.

Something like:
function HoverImage(imagename,newimage,oldimage) {
checkforbrowser, do this if IE....
else do this for NS/etc...
}