NorTree and Embedded Objects

Basic cascading menu for Actinic 5 onwards.
Post Reply
sgtbash
Posts: 6
Joined: Tue Mar 21, 2006 10:27 pm

NorTree and Embedded Objects

Post by sgtbash »

Hi,

I am using NorTree with Actinic version 7 and am experiencing problems with embedded objects, i have seen other people are having the same problem but i have not found a solution.

Is there a solution for the menu appearing behind objects?

Thanks
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

Can you post the site's URL so I can see the problem (and also check to see whether you've contributed)?
Norman
sgtbash
Posts: 6
Joined: Tue Mar 21, 2006 10:27 pm

Post by sgtbash »

http://nineplus.1337server.co.uk

its on the products link.

(What do you expect as a donation?)
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

Hi

Flash is a real pain as it sits above everything else. NorTree has 3 parts; a GUI configration program and the Actinic section structure interface (that I wrote) and the HV_Menu code that Ger Versluis in Holland (http://www.burmees.nl/menu/menus.htm) wrote. Ger has this info on how to workaround the embedded object problem
Question 8: Why do the menu items drop behind some HTML elements.?
Some elements, like some form elements, and objects like Flash are outside the z-order of the document. They are always on top. This is browser behavior and cannot be changed. One way to work around that is to temporarely hide the element in question when the menu drops.
1- Put the form(s), element(s) or object(s) inside a named div:
<div id='HideDiv1' style="position:relative;"> element(s) </div>
2- Make an array in the document with the elements
<script type='text/javascript'>
var HideArray=['HideDiv1','HideDiv2',...............];
</script>
<body>
3- Replace the empty functions BeforeFirstOpen and AfterCloseAll (Found in the variable file) with:
function BeforeFirstOpen(){
if(ScLoc.HideArray){
var H_A,H_Al,H_El,i;
H_A=ScLoc.HideArray;
H_Al=H_A.length;
for (i=0;i<H_Al;i++){
H_El=ScLoc.document.getElementById(H_A).style;
H_El.visibility=M_Hide}}}

function AfterCloseAll(){
if(ScLoc.HideArray){
var H_A,H_Al,H_El,i;
H_A=ScLoc.HideArray;
H_Al=H_A.length;
for (i=0;i<H_Al;i++){
H_El=ScLoc.document.getElementById(H_A).style;
H_El.visibility=M_Show}}}
You can modify BeforeFirstOpen and AfterCloseAll in Nortree / Advanced.

Re donations. Cash ones tend to be around £25, but if you have any sleeveless shorties that would be nice (best tell me what sizes you have).
Norman
Post Reply