Flasher Archive

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


Subject: Re: FLASH: layer invisible flash prob
From: Jason_Schubring
Date: Wed, 9 Feb 2000 20:46:13 GMT



>>."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


Replies
  Re: FLASH: layer invisible flash prob, Lucas Yanks

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