Re: messing up

message from moelholm on 20 Jul 2004
Well, when something has been working allrigt, and then suddenly it does not,
and you can't figure out why, "it has to be a bug or...." :-)
But here is my code for the template.
Below the template code you can see the CSS code for the positioning DIVs.

Hope y can help!

Kindly Regards
jan j?rgensen
PS: if you don't understand the writing, don't be sorry, it's in danish :-)

<<<
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<%
Dim RsAbb
Dim RsAbb_numRows

Set RsAbb = Server.CreateObject("ADODB.Recordset")
RsAbb.ActiveConnection = MM_jbt04_STRING
RsAbb.Source = "SELECT * FROM forestillinger"
RsAbb.CursorType = 0
RsAbb.CursorLocation = 2
RsAbb.LockType = 1
RsAbb.Open()

RsAbb_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
RsAbb_numRows = RsAbb_numRows + Repeat1__numRows
%>
<!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 --><link href="../css/03jbt.css" rel="stylesheet"
type="text/css" media"all" />
<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>

<div id="logo"> <img src="../css/bglogo3.gif" alt="logo" width="116"
height="124" />
<br />
<br />

<p>Danmarksgade 19,<br />
9000 Aalborg<br />
Tlf: 98 12 78 33<br />
</p></div>
<div id="top"></div>

<div id="topmenu"><table width="760" border="0" align="left" cellpadding="0"
cellspacing="0">

<tr class="75" align="left" valign="bottom">
<td width="160"> </td>

<td><div align="center"><a href="../saeson.asp">Sæson
2004-2005</a></div></td>
<td><div align="center"><a href="../abb_main.asp">Billetter &
Abonnement </a></div></td>
<td><div align="center"><a href="../bag.asp">Bag scenen </a></div></td>
<td><div align="center"><a
href="../info.asp">Info/Services</a></div></td>
<td width="100"> </td>
</tr>
</table>
</div>
<div id="menuvenstre"><br />

<p><a href="../abb_1til4.asp">Abb. 1 1/2 - 4 år </a>
<a href="../abb_fra4.asp">Abb. fra 4 år </a>
<a href="../abb_fra8.asp">Abb. fra 8 år </a>
<a href="../abb_fra12.asp">Abb. fra 12 år </a>
<a href="../abb_bestil.asp">Bestil abonnement </a>
<a href="../abb_priser.asp">Billetpriser/bestilling </a>
<a href="../abb_skolerinst.asp">Skoler/institutioner</a>
<a href="../abb_lyntilbud.asp">Lyntilbud</a>
<a href="#"></a>
</p>

</div>

<!-- TemplateBeginEditable name="content" -->
<div id="cont">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT RsAbb.EOF))
%>
<tr valign="top">
<td
colspan="2"><h2><strong><%=(RsAbb.Fields.Item("forestilling").Value)%>
 # <%=(RsAbb.Fields.Item("teater").Value)%></strong></h2></td>
</tr>
<tr>
<td colspan="2"><p><strong><br />

Spilleperiode:</strong> <%=(RsAbb.Fields.Item("spilleperiode").Value)%>&nbs
p;   <%=(RsAbb.Fields.Item("premiere").Value)%>   
<%=(RsAbb.Fields.Item("abonnement").Value)%> <br />
<br />
</p></td>
</tr>
<tr valign="top">
<td
colspan="2"><p><%=replace(RsAbb.Fields.Item("beskrivelse").Value,vbcrlf,"<br>")%
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr align="left" valign="top">
<td colspan="2"></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="399" valign="middle"><p><strong>Credits</strong>:<br />

<%=replace(RsAbb.Fields.Item("credits").Value,vbcrlf,"<br>")%></p></td>
<td align="right" valign="top"><p><img
src="fotofs/<%=(RsAbb.Fields.Item("foto").Value)%>" border="0" align="right"
/></p></td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
RsAbb.MoveNext()
Wend
%>
</table>
</div>
<!-- TemplateEndEditable -->
</body>
</html>
<%
RsAbb.Close()
Set RsAbb = Nothing
%>
/* CSS only the positioning DIVs */

#topmenu {
position: absolute;
z-index: 999;
left: 0px;
top: 80px;
height: 100px;
width: 760px;
}
#top {
position: absolute;
z-index: 1;
left: 0px;
top: -1px;
height: 100px;
width: 100%;
background: url(topbg.gif) no-repeat scroll;
background-color: #E5E5E5;

#logo {
top: 250px;
position: absolute;
z-index: 9;
float: none;
clear: right;
width: 125px;
height: 200px;
left: 10px;
}
#menuvenstre {
top: 110px;
margin-left: 10px;
position: absolute;
z-index: 9;
float: left;
clear: none;
width: 125px;
left: 0px;
height: 100%;

#cont {
top: 123px;
position: absolute;
z-index: 9;
width:580px;
left: 156px;
border: 1px solid #E5E5E5;
padding-right: 10px;
padding-bottom: 10px;
padding-left: 10px;
 

Archived message: Re: messing up (Macromedia Dreamweaver Web Design)