i have an array that randomly picks an image on every load of the page... array works fine but i need to set the image as a background for a div:
<div class="main">
<script language="javascript">
document.write('TheImage')
</script>
</div>
that'd suffice BUT the image is out of line with the div some how =S
So i tried:
<script language="javascript">
document.write('<div class="main" style="background-image: '++TheImage++';">)
</script>
</div>
but that produces an error. can any one help me please?
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."
<div class="main">
<script language="javascript">
document.write('TheImage')
</script>
</div>
that'd suffice BUT the image is out of line with the div some how =S
So i tried:
<script language="javascript">
document.write('<div class="main" style="background-image: '++TheImage++';">)
</script>
</div>
but that produces an error. can any one help me please?
~*Gwar3k1*~
"To the pressure, everything's just like: an illusion. I'll be losing you before long..."