/    Sign up×
Community /Pin to ProfileBookmark

css background image

hello, i have a problem, i have this menu which has divs as items, when you mouseover a div i want to change several properties of it using onmouseover=”this.className= bla bla bla…
everything works fine BUT when i try to change the background image, there is a delay displaying them, is there a way to save the images so that the browser gets them from the cache or something so they load faster instead of downloading it all over again?
this a fraction of the css code on my page

[CODE].nrm{font-size:12;background-image:url(‘src/nrm.gif’);width:100px;height:25px;background-color:navy;}
.ovr{font-size:12;background-image:url(‘src/ovr.gif’);width:100px;height:25px;background-color:#0066ff;}
.out{font-size:12;background-image:url(‘src/out.gif’);width:100px;height:25px;background-color:navy;}[/CODE]

hope this is clear enough
thanks^^

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@KravvitzOct 05.2005 — [url=http://www.google.com/search?q=preload+image]You need to preload the images.[/url]
Copy linkTweet thisAlerts:
@saulssauthorOct 05.2005 — hahaha i had not tried that tanks ^^
×

Success!

Help @saulss 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.20,
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,
)...