Click to See Complete Forum and Search --> : background positions and sounds
krautinator
10-14-2003, 11:23 AM
does anyone know if you can put a background image on a <div> tag?
I'd like to mess w/ the background's position if that's possible
also is there a way to sort of 'Preload' sounds?
jbergthorson
10-14-2003, 12:55 PM
I am almost 100% sure that you can add a background image to a div tag, using the property
backgroundImage="theimage.src".
As for preloading sounds, use:
<EMBED NAME="myNewSound" SRC="myNewSound.src"
LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>
as for playing them i will assume you already know how.
hope this helped
jason
krautinator
10-14-2003, 04:29 PM
yeah, that helps a lot as far as sounds go,
but....
How would I actually mess w/the background's position?
I know the syntax for background position on the page
somethin' like
document.background.left
or document.background.top
maybe I would name the div tag something?
like
document.div_1.background.left?
and then
<div id="div_1">?