Vertical Offset

Another automatic cascading menu for Actinic 5 onwards. This one allows more modern DHTML effects.
Post Reply
Lonnie

Vertical Offset

Post by Lonnie »

Hi,

I am wondering if there is a way that I can have a different vertical offset for different pages. I would like to have a vertical offset of...lets say... 200 on one page and 300 on another. Is this possible?

Thank you,
Lonnie
norman
Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Post by norman »

Use a different primary template for each such page. On these pages, just before the NorCascade JavaScript add the lines

Code: Select all

<script language=JavaScript>
<!--
var mytop = 123;  // change this to suit.  set to 0 to use Norcascad default.
//-->
</script>
Now in NorCascade / Advanced add the following

Code: Select all

if ( mytop != 0 ) firsttop = mytop;
Norman
Guest

Post by Guest »

Many thanks Norman. This worked exactly as required. Thank you for taking the time out of your busy schedule to post your reply.

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

Post by norman »

You could also do this in Act_Primary.html

Code: Select all

<script language=JavaScript> 
<!-- 
var mytop = 'CUSTOMVAR:MYTOP';  
//--> 
</script>
with this in NorCascade / Advanced

Code: Select all

if ( mytop != '' ) firsttop = mytop;
And you could then use a Custom Property to control each page's offset.

Norman
Post Reply