New user needs help adding a menu on a frames page

B

Bejewell

I have a FrontPage website that I created with frames - the left frame
contains a menu in table format. I would like to set it up so that some of
the main menu items in the table have arrows next to them, and when the user
clicks the arrow another menu pops out to the side with sub-menu items for
the user to choose from.

I thought that creating a layer would be the solution, but I can't seem to
figure it out. The layers I create appear within the left frame, which isn't
big enough to hold the main menu AND the sencond menu. How can I get the
second menu to pop out outside of the left frame?

Any help would be great. I've really been struggling to figure this out.
 
V

Viken Karaguesian

You can't do that easily without any JavaScript. Go to a place like
www.dynamicdrive.com and look under the "Menu's and Navigation"
section. There are plenty to choose from.

Also, you can go here: http://www.burmees.nl/menu/

This guy made a great menu that you can use across frames, and it's
free. Latest version is 13.20. I've used it quite a bit. Once you
tinker around with it, you'll get the hang of how to configure it.

Viken K.
http://home.comcast.net/~vikenk
 
B

Bejewell

Thanks so much for the help, I am now using one of the codes offered on the
DynamicDrive site and, though it took me a few tries to get the hang of it,
it is working well now. One more problem, though - How can I get the
hyperlinks in the submenus to open within the main frame instead of opening a
while new page when the user clicks on them?

Thanks again for your help with this.
 
B

Bejewell

Thanks so much for the help, I am now using one of the codes offered on the
DynamicDrive site and, though it took me a few tries to get the hang of it,
it is working well now. One more problem, though - How can I get the
hyperlinks in the submenus to open within the main frame instead of opening a
while new page when the user clicks on them?

Thanks again for your help with this.
 
T

Trevor L.

Bejewell said:
Thanks so much for the help, I am now using one of the codes offered
on the DynamicDrive site and, though it took me a few tries to get
the hang of it, it is working well now. One more problem, though -
How can I get the hyperlinks in the submenus to open within the main
frame instead of opening a while new page when the user clicks on
them?

Thanks again for your help with this.

I don't know exacty what code you are using, but I guess you will have to
edit the hyperlinks so that they look like this
<a href="whatever.html" target="index_main" >whatever text</a>
where "index_main" is the name of your main frame
 
V

Viken Karaguesian

it is working well now. One more problem, though - How can I get the
hyperlinks in the submenus to open within the main frame instead of
opening a
while new page when the user clicks on them?

Is it possible to see the site? It would be better to have a reference. But,
as a generic answer, you need to give your target frame a name, then make
that name your target. I'll use one of my sites as an example. Here's the
simplified code to my frames page:

<frameset cols="260,*" border="0" frameborder="0" framespacing="0">
<frame name="left" src="frame_left.htm" scrolling="no" marginwidth="0"
marginheight="0" noresize target="main">
<frame name="main" src="home.htm" scrolling="auto" target="_self">
</frameset>

You can see that the name of the main frame is "main". The left frame has
the value target="main". That means that all hyperlinks in the left frame
will open up in the main frame. You see the code for the main frame? That
says: target="_self", meaning all hyperlinks in the main frame open up in
the main frame (unless specified otherwise).

Alternately, you can add "target="main" to all your hyperlinks, example: <a
href="xxx.htm" target="main">Link</a>.
In Frontpage, in Design view, right-click in the left frame and choose
"Frame Properties", then choose "Frames Page". Under the "General" tab, you
will see "Default Base Target". This is where you choose the destination of
the hyperlinks you click on.

Hope this helps.
 
T

Trevor L.

Viken

Interesting ,

I am not the OP, but I had target ="main" in my frameset but it was not
validated by w3schools as correct XHTML

An alternative is to add this in the <head> section of all relevant frames
<base target="main" />
 
V

Viken Karaguesian

I am not the OP, but I had target ="main" in my frameset but it was not
validated by w3schools as correct XHTML

Correct. To use frames (and, therefore, target="main") you need to use a
HTML Transitional doctype. HTML strict and XHTML do not allow for that
command, if I recall correctly.
 
T

Trevor L.

Viken said:
Correct. To use frames (and, therefore, target="main") you need to
use a HTML Transitional doctype. HTML strict and XHTML do not allow
for that command, if I recall correctly.

True, but I used
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Is this XHTML Frameset Transitional ?
Or doessn't 'XHTML Frameset Transitional' exist - only Frameset, Strict and
Transitional?

Anyway, it is acadmic now, as I removed target="main" from the frameset and
I use this statement my frames:
<base target="main" />
Sometines, I use:
<base target="_blank" />
if I want more frames to open as new than in "main"

In every case, I also override the base spec. with other targets as needed.
 
V

Viken Karaguesian

True, but I used
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

Is this XHTML Frameset Transitional ?
Or doessn't 'XHTML Frameset Transitional' exist - only Frameset, Strict
and Transitional?

I think of XHTML as "super-strict" HTML. While posting about XHTML in
another newgroup, I got this response:

(There is no conformance other that "strict conformance" defined in the
XHTML 1.0 specification. The word "strict" is there just to mislead you;
it has nothing to do with the Strict vs. Transitional document types.)

So I suppose that there's no difference between Strict XHTML and
Transitional XHTML. There aren't any "relaxed" set of rules for XHTML, it
seems. Many people dispute the use of XHTML on the web and there's lots of
lobbying against it. Me? I have no idea what to think.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top