Galalad
12-10-2010, 03:00 PM
1) Script: DD Tab Menu
2) http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm
Hi all, I hope someone can help with this issue…
I just been asked to modify a website which uses the DD Tab Menu script, and there is an issue with the navigation menu not working in IE7/8. It runs fine in Firefox, Chrome & Safari.
I have checked the output of the HTML code and <?php echo $menu_id; ?> is being returned, so I am stumped as to why it always displays menu_id = 0 when a new page is loaded in IE 7/8.
http://www.paxtonhouse.co.uk is the live site.
I have posted the php code used to obtain the current menu id which is in the header below. Any ideas anyone?
Thanks in advance.
<?php
$menu_id = 0;
$menu = array('paxton-house' => 0, 'planning-your-visit' => 1, 'things-to-see-and-do' => 2, 'whatson' => 3, 'weddings-and-functions' => 4, 'learning-at-paxton' => 5, 'contact' => 6);
if ( isset($menu[$sf_request->getParameter('module')]) )
{
$menu_id = $menu[$sf_request->getParameter('module')];
}
?>
<script type="text/javascript">
<!--
//<![CDATA[
// Tab Menu
ddtabmenu.definemenu("menu", <?php echo $menu_id; ?>);
//]]> -->
</script>
2) http://www.dynamicdrive.com/dynamicindex1/ddtabmenu.htm
Hi all, I hope someone can help with this issue…
I just been asked to modify a website which uses the DD Tab Menu script, and there is an issue with the navigation menu not working in IE7/8. It runs fine in Firefox, Chrome & Safari.
I have checked the output of the HTML code and <?php echo $menu_id; ?> is being returned, so I am stumped as to why it always displays menu_id = 0 when a new page is loaded in IE 7/8.
http://www.paxtonhouse.co.uk is the live site.
I have posted the php code used to obtain the current menu id which is in the header below. Any ideas anyone?
Thanks in advance.
<?php
$menu_id = 0;
$menu = array('paxton-house' => 0, 'planning-your-visit' => 1, 'things-to-see-and-do' => 2, 'whatson' => 3, 'weddings-and-functions' => 4, 'learning-at-paxton' => 5, 'contact' => 6);
if ( isset($menu[$sf_request->getParameter('module')]) )
{
$menu_id = $menu[$sf_request->getParameter('module')];
}
?>
<script type="text/javascript">
<!--
//<![CDATA[
// Tab Menu
ddtabmenu.definemenu("menu", <?php echo $menu_id; ?>);
//]]> -->
</script>