Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:02

Same menu_data.js with different positioning


Poster: andy_vdg
Dated: Thursday August 5 2004 - 14:10:35 BST

Does anyone know if it is possible to have the same menu_data.js just with different positioning for different pages?

I have a homepage that would need to have the navigation with:

Code: Select all

screenposition="top,center";
top="offset=197";


but it should be

Code: Select all

screenposition="top,center";
top="offset=15";

for all other pages.

I have solved it by just creating a new menu_data-index.js and loading that for my index.php with the different variables for the top offset. But now if I want to change anything in my navigation I have to change two files all the time. Is there a workaround for this in PHP or javascript? Like

Code: Select all

if filename is index.php {set top="offset=197"}; else {set top="offset=15"};


Here are the examples:
Index.php
Subpage with different positioning

Thanks
Andy