Closed Bug 181930 (compuless.pl) Opened 22 years ago Closed 22 years ago

compuless.pl - text under a hidden Flash animation is not visible in Mozilla

Categories

(Tech Evangelism Graveyard :: Polish, defect, P3)

x86
All

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: marcoos, Assigned: piskozub)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.3a) Gecko/20021123
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; pl-PL; rv:1.3a) Gecko/20021123

There is a Flash on Compuless' website with falling leaves and "Jesienia liscie
i ceny spadaja". It has a Close button (called here "Zakoncz") - which makes the
Flash disappear. In MSIE the website content is shown. In Mozilla (I checked
1.3a Linux and 1.3 Win98) the Flash disappears, but 'under' it there's a blank
box, which makes the text unreadable.

A minor bug there is wrong placement of the "Zlokalizuj" link. (this one (let's
do some ASCII-ART ;) - [Bielsko-Biala] (>) >> Zlokalizuj )

Another thing is their design - I wonder if it is legal to copy Microsoft's
Windows XP theme as a website layout :))

I've sent an e-mail about the Flash problems to piotrek@compuless.pl and
maciek@compuless.pl (one of them is for the "Internet" and the second one for
"Programming" according to their contact page; I guess one of them is webmaster).

Reproducible: Always

Steps to Reproduce:
1.Go to http://www.compuless.pl
2.Wait for a new window to open
3.Close the Flash by clicking "Zakoncz"

Actual Results:  
See a blank box where the Flash was.

Expected Results:  
Show the real content of the page.

I'm using Flash plugin ver. 5 from Macromedia.
And I've seen this in some other websites (but I can't recall them now).
Well. piotrek@compuless.pl bounced...

piotrek@compuless.pl:
195.205.180.19 does not like recipient.
Remote host said: 550 Unknown local part piotrek in <piotrek@compuless.pl>
Giving up on 195.205.180.19.

Hope maciek@compuless.pl will get that e-mail.
Confirming and accepting.

Marek: However as you already contacted the webadmin (hopefully!), you would be
the obvious bug owner, and I can take over the QA (verification).
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3
Target Milestone: --- → Nov
Target Milestone: Nov → Dec
Alias: compuless.pl
I send an evangelic letter to maciek, postamaster and webmaster AT compuless.pl.
None of them bounced!
Target Milestone: Dec → Jan
It seems that it's probably not compuless.pl's problem, but Mozilla's and/or
Macromedia Flash Mozilla Plugin. :(

People have similar problems here:
http://mozillapl.org/forum/viewtopic.php?p=6967
I had a sneaking suspition that this is the case but could not find it in Bugzilla.
I wonder what is invoked when the user clicks on "Zakoncz".

It's probably not
javascript:document.getElementById('something').style.display='none' nor
visibility='hidden', - I made some tests and if the SWF linked to the above, it
worked.

It seems that clicking "Zakoncz" makes some Flash calls to hide? unload? the movie.

I don't know too much about Flash, but I noticed that after clicking "Zakoncz"
the blank space is in fact still the Flash plugin, but without any movie loaded
- right-clicking on the blank space shows the usual popup-menu with "Movie not
loaded | About Macromedia Flash". 

As a workaround, the people at compuless.pl should probably change the "Zakoncz"
link in the swf with falling leaves into "javascript:hideflash()" (or at least
add a small <a href="..."> HTML link just under the SWF), and add something like
this to the <head> section:

<script type="text/javascript">
function hideflash() {
  if (document.getElementById) {
    document.getElementById('lisc').style.display='none';
  } else if (document.all) {
    document.all['lisc'].style.display='none';
  } 
}
</script>

I'm not sending this to compuless.pl yet, because I would like someone knowing
more about Flash than I do to check this.

BTW to avoid opening a separate window for the buggy page, this is its real url:
http://www.compuless.pl/source/index.php

One more thing: this also applies to the new Flash 6 plugin (I've just upgraded ;)
The fragment of HTML code about the Flash animation is:

<div id="logo" style="position:absolute; width:145px; height:24px; z-index:1;
overflow: auto; visibility: visible; left: 610px; top: 42px">
<table width="145" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0"
  id="logo" width="145" height="24">
  <param name="movie" value="../flash/logo.swf">
  <param name="menu" value=false>
  <param name="quality" value="best">
  <param name="scale" value="noborder">
  <param name="wmode" value="transparent">

  <embed name="logo" src="../flash/logo.swf" menu="false" quality="best"
scale="noborder" wmode="transparent" width="217" height="101"
    type="application/x-shockwave-flash"
   
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
  </embed>
</object>
</td>
</tr>
</table>
</div>

I believe this means that whatever the object does responding to "Zakoncz"
button, the <div> element will still be z-index:1; visibility: visible; for the
browser.

I mean this is probably the wrong way to make the object invisible. Maybe I am
wrong,but I assume that the browser gives the object area to the Flash animation
to show whatever it want inside. The way to take over the area is by standard
DOM, not anything hidden in the animation. There should be some explicit code
for "logo" to change to to "hidden" or to change the z-index. Where am I wrong?

BTW, both the <div> and its child <object> have the same id name. This is
plainly wrong.
I've checked with a local copy of the compuless.pl page and Internet Explorer
that  the Flash animation vanishes even when I rename both <div> and <object>
from "logo" to something else. It means the Flash does not vanish using a
standard DOM (even hidden). And this is probably the very reason for this bug.
Target Milestone: Jan → Dec
The div with id 'logo' is not the one mentioned. :) The 'logo' flash is the
company's logotype 'Compuless.PL'. This is the thing displayed just above the
huge arrow in MSIE, in Mozilla it looks kind of strange (although Macromedia's
standalone Flash player for Linux displays it properly). But the 'logo' is a
minor problem.

The annoying flash causing blank space has id="lisc".

I suppose this would also apply to websites mentioned at mozillapl.org's Forum
(although I've seen no SWF there, but maybe I didn't have enough luck to see the
advertisements ;)

In standalone Flash player, after clicking "Zakoncz" blank space appears, too.

People at compuless.pl should be told to use DOM for this, maybe the above
script written by me. I created an swf (using http://www.flashbuttons.com
generator :) for my personal use, that had javascript:hideflash() as URL invoked
after clicking -- and it worked. So, it should work with the falling leaves
animation, too.

Thus, for a person fluent in Flash, it should be about 15 seconds of work to
make that animation act well in all browsers.
The 'logo' Flash:

<object> has width="145" height="24"
<embed> has width="217" height="101"

Changing the values in embed to the ones from object makes the logotype look
well in Mozilla.

Old Netscape browsers (4.x) used <embed> to insert the Flash. MSIE uses <object>.

It seems to me that Mozilla uses the <object> tag (as MSIE does),
but it must be written in the W3C-complaint way. If it's not, Mozilla uses
<embed> (this is what we see here). Another "quirk"? :)

