04. februar 2003 - 17:17
Der er
5 kommentarer og 1 løsning
ASP og Stylesheets
Hej Jeg sidder her og undrer mig rimelig meget lige nu :-) Jeg har en side hvor jeg har placeret en menu ved hjælp af et stylesheet. Menuen optræder på alle sider og er placeret relativt. På siden er der ligeledes en login-funktion, der aktivere en sessionvariabel. Det underlige er at når en bruger logger sig ind flytter menuen cirka 40-50 pixels ned og står derfor lige pludselig midt i det hele.... Er der nogensinde nogen hder har hørt noget om at en sessionvariabel skulle blande sig i et stylesheet. Andre forslag til hvad der kan været galt er naturligvis velkomne :-) /kovalt
Annonceindlæg fra Barco
04. februar 2003 - 17:18
#1
jeg tror der skal lidt kode til
04. februar 2003 - 17:22
#2
<table border="1" bordercolordark="#000000" bordercolorlight="#253038" cellpadding="0" cellspacing="0"> <tr><td> <table width="580" border="0" cellspacing="0" cellpadding="0" bordercolordark="#000000" bordercolorlight="#253038" bgcolor="#19252C"> <tr> <td width="1" valign="top" rowspan="2"><img src="Images/line_left.gif"></td> *********HER INDSÆTTES MENUEN - RAMME ER DEFINERET I CSS <td width="579" align="center" id="ramme"> <table border="0" height="20" cellpadding="0" cellspacing="0"> <tr> <td width="50" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp">Forside</a></td> <td width="60" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=debat">Debatten</a></td> <td width="70" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=vedtagter">Vedtægter</a></td> <td width="60" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=statistik">Statistik</a></td> <td width="80" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=medlemmer">Medlemmer</a></td> <td width="40" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=spil">Spil</a></td> <td width="60" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=finans">Finanser</a></td> <% if session("matanavn") <> "" then %> <td width="60" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=login">Tast Selv</a></td> <% else %> <td width="60" align="left" bgcolor="#B80A0E" onmouseover="this.style.background='#D60C11';" onmouseout="this.style.background='#B80A0E';"> <a href="index.asp?kategori=login">Login</a></td> <% end if %> </tr> </table> </td> </tr> <tr> <td align="center" width="579" valign="top"> <% if request.querystring("kategori") = "forside" then %> <!--#include file="forside.asp"--> <% elseif request.querystring("kategori") = "vedtagter" then %> <!--#include file="vedtagter.asp"--> <% elseif request.querystring("kategori") = "debat" then %> <!--#include file="debat.asp"--> <% elseif request.querystring("kategori") = "statistik" then %> <!--#include file="statistik.asp"--> <% elseif request.querystring("kategori") = "medlemmer" then %> <!--#include file="medlemmer.asp"--> <% elseif request.querystring("kategori") = "spil" then %> <!--#include file="spil.asp"--> <% elseif request.querystring("kategori") = "finans" then %> <!--#include file="finans.asp"--> <% elseif request.querystring("kategori") = "login" then %> <!--#include file="login.asp"--> <% else %> <!--#include file="forside.asp"--> <% end if %> </td> </tr> </table> </td></tr> </table>
04. februar 2003 - 17:26
#3
Er der noget mere kode du gerne vil se?
04. februar 2003 - 17:30
#4
ja - det er mere hvad du har i toppen af dokumentet
04. februar 2003 - 17:31
#5
<html> <head> <title>MATA-Odds</title> <link href="css/stylesheet.css" rel="stylesheet" type="text/css"> <SCRIPT src="functions.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> function tjekantalkampe() { var result = true; if (isNaN(document.antalkampeformular.antalkampe.value)) { window.alert ("Du har indtastet et ugyldigt tal!"); result = false; } if (document.antalkampeformular.antalkampe.value == "" ) { window.alert ("Du har ikke indtastet et tal!" ); result = false; } if (document.antalkampeformular.antalkampe.value == "0" || document.antalkampeformular.antalkampe.value == "1" ) { window.alert ("Et multibet kan ikke indeholde 0 eller 1 væddemål!" ); result = false; } return result; } function tjekindsatsmulti() { var result = true; if (isNaN(document.multibet.indsats.value)) { window.alert ("Den indtastede indsats er ugyldigt!"); result = false; } if (document.multibet.indsats.value == "" ) { window.alert ("Du har ikke indtastet en indsats!" ); result = false; } if (document.multibet.indsats.value == "0" ) { window.alert ("Indsatsen kan ikke være 0!" ); result = false; } return result; } function tjekindsatssingle() { var result = true; if (isNaN(document.singlebet.indsats.value)) { window.alert ("Den indtastede indsats er ugyldigt!"); result = false; } if (document.singlebet.indsats.value == "" ) { window.alert ("Du har ikke indtastet en indsats!" ); result = false; } if (document.singlebet.indsats.value == "0" ) { window.alert ("Indsatsen kan ikke være 0!" ); result = false; } return result; } </SCRIPT> </head> <body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <% session.lcid = 1030 %> <div align="center"> <br><br> <table width="580" border="0" bgcolor="#000000" bordercolor="#333333" cellpadding="0" cellspacing="0"> <tr> <td width="580" height="100" align="center"><img src="Images/GOAL.gif"></td> </tr> </table> <br> Og så kommer de der blev vist ovenfor
04. februar 2003 - 20:15
#6
det er den her linie der laver missæren: <td width="1" valign="top" rowspan="2"><img src="Images/line_left.gif"></td>
Kurser inden for grundlæggende programmering