Hvordan laves en include css i asp?
HejHvordan refererer man til et stylesheet i et asp script?
Jeg har på normal vis forsøgt at indsætte det i <head></head> men det fungerer ikke. Uanset om jeg placerer det direkte i samme mappe eller refererer til hvor det ligger nu (i roden), så fungerer det ikke. Er der nogen, der ved hvordan man gør:
----------------- kode ------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Poll</title>
<link rel="stylesheet" href="../mia-jesper.css" type="text/css">
</head>
<body>
<font size="4">Hvad skal vi hen næste gang?</font><br>
<br>
<%
Dim Radio1, Radio2, Radio3, Radio4
Dim Samlet
Dim R1ud, R2ud, R3ud, R4ud
Dim fso, f, filespec
Set fso = CreateObject("Scripting.FileSystemObject")
filespec = Server.Mappath("radio1.txt")
Set f = fso.OpenTextFile(filespec,1)
Radio1 = f.ReadLine
f.Close
Dim fso2, f2, filespec2
Set fso2 = CreateObject("Scripting.FileSystemObject")
filespec2 = Server.Mappath("radio2.txt")
Set f2 = fso2.OpenTextFile(filespec2,1)
Radio2 = f2.ReadLine
f2.Close
Dim fso3, f3, filespec3
Set fso3 = CreateObject("Scripting.FileSystemObject")
filespec3 = Server.Mappath("radio3.txt")
Set f3 = fso3.OpenTextFile(filespec3,1)
Radio3 = f3.ReadLine
f3.Close
Dim fso4, f4, filespec4
Set fso4 = CreateObject("Scripting.FileSystemObject")
filespec4 = Server.Mappath("radio4.txt")
Set f4 = fso4.OpenTextFile(filespec4,1)
Radio4 = f4.ReadLine
if Request.Cookies("homemadepoll")("stemt") = "JA" then
f4.Close
Samlet = Radio1 + 0 + Radio2 + 0 + Radio3 + 0 + Radio4 + 0
R1ud = Radio1 / Samlet * 100
R2ud = Radio2 / Samlet * 100
R3ud = Radio3 / Samlet * 100
R4ud = Radio4 / Samlet * 100
Response.Write "<font size='2' type='Verdana'>"
Response.Write "Bahamas"
Response.Write "<div style='width: " & Int(R1ud * 3) & "px; background-color: #FE8707;'>"
Response.Write "" & Int(R1ud) & "%"
Response.Write "</div><br>"
Response.Write "Berlin"
Response.Write "<div style='width: " & Int(R2ud * 3) & "px; background-color: #FE8707'>"
Response.Write "" & Int(R2ud) & "%"
Response.Write "</div><br>"
Response.Write "Brabrand"
Response.Write "<div style='width: " & Int(R3ud * 3) & "px; background-color: #FE8707'>"
Response.Write "" & Int(R3ud) & "%"
Response.Write "</div><br>"
Response.Write "Baghaven"
Response.Write "<div style='width: " & Int(R4ud * 3) & "px; background-color: #FE8707'>"
Response.Write "" & Int(R4ud) & "%"
Response.Write "</div><br>"
Response.Write "</font>"
Response.Write "Samlet antal stemmer: " & Samlet & "<br>"
else
Response.Write "<form action='stem.asp' method='post'>"
Response.Write "<input type='radio' name='radio' value='1'>Bahamas<br>"
Response.Write "<input type='radio' name='radio' value='2'>Berlin<br>"
Response.Write "<input type='radio' name='radio' value='3'>Brabrand<br>"
Response.Write "<input type='radio' name='radio' value='4'>Baghaven<br><br>"
Response.Write "<input type='submit' value='Stem nu'>"
Response.Write "</form>"
end if
%>
</body>
</html>