HiveMinds Forum Index HiveMinds
We've arrived. Please notify the admins of any problems.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Menu / Flash Question

 
Post new topic   Reply to topic    HiveMinds Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
rodrigo-designz
Worker Bee


Joined: 09 Nov 2002
Posts: 68
Location: Toronto, Canada

PostPosted: Thu Feb 26, 2004 5:41 pm    Post subject: Menu / Flash Question Reply with quote

http://myownbbq.4379.com

Ok one of my buddies is having a problem with this flash going over the menu. Is their anyway to fix this problem?

To see the problem, roll over BBQ Grills > VC Signature Series

He is using a menu from www.youngpup.net

Thanks a lot.
rodrigo
_________________
http://www.nirmal.ca
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
zontar
DocBook Jockey


Joined: 08 Nov 2002
Posts: 4094
Location: Still in Stockholm

PostPosted: Thu Feb 26, 2004 8:41 pm    Post subject: Reply with quote

You can't control z-axis positioning for embedded media -- it's always displayed on top.

Looks okay to me, tho.

(Moving this to Multimedia, as I don't see what this has to do with PHP...?)
_________________
Read The Fine Manual

(...and I for one welcome our new
solar-technocratic corporate overlords...)

Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbmasters
Senior Royalty


Joined: 09 Nov 2002
Posts: 2433

PostPosted: Fri Feb 27, 2004 6:20 am    Post subject: Reply with quote

Yeah, I deal with this limitation quite often, flash will always lay on top of everything. You will also see this problem in some browsers when dealing with That type of dropdown falling over select menu form elements, and sometimes any form element.
_________________
Dan
dB Masters Multimedia - Google AdSense Tips - MonaVie
Back to top
View user's profile Send private message
SoopahMan
Can do ANYTHING with JavaScript, pigs, and ice


Joined: 09 Nov 2002
Posts: 4747
Location: Boston, MA

PostPosted: Fri Feb 27, 2004 1:04 pm    Post subject: Reply with quote

Try hiding the embedded media with visibility: hidden when menus come up. In addition to the menu displaying properly, slower machines will take much more nicely to the mixture of script and Flash running in the browser.
Back to top
View user's profile Send private message Send e-mail
lokust
Helper Bee


Joined: 19 Mar 2003
Posts: 112
Location: Denmark

PostPosted: Tue Mar 09, 2004 1:50 pm    Post subject: Reply with quote

Quote:
Try hiding the embedded media with visibility: hidden when menus come up. In addition to the menu displaying properly, slower machines will take much more nicely to the mixture of script and Flash running in the browser.


How could I associate the javascipt menu with the EMBED tag?
Which Javascipt event could handle that association ?

So Flash will come out on top whatever . changing the z-indexing of the menu would have no effect ?
Back to top
View user's profile Send private message Visit poster's website
Jason Gross
Supreme Overlord of All Things Purple


Joined: 31 Dec 2002
Posts: 911
Location: Minneapolis, MN

PostPosted: Tue Mar 09, 2004 2:09 pm    Post subject: Reply with quote

Yes, changing the zIndex of the layer/div that the Flash content is on will have no effect on it. You can hide that piece of layer/div with either (as Soop mentioned above) the visibility:hidden or the display:none stylesheet properties.

I'm not sure of visibility:hidden, but the nice thing about display:none is that the Flash won't "play" until the display is changed from none to another state (inline, block..)
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SoopahMan
Can do ANYTHING with JavaScript, pigs, and ice


Joined: 09 Nov 2002
Posts: 4747
Location: Boston, MA

PostPosted: Tue Mar 09, 2004 9:03 pm    Post subject: Reply with quote

When the menu is clicked - that'd be a .onclick event - you'd need to fetch the Embed element and hide it - as:
Code:
<embed id="flashAnimation" .../>

Code:
document.getElementById( 'flashAnimation' ).style.visibility = 'hidden';
Back to top
View user's profile Send private message Send e-mail
lokust
Helper Bee


Joined: 19 Mar 2003
Posts: 112
Location: Denmark

PostPosted: Thu Mar 11, 2004 10:37 pm    Post subject: Reply with quote

This is how I introduce the menu into the page:

Code:
<script language = "JavaScript" src = "nav/menu.js"></script>
<script language = "JavaScript" src = "nav/menu_items.js"></script>
<script language = "JavaScript" src = "nav/menu_tpl.js"></script>
<script language = "JavaScript">
  <!--//

  new menu (MENU_ITEMS, MENU_POS);

  //-->
  </script>


In order to associate the Onlick event with the menu would I need to give the menu a name ?

Code:
document.getElementById( 'flashAnimation' ).style.visibility = 'hidden';


This would need to be introduced as a function right ?
Back to top
View user's profile Send private message Visit poster's website
SoopahMan
Can do ANYTHING with JavaScript, pigs, and ice


Joined: 09 Nov 2002
Posts: 4747
Location: Boston, MA

PostPosted: Fri Mar 12, 2004 1:46 pm    Post subject: Reply with quote

Ah I see. So the menu is generated by a script whose code you have no interaction with.

Unfortunately you'd have to modify their script to do this. Somewhere in their menu code is a function that fires when a menu is opened - you'd need to add the line of Javascript to that. You're not looking for an onclick event anymore, just the script's function for opening menus.
Back to top
View user's profile Send private message Send e-mail
lokust
Helper Bee


Joined: 19 Mar 2003
Posts: 112
Location: Denmark

PostPosted: Sat Mar 13, 2004 12:40 am    Post subject: Reply with quote

Of the 3 js files that constitute the menu, I believe I have found the code block responsable for opening the menu.

And within that code block I have isolated

Code:
id="e'+TMS.TME+'_'+this.TME+'o" class="'+this.TMg(0,0)+'" href="'+this.TMD[1]+'"'+(this.TMD[2]&&this.TMD[2]['tw']?' target="'+this.TMD[2]['tw']+'"':'')+' style="position: absolute; top:
'+this.TMV+'px; left: '+this.TMU+'px; width: '+this.TMQ('width')+'px; height: '+this.TMQ('height')+'px; visibility: hidden;'+' z-index: '+this.TMT+';"
'+'onclick="return TMA['+TMS.TME+'].onclick('+this.TME+');" onmouseout="TMA['+TMS.TME+'].onmouseout('+this.TME+');"
onmouseover="TMA['+TMS.TME+'].onmouseover('+this.TME+');" onmousedown="TMA['+TMS.TME+'].onmousedown('+this.TME+');"><div 
id="e'+TMS.TME+'_'+this.TME+'i"
class="'+this.TMg(1,0)+'">'+this.TMD[0]+"</div></a>\n");
this.TMh=document.getElementById('e'+TMS.TME+'_'+
this.TME+'i');this.TMY=document.getElementB
yId('e'+TMS.TME+'_'+this.TME+'o');this.TMc=!this.TMT;
if(this.TMD.length<4)return;this.TMG=[];for(var TMW=0;TMW<this.TMD.length-3;TMW++)new
TMX(this,TMW)}function TMk(TMR)


