/    Sign up×
Community /Pin to ProfileBookmark

background positions and sounds

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?

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@jbergthorsonOct 14.2003 — 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
Copy linkTweet thisAlerts:
@krautinatorauthorOct 14.2003 — 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">?
×

Success!

Help @krautinator spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...