Pull down menus work in include but fail on page

T

tcarp

I have been experimenting with pull down menus. I stole some html code from
a good site and was able to get the menus to successfully pull down. I have
created an Include for the menu and included it in a DWT (simple one that has
the include at the top in a table cell followed by a few more table rows.)

I can get the pull down menus to work when I preview (f12) the include file.
When I go to the actual pages (with the DWT and it's menu include) I can't
get the pull downs to work. The main menu items are still hot (have their
hyperlinks active), but the menus don't pull down.

Is there something special I need to do to get pull down menus that work in
the include page to work in the final pages via DWT?

Thanks

Tom
 
S

Stefan B Rusynko

Include file only include the content inside of the BODY tags
- move all your DHTML scripts inside of the body tags

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have been experimenting with pull down menus. I stole some html code from
| a good site and was able to get the menus to successfully pull down. I have
| created an Include for the menu and included it in a DWT (simple one that has
| the include at the top in a table cell followed by a few more table rows.)
|
| I can get the pull down menus to work when I preview (f12) the include file.
| When I go to the actual pages (with the DWT and it's menu include) I can't
| get the pull downs to work. The main menu items are still hot (have their
| hyperlinks active), but the menus don't pull down.
|
| Is there something special I need to do to get pull down menus that work in
| the include page to work in the final pages via DWT?
|
| Thanks
|
| Tom
 
T

tcarp

Thanks Stefan

Could someone look at this html and tell me how it needs to be resturctured
to have the pull down menus work? I have only a beginner's understanding of
html, however, it appears that something needs to be moved if it's to be part
of an include.

Thanks

Tom

<HTML>
<HEAD>
<link rel="stylesheet" type="text/css" href="style_bNavy.css">
<link rel="stylesheet" type="text/css" href="menu_bNavy.css">
</HEAD>
<BODY>
<STYLE>
<!--
TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
TR.hdrlogo { background-color:#000080 ;
background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
;font-size:10px }
TR.hdrnav { background-color: black ; color:white ;
font-family:verdana,arial,sans-serif ;font-size:10px ;}
A.hdr:link { color:white ; text-decoration:none ;
font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
A.hdr:visited { color:white ; text-decoration:none ;
font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
A.hdr:hover { color:white ; text-decoration:underline ;
font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
-->
</STYLE>
<TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
<TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
<IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
width="282" height="113"></A></TR>
<head>
<link rel="stylesheet" type="text/css" href="menu_bNavy.css">
<script type="text/javascript" src="Navy_menu.js"></script>
<script type="text/javascript">
menuArrow = new Image(10, 12);
menuArrow.src = "../images/arrow.gif";
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body onload="menuInit();">

From here on it's a table row that has the individual menus and the
sub-menus defined (divs)

Stefan B Rusynko said:
Include file only include the content inside of the BODY tags
- move all your DHTML scripts inside of the body tags

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


|I have been experimenting with pull down menus. I stole some html code from
| a good site and was able to get the menus to successfully pull down. I have
| created an Include for the menu and included it in a DWT (simple one that has
| the include at the top in a table cell followed by a few more table rows.)
|
| I can get the pull down menus to work when I preview (f12) the include file.
| When I go to the actual pages (with the DWT and it's menu include) I can't
| get the pull downs to work. The main menu items are still hot (have their
| hyperlinks active), but the menus don't pull down.
|
| Is there something special I need to do to get pull down menus that work in
| the include page to work in the final pages via DWT?
|
| Thanks
|
| Tom
 
S

Stefan B Rusynko

That page is invalid html
- you can not have 2 head sections or 2 body tags in any html page

If that's your include page apply both style sheets and the styles plus the JavaScript, along w/ the body onload to all the pages
using the include page


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Stefan
|
| Could someone look at this html and tell me how it needs to be resturctured
| to have the pull down menus work? I have only a beginner's understanding of
| html, however, it appears that something needs to be moved if it's to be part
| of an include.
|
| Thanks
|
| Tom
|
| <HTML>
| <HEAD>
| <link rel="stylesheet" type="text/css" href="style_bNavy.css">
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| </HEAD>
| <BODY>
| <STYLE>
| <!--
| TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
| TR.hdrlogo { background-color:#000080 ;
| background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
| background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
| ;font-size:10px }
| TR.hdrnav { background-color: black ; color:white ;
| font-family:verdana,arial,sans-serif ;font-size:10px ;}
| A.hdr:link { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:visited { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:hover { color:white ; text-decoration:underline ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| -->
| </STYLE>
| <TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
| <TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
| <IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
| width="282" height="113"></A></TR>
| <head>
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| <script type="text/javascript" src="Navy_menu.js"></script>
| <script type="text/javascript">
| menuArrow = new Image(10, 12);
| menuArrow.src = "../images/arrow.gif";
| </script>
| <script language="JavaScript" type="text/JavaScript">
| <!--
| function MM_reloadPage(init) { //reloads the window if Nav4 resized
| if (init==true) with (navigator) {if
| ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
| document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
| onresize=MM_reloadPage; }}
| else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
| location.reload();
| }
| MM_reloadPage(true);
| //-->
| </script>
| </head>
| <body onload="menuInit();">
|
| From here on it's a table row that has the individual menus and the
| sub-menus defined (divs)
|
| "Stefan B Rusynko" wrote:
|
| > Include file only include the content inside of the BODY tags
| > - move all your DHTML scripts inside of the body tags
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I have been experimenting with pull down menus. I stole some html code from
| > | a good site and was able to get the menus to successfully pull down. I have
| > | created an Include for the menu and included it in a DWT (simple one that has
| > | the include at the top in a table cell followed by a few more table rows.)
| > |
| > | I can get the pull down menus to work when I preview (f12) the include file.
| > | When I go to the actual pages (with the DWT and it's menu include) I can't
| > | get the pull downs to work. The main menu items are still hot (have their
| > | hyperlinks active), but the menus don't pull down.
| > |
| > | Is there something special I need to do to get pull down menus that work in
| > | the include page to work in the final pages via DWT?
| > |
| > | Thanks
| > |
| > | Tom
| >
| >
| >
 
T

tcarp

Thanks Stefan

The file got the way it is because I copied/pasted source into an existing
include.

A basic html question: Can anything be placed in the body section? For
example, can the css links, the java scripts, etc. all be placed in the body?
If so, it would seem that for an include (which is only going to bring in
the body) the head section either should be empty or only contain some of the
meta data for documentation purposes. Is that true? Are there guidelines
for what the structure of html should look like for an include?

Thanks

Tom

Stefan B Rusynko said:
That page is invalid html
- you can not have 2 head sections or 2 body tags in any html page

If that's your include page apply both style sheets and the styles plus the JavaScript, along w/ the body onload to all the pages
using the include page


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Stefan
|
| Could someone look at this html and tell me how it needs to be resturctured
| to have the pull down menus work? I have only a beginner's understanding of
| html, however, it appears that something needs to be moved if it's to be part
| of an include.
|
| Thanks
|
| Tom
|
| <HTML>
| <HEAD>
| <link rel="stylesheet" type="text/css" href="style_bNavy.css">
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| </HEAD>
| <BODY>
| <STYLE>
| <!--
| TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
| TR.hdrlogo { background-color:#000080 ;
| background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
| background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
| ;font-size:10px }
| TR.hdrnav { background-color: black ; color:white ;
| font-family:verdana,arial,sans-serif ;font-size:10px ;}
| A.hdr:link { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:visited { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:hover { color:white ; text-decoration:underline ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| -->
| </STYLE>
| <TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
| <TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
| <IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
| width="282" height="113"></A></TR>
| <head>
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| <script type="text/javascript" src="Navy_menu.js"></script>
| <script type="text/javascript">
| menuArrow = new Image(10, 12);
| menuArrow.src = "../images/arrow.gif";
| </script>
| <script language="JavaScript" type="text/JavaScript">
| <!--
| function MM_reloadPage(init) { //reloads the window if Nav4 resized
| if (init==true) with (navigator) {if
| ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
| document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
| onresize=MM_reloadPage; }}
| else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
| location.reload();
| }
| MM_reloadPage(true);
| //-->
| </script>
| </head>
| <body onload="menuInit();">
|
| From here on it's a table row that has the individual menus and the
| sub-menus defined (divs)
|
| "Stefan B Rusynko" wrote:
|
| > Include file only include the content inside of the BODY tags
| > - move all your DHTML scripts inside of the body tags
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I have been experimenting with pull down menus. I stole some html code from
| > | a good site and was able to get the menus to successfully pull down. I have
| > | created an Include for the menu and included it in a DWT (simple one that has
| > | the include at the top in a table cell followed by a few more table rows.)
| > |
| > | I can get the pull down menus to work when I preview (f12) the include file.
| > | When I go to the actual pages (with the DWT and it's menu include) I can't
| > | get the pull downs to work. The main menu items are still hot (have their
| > | hyperlinks active), but the menus don't pull down.
| > |
| > | Is there something special I need to do to get pull down menus that work in
| > | the include page to work in the final pages via DWT?
| > |
| > | Thanks
| > |
| > | Tom
| >
| >
| >
 
T

Thomas A. Rowe

Only for the FP Include must you have the basic HTML tags. for server-side includes (SSI) you would
not have the normal HTML tags.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

tcarp said:
Thanks Stefan

The file got the way it is because I copied/pasted source into an existing
include.

A basic html question: Can anything be placed in the body section? For
example, can the css links, the java scripts, etc. all be placed in the body?
If so, it would seem that for an include (which is only going to bring in
the body) the head section either should be empty or only contain some of the
meta data for documentation purposes. Is that true? Are there guidelines
for what the structure of html should look like for an include?

Thanks

Tom

Stefan B Rusynko said:
That page is invalid html
- you can not have 2 head sections or 2 body tags in any html page

If that's your include page apply both style sheets and the styles plus the JavaScript, along w/
the body onload to all the pages
using the include page


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Stefan
|
| Could someone look at this html and tell me how it needs to be resturctured
| to have the pull down menus work? I have only a beginner's understanding of
| html, however, it appears that something needs to be moved if it's to be part
| of an include.
|
| Thanks
|
| Tom
|
| <HTML>
| <HEAD>
| <link rel="stylesheet" type="text/css" href="style_bNavy.css">
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| </HEAD>
| <BODY>
| <STYLE>
| <!--
| TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
| TR.hdrlogo { background-color:#000080 ;
| background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
| background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
| ;font-size:10px }
| TR.hdrnav { background-color: black ; color:white ;
| font-family:verdana,arial,sans-serif ;font-size:10px ;}
| A.hdr:link { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:visited { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:hover { color:white ; text-decoration:underline ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| -->
| </STYLE>
| <TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
| <TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
| <IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
| width="282" height="113"></A></TR>
| <head>
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| <script type="text/javascript" src="Navy_menu.js"></script>
| <script type="text/javascript">
| menuArrow = new Image(10, 12);
| menuArrow.src = "../images/arrow.gif";
| </script>
| <script language="JavaScript" type="text/JavaScript">
| <!--
| function MM_reloadPage(init) { //reloads the window if Nav4 resized
| if (init==true) with (navigator) {if
| ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
| document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
| onresize=MM_reloadPage; }}
| else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
| location.reload();
| }
| MM_reloadPage(true);
| //-->
| </script>
| </head>
| <body onload="menuInit();">
|
| From here on it's a table row that has the individual menus and the
| sub-menus defined (divs)
|
| "Stefan B Rusynko" wrote:
|
| > Include file only include the content inside of the BODY tags
| > - move all your DHTML scripts inside of the body tags
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I have been experimenting with pull down menus. I stole some html code from
| > | a good site and was able to get the menus to successfully pull down. I have
| > | created an Include for the menu and included it in a DWT (simple one that has
| > | the include at the top in a table cell followed by a few more table rows.)
| > |
| > | I can get the pull down menus to work when I preview (f12) the include file.
| > | When I go to the actual pages (with the DWT and it's menu include) I can't
| > | get the pull downs to work. The main menu items are still hot (have their
| > | hyperlinks active), but the menus don't pull down.
| > |
| > | Is there something special I need to do to get pull down menus that work in
| > | the include page to work in the final pages via DWT?
| > |
| > | Thanks
| > |
| > | Tom
| >
| >
| >
 
T

tcarp

Sorry but that's way beyond my knowledge of html. Can you try again a little
simpler?

Thanks

Tom

Thomas A. Rowe said:
Only for the FP Include must you have the basic HTML tags. for server-side includes (SSI) you would
not have the normal HTML tags.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

tcarp said:
Thanks Stefan

The file got the way it is because I copied/pasted source into an existing
include.

A basic html question: Can anything be placed in the body section? For
example, can the css links, the java scripts, etc. all be placed in the body?
If so, it would seem that for an include (which is only going to bring in
the body) the head section either should be empty or only contain some of the
meta data for documentation purposes. Is that true? Are there guidelines
for what the structure of html should look like for an include?

Thanks

Tom

Stefan B Rusynko said:
That page is invalid html
- you can not have 2 head sections or 2 body tags in any html page

If that's your include page apply both style sheets and the styles plus the JavaScript, along w/
the body onload to all the pages
using the include page


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Stefan
|
| Could someone look at this html and tell me how it needs to be resturctured
| to have the pull down menus work? I have only a beginner's understanding of
| html, however, it appears that something needs to be moved if it's to be part
| of an include.
|
| Thanks
|
| Tom
|
| <HTML>
| <HEAD>
| <link rel="stylesheet" type="text/css" href="style_bNavy.css">
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| </HEAD>
| <BODY>
| <STYLE>
| <!--
| TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
| TR.hdrlogo { background-color:#000080 ;
| background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
| background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
| ;font-size:10px }
| TR.hdrnav { background-color: black ; color:white ;
| font-family:verdana,arial,sans-serif ;font-size:10px ;}
| A.hdr:link { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:visited { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:hover { color:white ; text-decoration:underline ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| -->
| </STYLE>
| <TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
| <TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
| <IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
| width="282" height="113"></A></TR>
| <head>
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| <script type="text/javascript" src="Navy_menu.js"></script>
| <script type="text/javascript">
| menuArrow = new Image(10, 12);
| menuArrow.src = "../images/arrow.gif";
| </script>
| <script language="JavaScript" type="text/JavaScript">
| <!--
| function MM_reloadPage(init) { //reloads the window if Nav4 resized
| if (init==true) with (navigator) {if
| ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
| document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
| onresize=MM_reloadPage; }}
| else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
| location.reload();
| }
| MM_reloadPage(true);
| //-->
| </script>
| </head>
| <body onload="menuInit();">
|
| From here on it's a table row that has the individual menus and the
| sub-menus defined (divs)
|
| "Stefan B Rusynko" wrote:
|
| > Include file only include the content inside of the BODY tags
| > - move all your DHTML scripts inside of the body tags
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I have been experimenting with pull down menus. I stole some html code from
| > | a good site and was able to get the menus to successfully pull down. I have
| > | created an Include for the menu and included it in a DWT (simple one that has
| > | the include at the top in a table cell followed by a few more table rows.)
| > |
| > | I can get the pull down menus to work when I preview (f12) the include file.
| > | When I go to the actual pages (with the DWT and it's menu include) I can't
| > | get the pull downs to work. The main menu items are still hot (have their
| > | hyperlinks active), but the menus don't pull down.
| > |
| > | Is there something special I need to do to get pull down menus that work in
| > | the include page to work in the final pages via DWT?
| > |
| > | Thanks
| > |
| > | Tom
| >
| >
| >
 
T

Thomas A. Rowe

Basic HTML tags: Just create a new page in FP using the File Menu | New Page.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

tcarp said:
Sorry but that's way beyond my knowledge of html. Can you try again a little
simpler?

Thanks

Tom

Thomas A. Rowe said:
Only for the FP Include must you have the basic HTML tags. for server-side includes (SSI) you
would
not have the normal HTML tags.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================

tcarp said:
Thanks Stefan

The file got the way it is because I copied/pasted source into an existing
include.

A basic html question: Can anything be placed in the body section? For
example, can the css links, the java scripts, etc. all be placed in the body?
If so, it would seem that for an include (which is only going to bring in
the body) the head section either should be empty or only contain some of the
meta data for documentation purposes. Is that true? Are there guidelines
for what the structure of html should look like for an include?

Thanks

Tom

:

That page is invalid html
- you can not have 2 head sections or 2 body tags in any html page

If that's your include page apply both style sheets and the styles plus the JavaScript, along
w/
the body onload to all the pages
using the include page


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Thanks Stefan
|
| Could someone look at this html and tell me how it needs to be resturctured
| to have the pull down menus work? I have only a beginner's understanding of
| html, however, it appears that something needs to be moved if it's to be part
| of an include.
|
| Thanks
|
| Tom
|
| <HTML>
| <HEAD>
| <link rel="stylesheet" type="text/css" href="style_bNavy.css">
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| </HEAD>
| <BODY>
| <STYLE>
| <!--
| TABLE.hdr { margin:0px ; padding:0px ; border-style:none ; border-width:0px ;}
| TR.hdrlogo { background-color:#000080 ;
| background-image:url('http://navyrotc.berkeley.edu/includes/lines.gif') ;
| background-repeat:repeat ; color:white ; font-family:verdana,arial,sans-serif
| ;font-size:10px }
| TR.hdrnav { background-color: black ; color:white ;
| font-family:verdana,arial,sans-serif ;font-size:10px ;}
| A.hdr:link { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:visited { color:white ; text-decoration:none ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| A.hdr:hover { color:white ; text-decoration:underline ;
| font-family:verdana,arial,sans-serif ; font-weight:bold ; font-size:10px ;}
| -->
| </STYLE>
| <TABLE cellpadding="0" border="0" cellspacing="0" width="100%">
| <TR class="hdrlogo"><TD><A href="../UGA_meth_approach.htm">
| <IMG src="../images/web_banner.gif" alt="Methods and Approach" border="0"
| width="282" height="113"></A></TR>
| <head>
| <link rel="stylesheet" type="text/css" href="menu_bNavy.css">
| <script type="text/javascript" src="Navy_menu.js"></script>
| <script type="text/javascript">
| menuArrow = new Image(10, 12);
| menuArrow.src = "../images/arrow.gif";
| </script>
| <script language="JavaScript" type="text/JavaScript">
| <!--
| function MM_reloadPage(init) { //reloads the window if Nav4 resized
| if (init==true) with (navigator) {if
| ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
| document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
| onresize=MM_reloadPage; }}
| else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
| location.reload();
| }
| MM_reloadPage(true);
| //-->
| </script>
| </head>
| <body onload="menuInit();">
|
| From here on it's a table row that has the individual menus and the
| sub-menus defined (divs)
|
| "Stefan B Rusynko" wrote:
|
| > Include file only include the content inside of the BODY tags
| > - move all your DHTML scripts inside of the body tags
| >
| > --
| >
| > _____________________________________________
| > SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
| > "Warning - Using the F1 Key will not break anything!" (-;
| > To find the best Newsgroup for FrontPage support see:
| > http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
| > _____________________________________________
| >
| >
| > |I have been experimenting with pull down menus. I stole some html code from
| > | a good site and was able to get the menus to successfully pull down. I have
| > | created an Include for the menu and included it in a DWT (simple one that has
| > | the include at the top in a table cell followed by a few more table rows.)
| > |
| > | I can get the pull down menus to work when I preview (f12) the include file.
| > | When I go to the actual pages (with the DWT and it's menu include) I can't
| > | get the pull downs to work. The main menu items are still hot (have their
| > | hyperlinks active), but the menus don't pull down.
| > |
| > | Is there something special I need to do to get pull down menus that work in
| > | the include page to work in the final pages via DWT?
| > |
| > | Thanks
| > |
| > | Tom
| >
| >
| >
 
T

Trevor L.

tcarp said:
Thanks Stefan

The file got the way it is because I copied/pasted source into an
existing include.

A basic html question: Can anything be placed in the body section?
For example, can the css links, the java scripts, etc. all be placed
in the body? If so, it would seem that for an include (which is only
going to bring in the body) the head section either should be empty
or only contain some of the meta data for documentation purposes. Is
that true? Are there guidelines for what the structure of html
should look like for an include?

Thanks

I'll give it a go

A HTML page should look like this. Specific examples are from my site

<html>
<head>
<title>Site Map</title>
<meta name="Author" content="Trevor Lawrence"/>
<meta http-equiv="Content-Language" content="en-au"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<meta name="description"
content="Site Map of all pages and links"/>
<meta name="robots" content="index,follow"/>

<link rel="shortcut icon" href="images/display/favicon.ico"
type="image/x-icon"/>

<style type="text/css">
/* your styles go in here */
</style>

<script type="text/javascript">
/* javascript goes in here */
</script>

</head>
<body>
<!-- al HTML code goes in here -->
</body>
</html>

For an include, I understand that only the body is copied - i.e., everything
between <body> and </body>. So only minimal stuff needs to go in the head
section.

Does that help ?
 
T

tcarp

Trevor, thanks for taking the time to look at the example. I'll give your
structure a test later today. Right now I'm a little gun shy since some
changes I made completely removed the pull down menu action. That's what
happens when you let a novice loose on html code.

The structure I have in mind is an include, which contains the "logo" and
menu bar for the top of the pages. For purposes here I will call the include
file "logo_top". "Logo_top", which is the where the code I posted came from,
creates a two row table with the logo in the first row and the menus, with
their sub-menus, in the second. It also includes the menu intelligence that
makes them pull downs.

Logo_top is "included" in a DWT which is the basis for most of the pages.
DWT is nothing but a table (first two rows are one column and the rest is
three columns) and Logo_top is included in the first row's cell.

Since the warning is that the include action only pulls in the body it makes
me wonder whether to include style sheets and java code in the head section
of Logo_top. If they don't go there, where would they go?

I'll post back when I get a chance to study your example. What I'm
ultimately looking for are some practical coding rules for includes into DWT.

Thanks again

Tom
 
S

Stefan B Rusynko

Don't use an include page in the DWT
- just apply your DHTML to the DWT and it will correctly propagate to all pages using the DWT template

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| Trevor, thanks for taking the time to look at the example. I'll give your
| structure a test later today. Right now I'm a little gun shy since some
| changes I made completely removed the pull down menu action. That's what
| happens when you let a novice loose on html code.
|
| The structure I have in mind is an include, which contains the "logo" and
| menu bar for the top of the pages. For purposes here I will call the include
| file "logo_top". "Logo_top", which is the where the code I posted came from,
| creates a two row table with the logo in the first row and the menus, with
| their sub-menus, in the second. It also includes the menu intelligence that
| makes them pull downs.
|
| Logo_top is "included" in a DWT which is the basis for most of the pages.
| DWT is nothing but a table (first two rows are one column and the rest is
| three columns) and Logo_top is included in the first row's cell.
|
| Since the warning is that the include action only pulls in the body it makes
| me wonder whether to include style sheets and java code in the head section
| of Logo_top. If they don't go there, where would they go?
|
| I'll post back when I get a chance to study your example. What I'm
| ultimately looking for are some practical coding rules for includes into DWT.
|
| Thanks again
|
| Tom
|
| "Trevor L." wrote:
|
| > tcarp wrote:
| > > Thanks Stefan
| > >
| > > The file got the way it is because I copied/pasted source into an
| > > existing include.
| > >
| > > A basic html question: Can anything be placed in the body section?
| > > For example, can the css links, the java scripts, etc. all be placed
| > > in the body? If so, it would seem that for an include (which is only
| > > going to bring in the body) the head section either should be empty
| > > or only contain some of the meta data for documentation purposes. Is
| > > that true? Are there guidelines for what the structure of html
| > > should look like for an include?
| > >
| > > Thanks
| > >
| >
| > I'll give it a go
| >
| > A HTML page should look like this. Specific examples are from my site
| >
| > <html>
| > <head>
| > <title>Site Map</title>
| > <meta name="Author" content="Trevor Lawrence"/>
| > <meta http-equiv="Content-Language" content="en-au"/>
| > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
| >
| > <meta name="description"
| > content="Site Map of all pages and links"/>
| > <meta name="robots" content="index,follow"/>
| >
| > <link rel="shortcut icon" href="images/display/favicon.ico"
| > type="image/x-icon"/>
| >
| > <style type="text/css">
| > /* your styles go in here */
| > </style>
| >
| > <script type="text/javascript">
| > /* javascript goes in here */
| > </script>
| >
| > </head>
| > <body>
| > <!-- al HTML code goes in here -->
| > </body>
| > </html>
| >
| > For an include, I understand that only the body is copied - i.e., everything
| > between <body> and </body>. So only minimal stuff needs to go in the head
| > section.
| >
| > Does that help ?
| > --
| > Cheers,
| > Trevor L.
| > Website: http://tandcl.homemail.com.au
| >
| >
| >
 
R

Ronx

Add the styles and JavaScript to the <head> section of the DWT.
Better still, use external JavaScript and CSS documents, linked to in
the DWT
with lines similar to:
<script type="text/javascript" src="menu.js"></script>
<link rel="stylesheet" type="text/css" href="styles.css">
in the DWT's <head> section.
 

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