Jeg skal ha vist en tilfældig joke et sted på min side, jeg har fundet
følgende på nettet og det virker også, men det er bare ikke xhtml
kompatibel, det e den første linje der gør vrøvl....... hvordan kan jeg fixe
det??
"
<form name="random"><input type="text" name="random" size=160
value=""></form>
<script type="text/javascript" language="javascript">
function getMessage() {
var ar = new Array(11)
ar[0] = "I almost didn't make it tonight.. had a flat tire..there was a fork
in he road........"
ar[1] = "Everything takes longer than you think."
ar[2] = "We slept in a trailer park and didn't want to wake the sleeping
bags."
ar[3] = "One of David's first jobs was here in Chicago.He had a job as a
waiter but he never took any tips.He was a dumb waiter."
ar[4] = "Larry almost wrote a song today. He wrote a song about his bed,
but it hasn't been made up yet."
ar[5] = "My ex-wife left me again. She's a tennis player. Love means nothing
to her."
ar[6] = "David grew up on a farm and on Saturday nights he used to take the
cows to the moooooovies."
ar[7] = "Larry hurt his foot today, we had to call a toe truck."
ar[8] = "We went out for some seafood, and he asked them 'Do you serve
crabs?' 'Sure do, sit right down,' they told him."
ar[9] = "David must have thought he was playing golf today because he wore
two shirts,in case he gets a hole in one."
ar[10] = "david is one of the few drummers around better than no drummer at
all."
var now = new Date()
var sec = now.getSeconds()
document.random.random.value="Bob Dylan joke: " + ar[sec % 11]
}
getMessage()
//-->
</script>"
--
regards
Jonathan
http://www.cpuid.dk
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.497 / Virus Database: 296 - Release Date: 04/07/2003