I see some reference to the z-indexing followed by Onclick so I figure that's close to target but i'm really not familiar with javascript syntax so I'm not 100% sure where to insert
Code:
document.getElementById( 'flashAnimation' ).style.visibility = 'hidden';


can you advise?

The full code block
can be found here
Back to top
View user's profile Send private message Visit poster's website
lokust
Helper Bee


Joined: 19 Mar 2003
Posts: 112
Location: Denmark

PostPosted: Thu Mar 18, 2004 11:15 pm    Post subject: Reply with quote

okay i've inserted it all over the shop and i get errors every damn time.
could someone maybe hint at where it might go?
I know i should RTFM and believe me I will when I get time
I can do dishes and can even pull off a fine Andy Kaufman impersonation if required...Shocked
Back to top
View user's profile Send private message Visit poster's website
jonhmardona
New Bee


Joined: 18 Sep 2009
Posts: 2

PostPosted: Tue Sep 22, 2009 1:43 am    Post subject: Need to know Reply with quote

I have a Gateway laptop running Ubuntu 9.04 the Jaunty Jackalope. I have tried all sorts of things to get flash to work on the computer. I have done this a few times:

sudo apt-get install flashplugin-nonfree

That hasn't worked. I have tried to get Firefox updates to work with flash. That doesn't work.

Does anyone have flashing working on there computer? And how did you get it to work?
_________________
[I am a stupid spammer and tried to spam a link in my signature. Unfortunately for me the awesome admins stopped me.]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    HiveMinds Forum Index -> Multimedia All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group