Help - Search - Members - Calendar
Full Version: FIREFOX PopUP Menu won't work in IE
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
jj5678
I am trying to get a pop up menu to work on a site that I am building, it works fine in Firefox but will not work in IE.

I am pulling my hair out and have rebuilt it about a dozen times but cannot fix it???

Can anyone help? Here is the link - http://www.fifesstockfeeds.com/contact%20us.html

Any help will be most appreciated!

Cheers
Jimbo
lavazza
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Jeremy Keith :: http://www.adactio.com/ */
function doPopups()
{
//alert('dopopups has fired');
if (!document.getElementsByTagName) return false;

var myLink=document.getElementsByTagName("a");

for (var i=0; i < myLink.length; i++)
{
if (myLink[i].className.match("popup"))
{
myLink[i].onclick=function()
{
// Below - to open a full-sized window, just use: window.open(this.href);
window.open(this.href, "", "top=4,left=4,width=800,height=600,scrollbars=yes");
return false;
}
}
}
}



Then... in your html...

you have to add class="popup" to your <a href tags
e.g.


<a class="popup"
title="pop up: photo of the Thing"
href="folderName/thingPhoto.html">
<img src="images/theThing.png"
width="128"
height="96"
title="pop up photo of the Thing"
alt="photo of the Thing"></a>

or

We also have a <a class="popup" title="a pop up window showing the thing" href="folderName/theThing.html"> thing </a> to show you
jj5678
Man I so don't get that...
I only use fire fox in a wysiwyg way.
I tried doing what you said but it wasn't successful. It just said that the javascipt was class="popup" on the rollover.

Jimbo
Frederiek
You're better off to see the original code and explanation at http://javascript.internet.com/navigation/...p-function.html.

BTW, You don't need javascript anymore to build menu's. It an be done with CSS, see http://www.d.umn.edu/itss/support/Training.../css.html#lists.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.