Page 1 of 1
Vertical Offset
Posted: Tue Nov 09, 2004 8:08 pm
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
Posted: Wed Nov 10, 2004 12:40 am
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
Posted: Wed Nov 10, 2004 5:51 pm
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
Posted: Wed Nov 10, 2004 11:47 pm
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