473,386 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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

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
3 1765
acoder
16,027 Expert Mod 8TB
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
GloStix
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
16,027 Expert Mod 8TB
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

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

Similar topics

5
by: Mika S. | last post by:
Hi, How can I detect if the Flash plugin is installed? Should be working with the most common browsers and environments. Thanks, Mika
7
by: Andy Happ | last post by:
I have a website which includes a Flash game. Upon the game ending the Flash object fires off the javascript method: recordScore(value) This is then queried against the top score for the day...
10
by: *ProteanThread* | last post by:
since a majority of people are still on dial up or at most DSL (though there *IS* broadband) does it help or hurt one's webpage adding multi media ? does it necessarily distract from the theme of...
1
by: bin_P19 P | last post by:
the code i have got is as follows and now im stuck <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Shopping...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
2
by: spiralof5 | last post by:
Hi. I must first say I'm not an experienced scripter. Here's my problem and how far I am so far. I struggled for awhile to get the browser to fill most of it with my flash movie and keep it...
1
by: critchey1 | last post by:
Hey everyone, i've been playing around with trying to get some scripts to work with detecting whether flash player is installed on your computer or not. I found a flash detection kit on the adobe...
4
by: =?UTF-8?B?4KSw4KS14KWA4KSC4KSm4KSwIOCkoOCkvuCkleCl | last post by:
hello friends i am trying to dynamically create graphs in browsers(as in graph theory, something like this http://sawamuland.com/flash/graph.html , not like excel graphs) but i am unable to...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.