/    Sign up×
Community /Pin to ProfileBookmark

Because I am not great with Flash, I made some animated rollovers using a .gif file. Got them to work when the navbar was horizontal. Now that its vertical, I come up with a blank image upon the Rollover state. Using CSS ofcourse..

[CODE]/* #navbar buttons */
a.home {
display:block;
width:350px;
height:30px;
text-decoration:none;
float: left;
background: url(../buttons/home.gif) no-repeat 0 0;
}
a:hover.home {
background: url(../buttons/roll/homeRoll.gif) no-repeat 0 0;
display:block;
width:350px;
height:30px;
text-decoration:none;
float: left;
}
[/CODE]

html:

[CODE]<tr><td width=”350″><a href=”” class=”home”></a></td></tr>[/CODE]

Please help…

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@ryanbutlerJul 29.2009 — You probably need to pre load your hover image on page load. Something like what this page does:

http://midwestwebdesign.net/tutorials/csstable/index_finished.html

Details about what I'm doing:

http://midwestwebdesign.net/tutorials/csstable/default.aspx
Copy linkTweet thisAlerts:
@Hooded_VillianauthorJul 29.2009 — You probably need to pre load your hover image on page load. Something like what this page does:

http://midwestwebdesign.net/tutorials/csstable/index_finished.html

Details about what I'm doing:

http://midwestwebdesign.net/tutorials/csstable/default.aspx[/QUOTE]


It works in Opera without having to preload the images. But the more I rollover and look at it all, I think that maybe I should spend the time and "pull my hair out" by doing it in flash. Will look smoother and I will be able to do more animation.

Thanks for your input though... ?

PS: Nice site btw.
×

Success!

Help @Hooded_Villian 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.18,
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,
)...