Hej nu är det så att jag skulle vilja att ett nytt fönster öppnar sig i en speciell storlek, t.ex. om vi tar att jag skulle vilja att att länken <a href="www.heej.se/open.html">Heej!
</a> skulle öppna sig i ett nytt fönster med storleken 200x300 hur gör jag då?
Sen har jag en liten fråga till om hur man får bort årtalet i datumet men ändå får det att fungera, har prövat men inte lyckats...
<script language="javascript">
theMonth = new Array()
theMonth[0] = "Januari"
theMonth[1] = "Februari"
theMonth[2] = "Mars"
theMonth[3] = "April"
theMonth[4] = "Maj"
theMonth[5] = "Juni"
theMonth[6] = "Juli"
theMonth[7] = "Augusti"
theMonth[8] = "September"
theMonth[9] = "Oktober"
theMonth[10] = "November"
theMonth[11] = "December"
theDay = new Array(7)
theDay[0] = "Söndag"
theDay[1] = "Måndag"
theDay[2] = "Tisdag"
theDay[3] = "Onsdag"
theDay[4] = "Torsdag"
theDay[5] = "Fredag"
theDay[6] = "Lördag"
function writeTheDate() {
toDay = new Date()
return theDay[toDay.getDay()] + ", " + toDay.getDate() + " " + theMonth[toDay.getMonth()] + ", " + toDay.getFullYear()
}
</script>
</head>
<body bgcolor="#FFFFFF" background="images/bg.jpg" leftmargin="3" topmargin="3" marginwidth="3" marginheight="3" >
<p align="center"></p>
<p align="center"><br>
<br>
<script language="javascript" class="text">document.write(writeTheDate())</script>