Copy link to clipboard
Copied
I have designed and produced a 15-page website - all pages but one (the homepage) using the same template. I'm not sure when, but partway through creating the site, something went wrong - when I press the "Preview/Debug in Browser" button on any page except the homepage, the page that comes up has no content on it. However, the blank page isn't completely empty as it does show the background colour that I set in the Page Properties and the scrollbar, which I also customised the colour of. I tested this aspect of the problem by changing the background colour of the template and then previewing one of the pages: the background colour change did show on the in-browser page.
I am a complete beginner - this is my first experience with Dreamweaver as I have to use it for my ICT coursework. I am working with Macromedia Dreamweaver 8, and I'm not using any server technology for this site (as instructed by my teacher). Please advise
cryopnea wrote
I replied to Jon Fritz II with the code
I see content if I view in DW CS4 which is a later version than DW 8 so your version should be showing you content.
What I can see in your code is a comment tag <!-- after the opening style tag <style type="text/css"> BUT you have no closing comment tag --> before the end of the closing </style> tag. The closing comment tag is mixed in with your css selectors (see below) it should NOT be there.
-->
html {
scrollbar-highlight-color:#fd6b44;
scroll
...Copy link to clipboard
Copied
Can you paste the code to one of these pages in the forum, along with any css you may have used?
Copy link to clipboard
Copied
I replied to Jon Fritz II with the code
Copy link to clipboard
Copied
cryopnea wrote
I replied to Jon Fritz II with the code
I see content if I view in DW CS4 which is a later version than DW 8 so your version should be showing you content.
What I can see in your code is a comment tag <!-- after the opening style tag <style type="text/css"> BUT you have no closing comment tag --> before the end of the closing </style> tag. The closing comment tag is mixed in with your css selectors (see below) it should NOT be there.
-->
html {
scrollbar-highlight-color:#fd6b44;
scrollbar-shadow-color:#e54318;
scrollbar-track-color:#efefef;
scrollbar-face-color:#fc4a1a;
scrollbar-arrow-color:#fc4a1a;
scrollbar-darkshadow-color:#e54318;
scrollbar-3dlight-color:#fd9876;
scrollbar-width:5px;}
.block_on {
display:block;
visibility:visible;
}
.block_off {
display:none;
visibility:hidden;
list-style-type:none;
width:0px;
}
</style>
Also same again you have an opening comment tag after the opening <script> tag in your code but no closing comment tag --> before your closing </script> tag
<script src="http://code.jquery.com/jquery-1.8.2.js" type="text/javascript">
<!--
You actually don't need any of these comment tags at all but if you do use them you need to make sure they are balanced i.e ., have an opening and closing tag pair.
That has been know to cause a page to choke and display nothing. Can you either remove all those comment tags or pair them up and see if that solves the problem.
Copy link to clipboard
Copied
Thanks for the quick reply! I didn't even notice I had left them there. I just removed them, and it works great
Thanks for the help!
Copy link to clipboard
Copied
Without seeing the code it's all guesswork.
I'm guessing you have an unclosed <title> tagset (or other major structural defect) and the browser is putting the entire code into the title bar.
Run your page through the validation tool under File > Validate > Validate Current Document (W3C) or go to http://validator.w3.org/nu to get a listing of any html errors you have. Repairing those errors will likely bring the site back.
Copy link to clipboard
Copied
Is there a way I can link the code to you, or do I just copy & paste it here?
This is probably impractical, so sorry for the inconvenience, but here's the code for the template:
<!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=iso-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
background-color: #efefef;
}
a:link {
color: #fc4a1a;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #021320;
}
.buttonstyle {
font-family: "Courier New", Courier, monospace;
color: #Fc4a1a;
background-color: efefef;
border-top-style: double;
border-right-style: double;
border-bottom-style: double;
border-left-style: double;
border-top-color: #021320;
border-right-color: #021320;
border-bottom-color: #021320;
border-left-color: #021320;
border-radius: 2px;
border: 1px;
}
a:hover {
text-decoration: underline;
color: #fc4a1a;
}
a:active {
text-decoration: none;
color: #021320;
}
h1,h2,h3,h4,h5,h6 {
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.header {
background: #fc4a1a;
width: 100%
}
.style1 {color: #efefef}
.style2 {
font-size: xx-large;
color: #efefef;
font-family: Geneva, Arial, Helvetica, sans-serif;
}
.style3 {
font-size: xx-large;
text-align: inherit;
}
.footer {
background:#062f4f;
color:#efefef;}
.style4 {color: #021320; background: #fc4a1a; font-size: xx-large;}
.style6 {font-size: xx-large; color: #021320; font-family: Geneva, Arial, Helvetica, sans-serif; }
.signintext {
font-size: xx-large;
color: #021320;
font-family: Geneva, Arial, Helvetica, sans-serif;
border:#021320 1px double;
background: #efefef;
}
-->
html {
scrollbar-highlight-color:#fd6b44;
scrollbar-shadow-color:#e54318;
scrollbar-track-color:#efefef;
scrollbar-face-color:#fc4a1a;
scrollbar-arrow-color:#fc4a1a;
scrollbar-darkshadow-color:#e54318;
scrollbar-3dlight-color:#fd9876;
scrollbar-width:5px;}
.block_on {
display:block;
visibility:visible;
}
.block_off {
display:none;
visibility:hidden;
list-style-type:none;
width:0px;
}
</style>
<script src="http://code.jquery.com/jquery-1.8.2.js" 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.indexOf("#")!=0){ d.MM_p
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_nbGroup(event, grpName) { //v6.0
var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr; img.src = img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args)) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
</script>
</head>
<body onload="MM_preloadImages('../Navbar/BLOGDOWN.png','../Navbar/BLOGOVER.png','../Navbar/PHONESDOWN.png','../Navbar/PHONESOVER.png','../Navbar/FAQDOWN.png','../Navbar/FAQOVER.png','../Navbar/CONTACTDOWN.png','../Navbar/CONTACTOVER.png','../Navbar/INFODOWN.png','../Navbar/INFOOVER.png','../Navbar/REVIEWSDOWN.png','../Navbar/REVIEWSOVER.png','../Navbar/ACCESSORIESDOWN.png','../Navbar/ACCESSORIESOVER.png','../Navbar/SERVICESDOWN.png','../Navbar/SERVICESOVER.png')">
<div class="header">
<p align="left"> </p>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td width="154" height="136"><a href="../MWS_home.html"><img src="../MWSLOGOSMALL.png" alt="MWS logo" width="140" height="140" border="0" /></a>
<label></label></td>
<td width="777"><span class="style2">MobileWorldStation</span></td>
<td width="681" valign="top"><label>
<form id="form1" name="form1" method="get" action="MWS_search.html">
<div align="right"></div>
</form>
<div align="right" class="style4 style3">
<script type="text/javascript">
function toggleMe(a){
var e=document.getElementById(a);
var i = document.getElementById(a + '_image');
if(!e)return true;
if(e.style.display=="none"){
e.style.display="block"
} else {
e.style.display="none"
}
return false;
}
</script>
<p><!-- TemplateBeginEditable name="signintext" --><a class="signintext" style="cursor:pointer;" onclick="return toggleMe('para1')" color="#021320">sign in</a><!-- TemplateEndEditable --></p>
<div id="para1" style="display:none;border:solid;background:#efefef;text-align:center;">
<input name="UN" type="text" value="Name" onfocus="if (this.value=='Name') this.value='';"/>
<input name="PW" type="password" value="Password" onfocus="if (this.value=='Password') this.value='';"/>
<input name="submitsignin" type="button" value="sign in" class="buttonstyle"/>
</div>
</div>
</label></td>
</tr>
</table>
<table width="102%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','ACCESSORIES','../Navbar/ACCESSORIESDOWN.png',1)" onmouseover="MM_nbGroup('over','ACCESSORIES','../Navbar/ACCESSORIESOVER.png','../Navbar/ACCESSORIESDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/ACCESSORIESUP.png" alt="Go to Accessories" name="ACCESSORIES" border="0" id="ACCESSORIES" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','SERVICES','../Navbar/SERVICESDOWN.png',1)" onmouseover="MM_nbGroup('over','SERVICES','../Navbar/SERVICESOVER.png','../Navbar/SERVICESDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/SERVICESUP.png" alt="Go to Services" name="SERVICES" border="0" id="SERVICES" onload="" /></a></td>
<td><a href="javascript:;" target="_top" onclick="MM_nbGroup('down','group1','FAQ','../Navbar/FAQDOWN.png',1)" onmouseover="MM_nbGroup('over','FAQ','../Navbar/FAQOVER.png','../Navbar/FAQDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/FAQUP.png" alt="Go to Frequently Asked Questions" name="FAQ" border="0" id="FAQ" onload="" /></a></td>
<td><a href="../MWS_contact.html" target="_top" onclick="MM_nbGroup('down','group1','CONTACT','../Navbar/CONTACTDOWN.png',1)" onmouseover="MM_nbGroup('over','CONTACT','../Navbar/CONTACTOVER.png','../Navbar/CONTACTDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/CONTACTUP.png" alt="Go to Contact us" name="CONTACT" border="0" id="CONTACT" onload="" /></a></td>
</tr>
<tr>
<td><a href="../MWS_blog.html" target="_top" onclick="MM_nbGroup('down','group1','BLOG','../Navbar/BLOGDOWN.png',1)" onmouseover="MM_nbGroup('over','BLOG','../Navbar/BLOGOVER.png','../Navbar/BLOGDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/BLOGUP.png" alt="Go to Blog" name="BLOG" border="0" id="BLOG" onload="" /></a></td>
<td><a href="../MWS_reviews.html" target="_top" onClick="MM_nbGroup('down','group1','REVIEWS','../Navbar/REVIEWSDOWN.png',1)" onMouseOver="MM_nbGroup('over','REVIEWS','../Navbar/REVIEWSOVER.png','../Navbar/REVIEWSDOWN.png',1)" onMouseOut="MM_nbGroup('out')"><img name="REVIEWS" src="../Navbar/REVIEWSUP.png" border="0" alt="Go to Reviews" onLoad="" /></a></td>
<td><a href="../MWS_info.html" target="_top" onClick="MM_nbGroup('down','group1','INFO','../Navbar/INFODOWN.png',1)" onMouseOver="MM_nbGroup('over','INFO','../Navbar/INFOOVER.png','../Navbar/INFODOWN.png',1)" onMouseOut="MM_nbGroup('out')"><img src="../Navbar/INFOUP.png" alt="Go to Info" name="INFO" border="0" onLoad="" /></a></td>
<td><p><a href="../MWS_phones.html" target="_top" onclick="MM_nbGroup('down','group1','PHONES','../Navbar/PHONESDOWN.png',1)" onmouseover="MM_nbGroup('over','PHONES','../Navbar/PHONESOVER.png','../Navbar/PHONESDOWN.png',1)" onmouseout="MM_nbGroup('out')"><img src="../Navbar/PHONESUP.png" alt="Go to Phones" name="PHONES" border="0" id="PHONES" onload="" /></a></p> </td>
</tr>
</table>
<p align="left"> </p>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="504" height="76" valign="top"><span class="style3"><!-- TemplateBeginEditable name="PageName" -->PageName—<!-- TemplateEndEditable --></span></td>
<td width="502"> </td>
</tr>
</table>
<!-- TemplateBeginEditable name="Content1" -->Content1<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="Footer" --><div class="footer">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#062f4f">
<tr>
<td width="213"><p><a href="MWS_info.html">INFO</a></p>
<p><a href="MWS_blog.html">BLOG</a></p>
<p><a href="MWS_faq.html">FAQ</a></p>
<p><a href="MWS_contactus.html">CONTACT US </a></p></td>
<td width="645">Footer content, copyrights, ackowledgements, etc. </td>
<td width="165"><a href="MWS_basket.html"><img src="../z.basket.png" alt="Go to Basket" width="188" height="169" border="0" align="middle" /></a></td>
</tr>
</table>
</div><!-- TemplateEndEditable -->
</body>
</html>
Find more inspiration, events, and resources on the new Adobe Community
Explore Now