a:link { text-decoration:none; color:#069499 }
a:visited { text-decoration:none; color:#90a284 }
a:hover { text-decoration:none; color:#bb925f }
a:active { text-decoration:none; color:#ff0000 }
input:hover { text-decoration:none; color:#bb925f } // endast Mozilla
input:focus { text-decoration:none; color:#bb925f }
//klasser: knapp och textruta:
input.knapp:hover { text-decoration:none; color:#bb925f }
input.textruta:focus { text-decoration:none; color:#bb925f } Filter
2001-05-29
Hemligheter i CSS
Css
2001-05-29
Generell tabellutskrift
Asp
response.write("<tr>")
for i = 0 to rs.fields.count - 1
response.write("<th>" & rs(i).name & "</th>")
next
response.write("</tr>")
do while not rs.eof
response.write("<tr>")
for i = 0 to rs.fields.count - 1
response.write("<td>" & rs(i) & " </td>")
next
response.write("</tr>")
rs.movenext
loop2001-05-29
SQL-insert
Sql
<%
sql = "insert into users (namn, email)"
sql = sql & " values ('" & namn & "', '" & email & "'); "
%>2001-05-06
Sno inte min kod
Javascript
<script language="JavaScript">
var Antal = 1
function klick() {
if (event.button == 2 && Antal == 3) {
alert("Nu har du högerklickat 3 gånger! \n- Hej då!");
self.location.replace("http://iprod.hadar.ideon.se");
}
if (event.button == 2 && Antal > 1 && Antal <3) {
alert("Nu har du högerklickat" + " " + Antal + " " + "gånger! Sluta!");
Antal = Antal + 1;
}
if (event.button == 2 && Antal <2) {
alert("Högerklicka helst inte här!");
Antal = Antal + 1;
}
}
document.onmousedown = klick
</script> 