Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: layer invisible flash prob
From: Lucas Yanks
Date: Wed, 9 Feb 2000 20:51:31 GMT

That's not the prob.
Let's say the javascript in the flash say: geturl=javascript:alert('hellow") ,
the swf inside a layer
and the layer is hidden.
The alert will appear in NN but in IE it won't!
If I change the layer to visible, the alert will appear in Both.


Jason_Schubringataal [dot] org wrote:

> >>."I have a flash movie inside an invisible layer.
> This flash movie has a calling of a jscript function
> (geturl=javascript:anyfunction())
> The thing is that in NN it executes perfectly, but in Explorer it
> doesn't because the layer is set invisible, if I set the layer visible,
> it executes perfectly.
> How can I solve this?"
>
> Hey Lucas.
>
> The problem is that only one of the browsers knows what you are telling it.
> "Visible" and "invisible" are not ok for both NS and IE.
>
> Feel free to use the following style sheet and javascript code to swap the
> styles. Just give your layer the CSS style of "thing." Replace the object
> "lucas" in the JS with the name of your layer.
>
> Hope this answers your question!
>
> J
>
> <STYLE TYPE="text/css">
>
> .thing {
> visibility: hidden;
> }
> </style>
>
> <SCRIPT LANGUAGE = "JavaScript">
>
> <!--/* check and fix layer bug */
> if (document.layers){
> var lucas = document.lucas;
> var HIDDEN = 'hide';
> var VISIBLE = 'show';
> } else if (document.all){
> var lucas = document.all.lucas.style;
> var HIDDEN = 'hidden';
> var VISIBLE = 'visible';
> }
>
> function showIt(object) {
> object.visibility = VISIBLE;
> }
>
> function hideIt(object) {
> object.visibility = HIDDEN;
> }
> //stop hiding -->
> </SCRIPT>
>
> 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 helpatchinwag [dot] com

--
Lucas Yanks
Webmaster United Sites of America
yanksatunitedsites [dot] com [dot] ar



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 helpatchinwag [dot] com


Replies
  Re: FLASH: layer invisible flash prob, Jason_Schubring

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]