Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: flash and dhtml layers |
| From: | Marc Pidoux |
| Date: | Thu, 16 Mar 2000 05:29:53 GMT |
Hi,
Use, if you have it (or download it), Dreamweaver. It included behaviors which
will do what you want. I tried and it works. Here is a source code you can use.
Cheers
Marc
*************************
<html>
<head>
<title>Layers and Flash files</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v3.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)
{
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document); return x;
}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) {
v=args[i+2];
if (obj.style) { obj=obj.style;
v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF">
<p><a href="#" onClick="MM_showHideLayers('flashin','','hide')"><font
face="Arial, Helvetica, sans-serif" size="2">Hide
it</font></a> <br>
<a href="#" onClick="MM_showHideLayers('flashin','','show')"><font
face="Arial, Helvetica, sans-serif" size="2">Show
it</font></a></p>
<div id="flashin" style="position:absolute; width:200px; height:115px;
z-index:1"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0"
width="300" height="330">
<param name=movie value="yourflashfile.swf">
<param name=quality value=high>
<embed src="flame.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="300" height="330">
</embed>
</object></div>
</body>
</html>
**********************************
David Morse a �crit :
> hello all,
>
> I've been looking for a solution to this all over the web and can't find
> it...
>
> how do I show/hide dhtml layers that include flash?
>
> I want to have an onmouseover event trigger the SHOWing of a layer with
> flash embbedded within it and an onmouseout trigger the HIDEing of that same
> layer, and I want to do this at least three times on the same page, so that
> only one of the many layers ever show at a time and only when the
> respective GIF is moused over
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World�s Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
> -Register before Feb 25 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email help
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California
-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: flash and dhtml layers, David Morse
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

