DHTML Menu help - Page 5 - Post ID 358

User 355448 Photo


Ambassador
3,144 posts

Brian,

Can you give us a link to the page where you are having the problem?

What about the frameset code?

Have you followed the instructions in the using frames helps? The link to the DHTML helps is: http://www.coffeecup.com/free-dhtml/help/
User 13379 Photo


Ambassador
37 posts

Hi Bill..and thanks
no it's not up yet as it does not work
the frameset is form coffeecup from Lucia but I can't get it to go
User 13379 Photo


Ambassador
37 posts

Frame link which is coffee cup

http://www.coffeecup.com/help/articles/ … ng-frames/
given to me by Lucia at support I will look at the url you sent
goo heavens I did not realise how much is here ...
also my home url which the menu is Sothink but I could not afford it so I aske d for help
here
home pge if you want to look
www.adam.com.au/brianbrain
User 13379 Photo


Ambassador
37 posts

Frame link which is coffee cup

http://www.coffeecup.com/help/articles/ … ng-frames/
given to me by Lucia at support I will look at the url you sent
good heavens I did not realise how much is here ...
also my home url which the menu is Sothink but I could not afford it so I asked for help
here
home page if you want to look
www.adam.com.au/brianbrain
User 13379 Photo


Ambassador
37 posts

Bill I tried to up load the 4 pages I am Working on butwas not successful and the page I went was the same one that support gave me ..the second part
<frameset rows="30%,*" border="0">
<frame name="navigation" src="menu.html" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="5" noresize>
<frame name="main" src="intro.html" marginwidth="10"
marginheight="10" scrolling="auto" frameborder="5">
</frameset>.
I am using menu and intro above in the frames
this is:what doesn't seem to work changing any of navig is ok but anything else puts the menu on the main or intro frame ....
and opens the link in the same frame and loses the menu .....

var FirstLineFrame='navigat '; // Frame where first level appears
var SecLineFrame='space '; // Frame where sub levels appear
var DocTargetFrame='space'; // Frame where target documents appear
User 355448 Photo


Ambassador
3,144 posts

Brian,

The menu code is set to go to a frame named "navigat" and you do not have a frame with that name. Computers (and the browsers that run on them) are literal, and you need to make sure everything matches.

The same thing applies for where the document is to appear. The menu wants to put it in a frame named "space" so change that to the frame for your document.
User 13379 Photo


Ambassador
37 posts

Ok Bill I will admit that shows that but it is part of the alteration I was playing with when you came up with the first answer and I stopped to get back to you ..
1st one I tried navigation to menu changed menu to navigation
2nd one changed intro to main
3rd one used intro and main here
tried all the combis and yes I put the code on each page and got a script error on some ...
perhaps I should wait till I get out of this psychiatric ward ONLY JOKING.....
ok I will play some more and let you what kind of fool I am ....nice song that ....
User 13379 Photo


Ambassador
37 posts

Hi Bill
I have altered my site and put up the pages ...there are 4
Index.html
Intro.htm
menu.htm
links.htm
links is just for testing my site is inactive except for these files until you have a look at it
DHTML menu coffee cup
and the index frame setup is as Lucia at support ...
this from the help on cc DHTML help page
<body onload="nojavascript...{if(parent.frames[0]&&parent.frames['links'].Go)parent.frames['links'].Go()}">
as you can see I put links in the on load script....
User 13379 Photo


Ambassador
37 posts

Hi Bill
wacko ! ! ! what a site just had a look very very nice ...I can see why you help ..Thanks
User 355448 Photo


Ambassador
3,144 posts

Brian,

Here are you menu lines:

var FirstLineFrame='menu'; // Frame where first level appears
var SecLineFrame='intro'; // Frame where sub levels appear
var DocTargetFrame='intro'; // Frame where target documents appear

Here are your frame name:

<frame name="navigation"
<frame name="main"

The menu code mush match the HTML code. Try changing the menu code to read:

var FirstLineFrame='navigation'; // Frame where first level appears
var SecLineFrame='main'; // Frame where sub levels appear
var DocTargetFrame='main'; // Frame where target documents appear

That should put the menu in a frame named navigation, and allow the sub-menus to appear over the main frame. That should put all the linked pages into the main frame.

Some other things you should do:

Change the doctype on your index.html to read:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
since that is the doctype for frames.

You can also remove both the <body> and </body> tags.


Is there any reason you NEED to use frames? You can accomplish the same thing as your menu frame and main frame by making the menu a javascript file and putting a single line of code on each page in the location of your menu.



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.