| View previous topic :: View next topic |
| Author |
Message |
rodrigo-designz Worker Bee
Joined: 09 Nov 2002 Posts: 68 Location: Toronto, Canada
|
Posted: Thu Feb 26, 2004 5:41 pm Post subject: Menu / Flash Question |
|
|
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 |
|
 |
zontar DocBook Jockey
Joined: 08 Nov 2002 Posts: 4094 Location: Still in Stockholm
|
|
| Back to top |
|
 |
dbmasters Senior Royalty
Joined: 09 Nov 2002 Posts: 2433
|
Posted: Fri Feb 27, 2004 6:20 am Post subject: |
|
|
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 |
|
 |
SoopahMan Can do ANYTHING with JavaScript, pigs, and ice
Joined: 09 Nov 2002 Posts: 4747 Location: Boston, MA
|
Posted: Fri Feb 27, 2004 1:04 pm Post subject: |
|
|
| 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 |
|
 |
lokust Helper Bee
Joined: 19 Mar 2003 Posts: 112 Location: Denmark
|
Posted: Tue Mar 09, 2004 1:50 pm Post subject: |
|
|
| 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 |
|
 |
Jason Gross Supreme Overlord of All Things Purple
Joined: 31 Dec 2002 Posts: 911 Location: Minneapolis, MN
|
Posted: Tue Mar 09, 2004 2:09 pm Post subject: |
|
|
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 |
|
 |
SoopahMan Can do ANYTHING with JavaScript, pigs, and ice
Joined: 09 Nov 2002 Posts: 4747 Location: Boston, MA
|
Posted: Tue Mar 09, 2004 9:03 pm Post subject: |
|
|
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 |
|
 |
lokust Helper Bee
Joined: 19 Mar 2003 Posts: 112 Location: Denmark
|
Posted: Thu Mar 11, 2004 10:37 pm Post subject: |
|
|
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 |
|
 |
SoopahMan Can do ANYTHING with JavaScript, pigs, and ice
Joined: 09 Nov 2002 Posts: 4747 Location: Boston, MA
|
Posted: Fri Mar 12, 2004 1:46 pm Post subject: |
|
|
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 |
|
 |
lokust Helper Bee
Joined: 19 Mar 2003 Posts: 112 Location: Denmark
|
Posted: Sat Mar 13, 2004 12:40 am Post subject: |
|
|
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 |
|
 |
lokust Helper Bee
Joined: 19 Mar 2003 Posts: 112 Location: Denmark
|
Posted: Thu Mar 18, 2004 11:15 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
jonhmardona New Bee
Joined: 18 Sep 2009 Posts: 2
|
Posted: Tue Sep 22, 2009 1:43 am Post subject: Need to know |
|
|
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 |
|
 |
|