By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,462 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,462 IT Pros & Developers. It's quick & easy.

Creating a javascript to change flash src in html upon an activestylesheet change?

P: 54
What I have now is a static banner that loads as an background-image via css stylesheet but I put on top of that a flash banner so it would load the static banner and the flash will fade in.

The problem is is that that flash banner is a part of the html so when I change stylesheets the flash banner stays. Is there a way to make a javascript to do such a thing?

Just noting here that I've never coded javascript.
Oh and this is where I learnt about my stylesheet changing script.
http://www.alistapart.com/articles/alternate/

This is my website so far, index is the only page with the style changer.
http://pdhtdev.johnabbott.qc.ca/stud...olio/index.htm

Thank you :3
Apr 28 '08 #1
Share this Question
Share on Google+
3 Replies


acoder
Expert Mod 15k+
P: 16,027
You could look at using a Flash/JS integration kit, e.g. Adobe's own or SWFobject.

Then change the src in the function which changes the stylesheet.
Apr 29 '08 #2

P: 54
You could look at using a Flash/JS integration kit, e.g. Adobe's own or SWFobject.

Then change the src in the function which changes the stylesheet.
Is it hard to implement or do I have to learn a new language?
Apr 29 '08 #3

acoder
Expert Mod 15k+
P: 16,027
It shouldn't be that difficult as soon as you can get JavaScript interacting with Flash.

The advantage of using a kit/ready-made object is that it deals with the inconsistencies across browsers/platforms.

Have a look at the documentation and you should see examples.
Apr 30 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.