hejsan
jag skulle behöva hjälp med denna JS koden , är det ´nån som ser vart felet är ?
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var backImage = new Array(); // don't change this
// Enter the colors you wish to use. Follow the
// pattern to use more colors. The number in the
// brackets [] is the number you will use in the
// function call to pick each color.
backImage[0] = 'http://www.annatroberg.com/wp-content/uploads/2010/01/fb.jpg';
backImage[1] = 'http://www.wonderbackgrounds.com/glitter/backgrounds/glitter_background_b4.gif';
backImage[2] = 'http://www.psdgraphics.com/wp-content/uploads/2009/05/abstract-purple-background.jpg';
backImage[3] = 'http://a.dryicons.com/files/graphics_previews/retro_blue_background.jpg';
// Do not edit below this line.
function changeBG(whichImage){
document.bgImage = backImage[whichImage];
}
// End -->
</script>
</HEAD>
<BODY>
<!--
Example Two -- changing bg color with a mouse click.
Set the number in the () in the changeBG() function
to the number of the color in the brackets in the
backColor[] array to select a given color.
//-->
<a href="javascript:changeBG(0)">bg1</a>
<a href="javascript:changeBG(1)">bg2</a>
<a href="javascript:changeBG(2)">bg3</a>
<a href="javascript:changeBG(3)">bg4</a>