bhofman
Nieuwe gebruiker
- Lid geworden
- 18 feb 2012
- Berichten
- 1
ik probeer op de website per seizoen een wisselde achtergrond te plaatsen, maar helaas lukt het niet.
wie helpt ?
Ik probeer het volgende tusssen <head> en </head> te plaatsen.
<SCRIPT LANGUAGE="JavaScript">
function showImage()
{
var seizoen = datum.getMonth() + 1;
var theImages = new Array()
theImages[0] = '(winter.jpg)'
theImages[1] = '(winter.jpg)'
theImages[2] = '(lente.jpg)'
theImages[3] = '(lente.jpg)'
theImages[4] = '(lente.jpg)'
theImages[5] = '(zomer.jpg)'
theImages[6] = '(zomer.jpg)'
theImages[7] = '(zomer.jpg)'
theImages[8] = '(herfst.jpg)'
theImages[9] = '(herfst.jpg)'
theImages[10] = '(herfst.jpg)'
theImages[11] = '(winter.jpg)'
theImages[12] = '(winter.jpg)'
if(theImages[maand])
{
i=0
do
{
document.write ('<img src="theImages">');
i++
}
while(i!=jar[alles].length)
}
</script>
<SCRIPT LANGUAGE="JavaScript">showImage("theImages");</script>
Tot dusver zie ik geen afbeelding.
wie helpt ?
Ik probeer het volgende tusssen <head> en </head> te plaatsen.
<SCRIPT LANGUAGE="JavaScript">
function showImage()
{
var seizoen = datum.getMonth() + 1;
var theImages = new Array()
theImages[0] = '(winter.jpg)'
theImages[1] = '(winter.jpg)'
theImages[2] = '(lente.jpg)'
theImages[3] = '(lente.jpg)'
theImages[4] = '(lente.jpg)'
theImages[5] = '(zomer.jpg)'
theImages[6] = '(zomer.jpg)'
theImages[7] = '(zomer.jpg)'
theImages[8] = '(herfst.jpg)'
theImages[9] = '(herfst.jpg)'
theImages[10] = '(herfst.jpg)'
theImages[11] = '(winter.jpg)'
theImages[12] = '(winter.jpg)'
if(theImages[maand])
{
i=0
do
{
document.write ('<img src="theImages">');
i++
}
while(i!=jar[alles].length)
}
</script>
<SCRIPT LANGUAGE="JavaScript">showImage("theImages");</script>
Tot dusver zie ik geen afbeelding.