(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    Can I add the value of the parameter to the link where I want my application to go when I active a submenu in the menu script?

Return to Recent Questions


Q: Can I add the value of the parameter to the link where I want my application to go when I active a submenu in the menu script?

A: Actually you can add php code inside menu links.

If you define your parameter in .js file you should write your links in the following way, for example:

<?
....
$key = 123456;
....
?>
["Home","www.domain.com/home.php?key=<? echo $key ?>", "", "", "", "", "", "", "", ],

If you define your key parameter in the php file you should move your
menuItems into your php page directly:

<?
....
$key = 123456;
....
?>

<script type="text/javascript">
var tmenuItems = [
['Deluxe Menu','http://deluxe-menu.com','icon.gif',,,,,],
['Deluxe Tree','http://deluxe-tree.com','icon.gif',,'New!',,,],
['Deluxe Tabs','http://deluxe-tabs.com','icon.gif',,'New!',,,],
["Home","www.domain.com/home.php?key=<? echo $key ?>", "", "", "", "", "", "", "", ],
];

dm_init();
</script>






Return to Recent Questions

Related:
Responsive Website Maker 15 Recommended Website Makers Arranged by Level Of Popularity  |  Mobile-friendly Page Maker  |  36 Top Eye-catching and Free AMP Elements Templates for 2021  |  Responsive Site Theme  |  Fresh CSS Bootstrap Carousel Video Players and Nav Menu Demos  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | Best AI Website Builder | AI Website Builder | AI Website Maker | AI website design generator