/    Sign up×
Community /Pin to ProfileBookmark

Help adding Flash to CSS

Hi,

I’m working on a code that I am not too familiar with (I am not big on CSS, and it was passed down to me), and I should add a flash animation to it.

It’s three boxes that have each an image in them. There is text (link) in each box too.
I would like to make the hover on the image, or if not possible, on the text, pull up a small flash animation.

Basically they see the picture, but when they hover on it, the picture will slowly become brighter. I have the flash file, but have no idea how to incorporate it. I was half-able to put a hover .jpg, but when I try with a .swf file nothing happens.

Please help, and let me know if there is more of the CSS code needed. Also, please explain it to me as simply as you can. Thank you very much in advance.

This is the code:

div#mb { clear: both; float: left; width: 754px; margin: 0; padding: 0 0 5px; }

div.mb-item { display: inline; background: #ffffff; color: #747476; float: left; margin: 0 5px; padding: 0; width: 240px; }

div.mb-item div.gutter { min-height: 85px; margin: 2px; }

div.mb-item h3 { color: #000000; font-size: 130%; font-weight: bold; margin: 0; padding: 5px 10px 0; }

div.mb-item p { margin: 0; padding: 0 100px 5px 10px; }

div.mb-item a { background: transparent url(bullet.gif) no-repeat 0 50%; display: block; margin-top: 5px; padding-left:10px; }

div.mb-item-first div.gutter { background: url(firstlowerbox.jpg) no-repeat top right; }

div.mb-item-second div.gutter { background: url(secondlowerbox.jpg) no-repeat top right; }

div.mb-item-third { width: 250px; }

div.mb-item-third div.gutter { background: url(thirdlowerbox.jpg) no-repeat top right; }

div#mb div.mb-item div.item-gutter { min-height: 85px; margin: 2px; padding: 0; }

div.mb-item-first div.item-gutter { background: url(firstlowerbox.jpg) no-repeat top right; }

div#mb div.mb-item-second div.item-gutter { background: url(secondlowerbox.jpg) no-repeat top right; }

div#mb div.mb-item-third div.item-gutter { background: url(thirdlowerbox.jpg) no-repeat top right; }

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@eliseauthorMar 29.2007 — Ok, so maybe it's not possible to add Flash to CSS.

How else can I add an animated .gif or a flash file to start on a hover event?
Copy linkTweet thisAlerts:
@holyhttpMar 29.2007 — No so sure for the animated gif without using some javascript.

In Flash, you can add the following actionscript at the first frame:

stop();

this.onRollOver=function (){play(); }
×

Success!

Help @elise 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 6.16,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...