Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my webpage menu not playing well with image loading code

Status
Not open for further replies.

bewin99

Programmer
Sep 25, 2008
15
GB
I am using this fancy box ( code to smoothly pop up an image on click, I got it working on my main index page ( but that's not where I want to put it. My site has a menu where it loads external webpages inside the main index one, I would like to use the code on one of those pages but something is not working.

I have been told its a DOCTYPE issue but I am not able to use the specified DOCTYPE, however I find that it works all the same with my current DOCTYPE choice. If I use the given one in addition to the one I use now (and need) then my site does not work properly, further if I replace it I get the same results.


My existing doctype:

<DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" " " "<html xmlns=" xml:lang="en" lang="en">


What the code uses:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "<html xmlns=" xml:lang="en" lang="en">


I'm not sure what the differences are but I've been advised that I need to run the code in "standards mode" before I try to fix it. As I see it the code works, just not where I need it to, nothing unusual on my site and nothing unusual that I may be wrong.

On my site ( you can see at the bottom right a blue text link called "aaaa" this is the code that works (never mind it conflicting with the Java applet, its just to prove it works, its only temporary), however (clicking the dome to the left of that to scroll the page down and selecting the "met.a has guts" menu option diagram ( you'll see the "aaaa" link again at the bottom left of that page and that is where I need it to work from.

I even tried using the exact code from the example in that linked .htm ( page but it doesn't make a difference, it probably even hinders the code as it looks at the main html page. However loading the page on its own the code will work, so its related to the menu and the way that works.


If anybody can help that would be brilliant, I'm sure its something simple.

Thanks in advance!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top