Flash and HTML

F

fefewf

Hi,

I want to know if the following list is:

A. Possible.
B. Advisable.
C. The best way to implement.

1. A link which can be clicked to disable a Flash banner on a HTML page by
replacing it with a gif image.
2. Placing HTML on top of Flash
3. Placing Flash on top of Flash with some transparency.
4. Pass varaibles to Flash through HTML or PHP to the same movie on
different pages, to make the Flash display the movie a different colour.
5. Place a transparent GIF on top of Flash.

Thank you,

Joe.
 
M

+mrcakey

fefewf said:
Hi,

I want to know if the following list is:

A. Possible.
B. Advisable.
C. The best way to implement.

1. A link which can be clicked to disable a Flash banner on a HTML page
by
replacing it with a gif image.

You could do this with JavaScript. Assuming the user has it turned on.
2. Placing HTML on top of Flash

Not possible. You can put HTML *IN* Flash but not on top of it.
3. Placing Flash on top of Flash with some transparency.
Pass.

4. Pass varaibles to Flash through HTML or PHP to the same movie on
different pages, to make the Flash display the movie a different colour.

Yes that's doable.
5. Place a transparent GIF on top of Flash.

This would have to be HTML which you can't stick on top of Flash.


To be honest it sounds like you're trying to solve some quite "out there"
problem. I'm sure there are better, more feasible solutions if you'd let us
know what the problem is.

+mrcakey
www.dreamberry.co.uk
 
V

viza

1. A link which can be clicked to disable a Flash banner on a HTML page
by replacing it with a gif image.

If you want to do this, then take the time to be sure it works without
javascript, like this:

[in the page]


<div id="flashdiv1">

<?php if( 'off' != $_GET['flash'] ){ ?>
<object id="flash1" type="application/x-shockwave-flash" otherparams...>
<?php } ?>

<img src="replacement.gif" alt="...">

<?php if( 'off' != $_GET['flash'] ){ ?>
</object>
<?php } ?>

</div>

<p><a href="thispage.php?flash=off" id="flashlink1">No Flash</a>

<script type="text/javascript" src="flashoff.js"></script>

[in the script file]

function turn_flash_off(){
document.getElementById('flashdiv1').innerHTML=
document.getElementById('flash1').innerHTML
}

document.getElementById('flashlink1').href=
'javascript:void( turn_flash_off() )'


I haven't tested this but you can see how it works. The href of the link
is to a real address of a the same page but without flash, and then once
the page has loaded then you use javascript to change the href to a
javascript url which is a function to turn the flash off. They both work
but if the user has javascript then they don't have to reload the page.

2. Placing HTML on top of Flash

It is up to you to decide whether an image or some div has equivalent
content to the flash app.

3. Placing Flash on top of Flash with some transparency.

Well, that's not really turning flash off is it?

4. Pass varaibles to Flash through HTML or PHP to the same movie on
different> pages, to make the Flash display the movie a different
colour.

Well you could try to remember the user's preference, but making the
flash another colour isn't much use.

5. Place a transparent GIF on top of Flash.

Then you could see it but not click it? Are you trying to upset
visitors? ;-)

HTH
viza
 
T

Travis Newbury

1.  A link which can be clicked to disable a Flash banner on a HTML page by
replacing it with a gif image.

Yes, but you need Javascript.
2.  Placing HTML on top of Flash

Yes: http://www.robertnyman.com/2007/01/29/how-to-put-an-html-element-on-top-of-a-flash-movie/
3.  Placing Flash on top of Flash with some transparency.
Yes

4.  Pass varaibles to Flash through HTML or PHP to the same movie on
different pages, to make the Flash display the movie a different colour.

Yes, but your Flash needs to be "listening" and take the appropriate
action when "spoken to"
5.  Place a transparent GIF on top of Flash.

yes, but why?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,981
Messages
2,570,187
Members
46,728
Latest member
FernMcmull

Latest Threads

Top