The W3C-compliant method (it means, that validator.w3.org accepts it) of
inserting a Flash is as simple as that:

<object type="application/x-shockwave-flash" data="path.to.the.flash.swf"
width="145" height="24"></object>

Possible problems with this way of putting a Flash into a website, are (1) that
MSIE understands the W3C-complaint way of inserting swf, but doesn't load the
SWF in the streaming mode; and (2) it's not visible in NN4.

So, the best way (although breaking W3C rules) is to leave both tags, embed and
object, but with the same (and correct) values of width and height.
The webmaster's email address is webmaster@compuless.pl (I didn't notice it
earlier, since it was under that buggy SWF ;)
OK. You are right. It's "lisc" not "logo". I'm getting old :-( Marek, thanks for
 correcting me.

Changing all three instances of id="lisc" again does not change anything, so
this is certainly not DOM.

However, deleting the line 
  <param name="wmode" value="transparent">
causes IE to behave like Mozilla. Gotcha! It seems Mozilla (which now uses
<embed> and nor <object>) does not accept the parameter wmode="transparent".
Neither dees W3C validatror, BTW.

Knowing it's a "wmode" problem makes it very easy to find the right Bugzilla
bug. We have a dupe of bug 93959! Marking as such.

It see4ms wmode is a windowless mode for the plugin and in the current release
of Macroedia Flash Player (6.0r47) it is implemented only in the IE version, not
in the Netscape/Mozilla one. No wonder it cannot work with Mozilla.

BTW, to make it even funnier, with Flash 6.0r61 (download:
http://www.macromedia.com/software/flashplayer/special/beta/) which is supposed
to include wmode support the way Mozilla people want it (see recent comments on
bug 93959 and bug 181138), it is impossible to click "Zakoncz" at all - probably
because this version closed some security holes (see
http://securitytracker.com/alerts/2002/Oct/1005366.html).

*** This bug has been marked as a duplicate of 93959 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Nonetheless, I still think that compuless.pl should do it the DOM way. And
correct wrong sizes in the embed tag.
I will write a letter to them today.
I sent an email about the two problems ("lisc" and "logo") to the webmaster.
The site has changed. Now it is a Java applet, not Flash animation. It appears
to work. 

Changing the resolution to FIXED (first reopening).
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
FIXED.
Status: REOPENED → RESOLVED
Closed: 22 years ago22 years ago
Resolution: --- → FIXED
tech evang june 2003 reorg
Component: Europe: Central → Polish
Target Milestone: Dec → ---
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.