DHTML Menu not visible in Chrome or...

User 1473491 Photo


Trial User
2 posts

Hi, I created a DHTML menu with the coffeecup software and it is working fine in IE8, but it does not appear at all in firefox and it appears inside an iFrame in Chrome. Any idea what code has to be added in order to fix this??

Thanks





the site:
http://www.fermoyconcertband.com
User 355448 Photo


Ambassador
3,144 posts

Soli5,

I just checked with Firefox3 and see the menu on the left side. There are some issues that you can fix by changing the widths of the submenus. The submenus are cutoff and increasing the widths would fix that.

With Google Chrome, the menu appears positioned in the top left corner of your page.

Looking at your code, I see that the menu code has been modified. Instead of the CDATA modification, it might be better to convert the menu code to a separate javascript file and use that.

You are using two different ways of positioning the menu. You have the CSS using absolute positioning and you have the menu itself also using relative positioning by a change you made to your code. Try commenting out the CSS code and just used the menu to see if that gives you any improvement.

I notice that you also changed the TargetLoc to self, but did not make any use of that in your HTML code. According to the DHTML helps, this is what places the menu in relative position, and needs to be used with <div id="whatever you have specified"> or using your menu code <div id="self">

Also check the help files at http://www.coffeecup.com/free-dhtml/help/ for more information.

Another source of DHTML menu help can be found in the "Tips & Tricks" section at this link: http://www.coffeecup.com/forums/softwar … u-builder/

There is also a replacement DAT file that fixes some problems with the menu. You can download a self extracting zip of the dat at http://www.coffeecuphelp.com/broberson/dhtmldat.exe that contains the replacement DAT and a readme file.
User 1473491 Photo


Trial User
2 posts

Bill,

Thanks a million for your answer. Incredibly I have just fixed the problem after reading one of your posts. Apparently I was reading your post while you were writting your reply to mine!!

I just changed the DOCTYPE, as you said it worked for you once.

I had:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

and I changed it to just:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

That simple change.

I had a conflict with the TargetLoc, I have been trying a lot of different things with that matter, as I wanted to redirect the links to an iframe and just one to the main page. It didn´t seem possible so finally i did change the TargetLoc to 'MenuPos' and then I possitioned the Menu (setting StartTop and StartLeft to '0' both).

One problem less!!
Cheers
User 355448 Photo


Ambassador
3,144 posts

Glad you have the menu working now.

If you have any other questions, this is a great place to find answers.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.