Hej Alle!
Jeg er ret træt af at ha' stirret mig blind på et problem, og
håber der er nogle friske øjne, der lige kan pege på fejlen..
Jeg har lavet en template (Dreamweaver), som jeg bruger på mit
site.. Det fungerer fint, indtil jeg forsøger at putte php ind i
mine editerbare felter på undersiderne.. så får jeg at vide at:
"Making this change would require changing code that is locked by
a template or translator. The change will be discarded."
Dvs. DW tror jeg vil ændre udenfor området, men det kan jeg ikke
forstå.. Det er garanteret bare et eller andet tag, der ikke er
lavet ordentligt, men jeg har set mig blind på det.. *suk*
Her er min skabelon:
------------------------------------------CODE-------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<?php
include("db.php");
// Get a connection to the database
$cxn = @ConnectToDb($dbServer, $dbUser, $dbPass, $dbName);
?>
<head>
<!--TemplateInfo codeOutsideHTMLIsLocked="false" -->
<!-- TemplateBeginEditable name="doctitle" -->
<title>Path to Art</title>
<!-- TemplateEndEditable -->
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<link href="../pathtoart.css" rel="stylesheet" type="text/css">
<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];}}
}
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];}
}
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);
function MM_showHideLayers() { //v6.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if
((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
<!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
</head>
<body bgcolor="E0E4E0" leftmargin="0" topmargin="0"
rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"
onLoad="MM_preloadImages('../gfx/menu/menu_04.jpg','../gfx/menu/m
enu_06.jpg')">
<table height=100% border="0" align="center" cellpadding="0"
cellspacing="0"><tr><td>
<table width="900" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td><table width="900" border="1" align="center"
cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td bordercolor="#000000" class="pathtoart"><table
width="900" border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td height="58" colspan="6"><div id="artists"
style="position:relative; left:176px; top:71px; width:141px;
z-index:1; visibility: hidden;">
<a href="artist.php?ArtistID=1"
onMouseOver="MM_showHideLayers('artists','','show');MM_swapImage(
'Image2','','../gfx/menu/menu_04.jpg','Image3','','../gfx/menu/me
nu_06.jpg',1)"
onMouseOut="MM_showHideLayers('artists','','hide');MM_swapImgRest
ore()"><img src="../gfx/menu/menu-kirstine.jpg" width="170"
height="12" border="0"></a><a href="javascript:;"
onMouseOver="MM_showHideLayers('artists','','show');MM_swapImage(
'Image2','','../gfx/menu/menu_04.jpg','Image3','','../gfx/menu/me
nu_06.jpg',1)"
onMouseOut="MM_showHideLayers('artists','','hide');MM_swapImgRest
ore()"><img src="../gfx/menu/menu-louise.jpg" width="170"
height="12" border="0"></a><a href="javascript:;"
onMouseOver="MM_showHideLayers('artists','','show');MM_swapImage(
'Image2','','../gfx/menu/menu_04.jpg','Image3','','../gfx/menu/me
nu_06.jpg',1)"
onMouseOut="MM_showHideLayers('artists','','hide');MM_swapImgRest
ore()"><img src="../gfx/menu/menu-malene.jpg" width="170"
height="12" border="0"></a><a href="javascript:;"
onMouseOver="MM_showHideLayers('artists','','show');MM_swapImage(
'Image2','','../gfx/menu/menu_04.jpg','Image3','','../gfx/menu/me
nu_06.jpg',1)"
onMouseOut="MM_showHideLayers('artists','','hide');MM_swapImgRest
ore()"><img src="../gfx/menu/menu-ml.jpg" width="170" height="12"
border="0"></a></div></td>
</tr>
<tr>
<td colspan="6">
<table id="Table_01" width="902" height="13"
border="0" cellpadding="0" cellspacing="0">
<tr>
<td> <img
src="../gfx/menu/menu_01.jpg" width="110" height="13"
alt=""></td>
<td> <img
src="../gfx/menu/menu_01.jpg" alt="" name="Image1" width="4"
height="13" id="Image1"></td>
<td> <a href="index.php"
onMouseOver="MM_swapImage('Image1','','../gfx/menu/menu_02.jpg','
Image2','','../gfx/menu/menu_04.jpg',1)"
onMouseOut="MM_swapImgRestore()"><img
src="../gfx/menu/menu_03.jpg" alt="" width="60" height="13"
border="0"></a></td>
<td> <img
src="../gfx/menu/menu_01.jpg" alt="" name="Image2" width="4"
height="13" id="Image2"></td>
<td> <a href="artist.php"
onMouseOver="MM_swapImage('Image2','','../gfx/menu/menu_04.jpg','
Image3','','../gfx/menu/menu_06.jpg',1);MM_showHideLayers('artist
s','','show')"
onMouseOut="MM_swapImgRestore();MM_showHideLayers('artists','','h
ide')"><img src="../gfx/menu/menu_05.jpg" alt="" width="78"
height="13" border="0"></a></td>
<td> <img
src="../gfx/menu/menu_01.jpg" alt="" name="Image3" width="3"
height="13" id="Image3"></td>
<td> <a href="contact.php"
onMouseOver="MM_swapImage('Image3','','../gfx/menu/menu_06.jpg','
Image4','','../gfx/menu/menu_08.jpg',1)"
onMouseOut="MM_swapImgRestore()"><img
src="../gfx/menu/menu_07.jpg" alt="" width="86" height="13"
border="0"></a></td>
<td> <img
src="../gfx/menu/menu_01.jpg" alt="" name="Image4" width="3"
height="13" id="Image4"></td>
<td> <img
src="../gfx/menu/menu_09.jpg" width="554" height="13"
alt=""></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="6" height="21"><img src="../gfx/blank.gif"
width="900" height="21"></td>
</tr>
<tr>
<td width="12" valign="top"
class="text_area"><!-- TemplateBeginEditable name="artist" -->her
skal være php?<!--
TemplateEndEditable --></td>
<td width="26" class="text_area"><img
src="../gfx/blank.gif" width="26" height="50"></td>
<td width="364" valign="top"
class="text_area"><!-- TemplateBeginEditable name="content"
--><span class="Headlines">Wierd
Sculpture</span> OPDATER<br>
<!-- TemplateEndEditable --><br>
</td>
<td width="27" valign="top" class="text_area"><img
src="../gfx/blank.gif" width="26" height="50"></td>
<td width="4"><img src="../gfx/blank.gif" width="3"
height="351"></td>
<td width="467" valign="top"><!--
TemplateBeginEditable name="picture" -->picture<!--
TemplateEndEditable --></td>
</tr>
<tr>
<td colspan="6"><img src="../gfx/blank.gif" width="900"
height="47"></td>
</tr>
<tr>
<td colspan="6" class="bund" height="85" ><!--
TemplateBeginEditable name="bund" -->bund<!-- TemplateEndEditable
--></td>
</tr>
<tr>
<td height="19" colspan="4"><!--
TemplateBeginEditable name="prev" -->prev<!-- TemplateEndEditable
--></td>
<td colspan="2" align="right"><!--
TemplateBeginEditable name="next" -->next<!-- TemplateEndEditable
--></td>
</tr>
<tr>
<td colspan="6"><img src="../gfx/blank.gif" width="900"
height="24"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
-----------------------------------CODE-------------------------
Siden kan også ses på hhtp://
www.pattoart.com/Test
Håber der er nogen, der kan hjælpe.. *suk*
/Niels
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials