PDA

View Full Version : Code grayed out


hmobley
02-16-2008, 01:02 AM
I ftd' a site back into dreamweaver8 from the host server, with all the folders, etrc, however all the code is grayed out, like its locked. what can be done, short of getting the actual files on a disc

mangofreak
02-16-2008, 03:46 PM
It would make more sense to post the code than to just say it's greyed out. May be is part of a template, maybe you are missing some closing tags...could be anything.

hmobley
02-16-2008, 04:41 PM
don't know, because the top of the code page down to title is hot, rest of code locked. I am just curious, will probably be able to get folders on disc. I have migrated back thru ftp before, but never seen this.

d a v e
02-16-2008, 04:59 PM
do you see any template code in there? (editable regions and similar?)

mangofreak
02-16-2008, 05:07 PM
Post the code. :)

hmobley
02-16-2008, 05:09 PM
I just opened file, index.html is ok but enclosed page like contact,etc is grayed out, its ok here tho and If I open in win32 its ok but if i copy paste back into dw8 on a new page its still grayed out,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>America's Mortgage Monitors</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --><script language="JavaScript" 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>
<link href="AmMorMon.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style14 {font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 16px; color: #333333; }
.style20 {color: #444444}
.style21 {font-family: Arial, Helvetica, sans-serif}
.style26 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
color: #666666;
}
.style27 {color: #FFFFFF}
.style34 {font-size: 12px; font-weight: bold; color: #666666; }
.style35 {color: #333333}
-->
</style>
</head>

<body>
<p align="center"><img src="image/topbar.gif" width="728" height="126" border="0" usemap="#MapMap">
<map name="MapMap"><area shape="rect" coords="10,90,63,111" href="index.htm"><area shape="rect" coords="73,91,145,111" href="ourservice.htm"><area shape="rect" coords="159,91,280,112" href="calculator.htm"><area shape="rect" coords="363,91,436,111" href="savemoney.htm"><area shape="rect" coords="453,90,499,113" href="terms.htm"><area shape="rect" coords="511,91,575,111" href="glossary.htm"><area shape="rect" coords="584,91,650,111" href="about.htm"><area shape="rect" coords="658,91,715,111" href="contact.htm"><area shape="rect" coords="292,92,358,112" href="signup.htm">
<area shape="rect" coords="10,90,63,111" href="#index.htm">
<area shape="rect" coords="73,91,145,111" href="#ourservice.htm">
<area shape="rect" coords="159,91,280,112" href="#calculator.htm">
<area shape="rect" coords="363,91,436,111" href="#savemoney.htm">
<area shape="rect" coords="453,90,499,113" href="#terms.htm">
<area shape="rect" coords="511,91,575,111" href="#glossary.htm">
<area shape="rect" coords="584,91,650,111" href="#about.htm">
<area shape="rect" coords="658,91,715,111" href="#contact.htm">
<area shape="rect" coords="292,92,358,112" href="#signup.htm">
</map>
<span class="style14"><span class="style20"><span class="style21"><span class="style26"><span class="style27">.</span></span></span></span></span></p>
<map name="Map">
<area shape="rect" coords="10,90,63,111" href="#index.htm">
<area shape="rect" coords="73,91,145,111" href="#ourservice.htm">
<area shape="rect" coords="159,91,280,112" href="#calculator.htm">
<area shape="rect" coords="363,91,436,111" href="#savemoney.htm">
<area shape="rect" coords="453,90,499,113" href="#terms.htm">
<area shape="rect" coords="511,91,575,111" href="#glossary.htm">
<area shape="rect" coords="584,91,650,111" href="#about.htm">
<area shape="rect" coords="658,91,715,111" href="#contact.htm">
<area shape="rect" coords="292,92,358,112" href="#signup.htm">
</map>
<table width="714" height="241" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="358" height="33" align="center" valign="middle"><div align="left"><span class="style14"><span class="style20">About Us</span></span></div></td>
<td width="356" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td height="207" align="center" valign="middle"><div align="left"><p class="style21"><span class="style34"> AMM is not a lender or mortgage company therefore we do not process loans, work on commission, endorse, advertise, or accept solicitation from any part of that sector of the industry! </span></p>
<p class="style26"><span class="style35">Call AMM now at (866) 363-0500 and our Real Estate Professionals will answer all your questions and help you become more knowledgeable about the loan business.</span> We have created a service, not unlike your tax preparer, to help you muddle through the confusion. </p>
<p class="style26">We are here strictly to provide you with the information to SAVE YOU MONEY or the service is free of charge! Guaranteed!!</p>
</div></td>
<td align="center" valign="middle"><div align="right"><img src="image/about.jpg" width="314" height="205" align="middle"></div></td>
</tr>
</table>
<br>
<br>
<div align="center"><img src="image/bottombar.jpg" width="728" height="57" border="0" usemap="#MapMapMap">
<map name="MapMapMap">
<area shape="rect" coords="4,7,68,36" href="index.htm">
<area shape="rect" coords="71,8,149,35" href="ourservice.htm">
<area shape="rect" coords="158,11,285,38" href="calculator.htm">
<area shape="rect" coords="291,12,357,36" href="signup.htm">
<area shape="rect" coords="365,12,448,36" href="savemoney.htm">
<area shape="rect" coords="451,9,506,37" href="terms.htm">
<area shape="rect" coords="510,9,577,34" href="glossary.htm">
<area shape="rect" coords="582,13,655,35" href="about.htm">
<area shape="rect" coords="657,11,719,35" href="contact.htm">
</map>
</div>
<!-- InstanceEnd -->

hmobley
02-16-2008, 05:11 PM
I see the template code
<html><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>

hmobley
02-16-2008, 05:17 PM
heres the index page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>America' s Mortgage Monitors</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}

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];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>

<body onLoad="MM_preloadImages('image/indexpicture1rollover.gif')">
<div align="center">
<p><img src="image/topbar.gif" width="728" height="126" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="10,90,63,111" href="index.htm">
<area shape="rect" coords="73,91,145,111" href="ourservice.htm">
<area shape="rect" coords="159,91,280,112" href="calculator.htm">
<area shape="rect" coords="363,91,436,111" href="savemoney.htm">
<area shape="rect" coords="453,90,499,113" href="terms.htm">
<area shape="rect" coords="511,91,575,111" href="signup.htm">
<area shape="rect" coords="584,91,650,111" href="about.htm">
<area shape="rect" coords="658,91,715,111" href="contact.htm">
<area shape="rect" coords="292,92,358,112" href="signup.htm">
</map>
<a href="javascript:;" onMouseOver="MM_swapImage('Image1','','image/indexpicture1rollover.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="image/indexpicture1.gif" name="Image1" width="728" height="147" border="0" usemap="#Map3" id="Image1" onClick="MM_openBrWindow('callus.htm','','scrollbars=yes,wi dth=460,height=268')"></a>
<map name="Map3">
<area shape="rect" coords="18,13,485,135" href="#">
</map>
<br>
<img src="image/indexpicture2.jpg" width="717" height="387" border="0" usemap="#Map2">
<map name="Map2">
<area shape="rect" coords="156,273,344,378" href="about.htm">
<area shape="rect" coords="512,268,702,379" href="signup.htm">
<area shape="rect" coords="510,141,703,251" href="glossary.htm">
<area shape="rect" coords="159,142,336,249" href="savemoney.htm">
<area shape="rect" coords="152,18,346,117" href="ourservice.htm">
<area shape="rect" coords="512,13,704,119" href="calculator.htm">
</map>
<img src="image/bottombar.jpg" width="728" height="57" border="0" usemap="#MapMap">
<map name="MapMap"><area shape="rect" coords="4,7,68,36" href="index.htm"><area shape="rect" coords="71,8,149,35" href="ourservice.htm"><area shape="rect" coords="158,11,285,38" href="calculator.htm"><area shape="rect" coords="291,12,357,36" href="signup.htm"><area shape="rect" coords="365,12,448,36" href="savemoney.htm"><area shape="rect" coords="451,9,506,37" href="terms.htm"><area shape="rect" coords="510,9,577,34" href="glossary.htm"><area shape="rect" coords="582,13,655,35" href="about.htm"><area shape="rect" coords="657,11,719,35" href="contact.htm">
<area shape="rect" coords="10,90,63,111" href="#index.htm">
<area shape="rect" coords="73,91,145,111" href="#ourservice.htm">
<area shape="rect" coords="159,91,280,112" href="#calculator.htm">
<area shape="rect" coords="363,91,436,111" href="#savemoney.htm">
<area shape="rect" coords="453,90,499,113" href="#terms.htm">
<area shape="rect" coords="511,91,575,111" href="#glossary.htm">
<area shape="rect" coords="584,91,650,111" href="#about.htm">
<area shape="rect" coords="658,91,715,111" href="#contact.htm">
<area shape="rect" coords="292,92,358,112" href="#signup.htm">
</map>
</p>
</div>
</body>
</html>

mangofreak
02-16-2008, 05:22 PM
I see that your page is a bunch of images, image maps. Do you have the images in the rigt place? are your paths to the images correct?????

Check that out first.

hmobley
02-17-2008, 04:37 AM
all I did was to ftp entire site backwards into dreamweaver.

gmcrone
02-17-2008, 11:35 PM
Because all your pages except the index are template based pages (main.dwt),
you will not be able to edit them directly, that is why the code is "greyed out".
You need the template page "main.dwt" and then you make your changes to it
and once you save it DW will ask you if you want to update all the other pages.

If you don't have the main.dwt, you can go thru all the other pages manually and remove all the template instances, not a lot of fun and totally defeats the purpose of using templates.

Mike...

hmobley
02-18-2008, 12:53 AM
thanks, its something I am doing as a favor, someone else built site and I agreed to make a couple changes.

d a v e
02-18-2008, 06:11 AM
is ALL the code greyed out? aren't there any editable regions??

hmobley
02-18-2008, 06:20 AM
only this, rest is locked

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>America's Mortgage Monitors</title>

mangofreak
02-18-2008, 08:54 AM
Here is an idea. If the site is not too big, you can actually detach the pages from the templates and edit them as independent pages. After you have completed the editing portion you can copy and paste the changes to the template.

Does it makes sense?

d a v e
02-18-2008, 10:39 AM
can't you get hold of the original template?