View Single Post
Old 09-17-2012, 05:50 PM   PM User | #10
krillezzz
New Coder

 
Join Date: Sep 2012
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
krillezzz is an unknown quantity at this point
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>
krillezzz is offline   Reply With Quote