But it's still not working with
Code:
document.getElementById('content').style.background = 'url(images/kontor-' + currentIndex + '.png)';
Is it because content is a class? I dont really now how to give that class an ID. Because this image as set as an background-image in .content in the CSS, i dont really have any HTML-tags around it.
Code:
<div class="content">
<ul id="nav">
<li><a class="anav" href="#">| Home</li>
<li><a class="anav" href="about.html">| About</li>
<li><a class="anav" href="#">| Games</li>
<li><a class="anav" href="#">| Jobs</li>
<li><a class="anav" href="#">| Valfri</li>
</ul>
</div>