5 Replies Latest reply: Aug 15, 2010 4:50 PM by MurraySummers RSS

    Include Tag

    jr4292 Community Member

      When I use the include tag (<!--#include file="top_nav.html -->) it works on the internet, but when I go to edit the rest of the page in the design view, everything below this tage disappears. Any solutions?

        • 1. Re: Include Tag
          SnakEyez02 CommunityMVP

          Missing a " after your included file.  It might be treating it as a comment instead of include. 

          • 2. Re: Include Tag
            jr4292 Community Member

            actually I used the " at the ends. Just didn't type it on this thread...

            • 3. Re: Include Tag
              SnakEyez02 CommunityMVP

              Then you need to post a link to the page in question or the rest of the code from the page.  Hard to tell without it.

              • 4. Re: Include Tag
                jr4292 Community Member

                <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

                <html xmlns="http://www.w3.org/1999/xhtml">

                <head>

                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

                <title>St. Lucian's Residence Inc.</title>

                <style type="text/css">

                <!--

                * {

                margin: 0px;

                padding: 0px;

                }

                -->

                </style>

                <link href="layout.css" rel="stylesheet" type="text/css" />

                <style type="text/css">

                <!--

                 

                #body {

                height: 340px;

                width: 780px;

                text-align: center;

                background-image: url(Images/body-bg.png);

                background-color: #F4F1ED;

                padding-top: 20px;

                padding-right: 10px;

                padding-bottom: 10px;

                padding-left: 10px;

                }

                body,td,th {

                font-family: Tahoma, Geneva, sans-serif;

                font-size: 12px;

                color: #0000B3;

                }

                body {

                background-color: #FFE217;

                background-image: url(Images/bg.png);

                background-repeat: repeat-x;

                }

                -->

                </style>

                <script type="text/javascript">

                <!--

                function MM_preloadImages() { //v3.0

                  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

                    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

                    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

                }

                //-->

                </script>

                </head>

                 

                <body onload="MM_preloadImages('Images/leftNav-hover_fundraiser.png','Images/leftNav-hover_appl y.png','Images/leftNav-hover_directions.png','Images/about-us_hover.png','Images/services_ hover.png','Images/giving-opportunities_hover.png','Images/directions_hover.png','Images/c ontact_hover.png')">

                <div class="topNav" id="topNav"><a href="index.html">Home</a> | Site Map | Contact | 860-223-2123</div>

                <div id="shadow">

                  <div id="wrapper">

                    <div id="header"><img src="Images/header.png" width="800" height="100" /></div>

                    <div>

                     <!--#include virtual="top_nav.html" -->

                    </div>

                    <div id="leftNav">

                     <!--#include virtual="left_nav.html" -->

                    </div>

                    <div class="shadow" id="body">

                      <p class="reg">St Lucian's is a non-profit home for seniors, providing them with basic living needs.    </p>

                      <p class="reg"> </p>

                      <p class="reg">All applicants for the residence must be 65 years of age, </p>

                      <p class="reg">independent, ambulatory and capable of self-care. An</p>

                      <p class="reg">application and an interview are required prior to admission.</p>

                      <p class="heading"><img src="http://schlissellaw.files.wordpress.com/2010/03/nursing-home.jpg" width="134" height="95" /></p>

                      <p class="reg">St. Lucian's provides a refreshing, </p>

                      <p class="reg">residential community environment </p>

                      <p class="reg">for the elderly to relax, socialize and</p>

                      <p class="reg"> enjoy their retirement years.</p>

                      <p class="heading"> </p>

                      <p class="heading"></p>

                    </div>

                    <div>

                      <!--#include virtual="footer.html" -->

                    </div>

                  </div>

                </div>

                </body>

                </html>

                The pages is saintlucians.org

                • 5. Re: Include Tag
                  MurraySummers CommunityMVP

                  I'm betting that your include files contain <html>, <head>, or <body> tags.  They cannot if you want to work in Dreamweaver.  The rule is that the code of the final, assembled page must not contain more than one pair of each of those tags.