XML Sitemaps Generator

Author Topic: IE8 problem when want to click button, mozilla firefox problem when menu bar could not appear..  (Read 10294 times)

sitie_aniem

  • Approved member
  • *
  • Posts: 1
i have created a system. e-leave management system for a company. but whenever i use IE8, some button could not click. it can make problem for the user to use it. i use php and javascript language and use macromedia dreamweaver MX 2004 tool.

unithead_phpddm.inc
require('unithead_phpddm.inc.php');

// Browser check 3.0
unset($browser);
$browser = 'ns'; // Default browser
if (strstr(strtolower($_SERVER'HTTP_USER_AGENT'), 'opera')) $browser = 'op';
elseif (strstr(strtolower($_SERVER'HTTP_USER_AGENT'), 'msie 6')) $browser = 'ie6';
elseif (strstr(strtolower($_SERVER'HTTP_USER_AGENT'), 'msie')) $browser = 'ie';
elseif (strstr(strtolower($_SERVER'HTTP_USER_AGENT'), 'mozilla')) $browser = 'ns';
if (stristr($_SERVER'HTTP_USER_AGENT', 'Gecko/200') && (!(stristr($HTTP_USER_AGENT, 'compatible')))) $browser = 'ns6';

1. Create Submenu

// IE and NS version
$str = '';

for ($i=0; $i VTITLE).'';
$str.= '';
}
else
{
$str.= '>';
$str.= .vtitle($PHPDDM_menu$i->VTITLE).;
$str.= '';
}

for (7a712fabddd44bbd892107f182495add=0; 7a712fabddd44bbd892107f182495add < count($PHPDDM_submenu$i); 7a712fabddd44bbd892107f182495add++)
if ($browser == 'ns')
$str.= .$PHPDDM_submenu$i7a712fabddd44bbd892107f182495add->TITLE.;
elseif ($browser == 'ie6')
$str.= .$PHPDDM_submenu$i7a712fabddd44bbd892107f182495add->TITLE.;
else
$str.= .$PHPDDM_submenu$i7a712fabddd44bbd892107f182495add->TITLE.;

$str.= "\n";
}
}

print $str;


//######################## Internet Explorer
} elseif($browser == 'ie') {?>


function handlerMM(e) {
x = event.clientX;
y = event.clientY;
temp = 'subMenu' + sel;

x1 = document.all[temp].style.posLeft;
x2 = x1 + document.all[temp].offsetWidth;
y1 = document.all[temp].style.posTop;
y2 = y1 + document.all[temp].offsetHeight;

if ((x <= x1) || (x >= x2) || (y >= y2)) { eval('document.all["subMenu'+sel+'"].style.visibility="hidden"') }
}

function showMenu(x){
eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
sel = x;
eval('document.all["subMenu'+sel+'"].style.visibility="visible"');
}

document.onmousemove = handlerMM
eval('document.all["phpddmMenu"].style.visibility="visible"');
<?



//######################## INTERNET EXPLORER DOM
} elseif($browser == 'ie6') {?>

sel=1;

function showMenu(x){
eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
sel = x;
eval('document.all["subMenu'+sel+'"].style.visibility="visible"');
window.event.cancelBubble=true
}

function hideMenu(){
eval('document.all["subMenu'+sel+'"].style.visibility="hidden"');
window.event.cancelBubble=true
}

eval('document.all["phpddmMenu"].style.visibility="visible"');

<? }
?>
</script>




unithead_phpddm.inc.ddm

1. phpddm_menu(TITLE, VTITLE, WIDTH, URL, TARGET)
2.
3. phpddm_submenu(TITLE, URL, TARGET)

$PHPDDM_menu0 = new phpddm_menu('Menu', , 55, 'main_menu.php', );

$PHPDDM_menu1 = new phpddm_menu('Home', , 55, 'welcome_page1.php', );

$PHPDDM_menu2 = new phpddm_menu('My Particulars', ,120, 'display_update_personal_particulars.php', );

$PHPDDM_menu3 = new phpddm_menu('Leave Application', , 145, '#', );
$PHPDDM_submenu30 = new phpddm_submenu('Annual Leave ', 'check_annual_leave.php', '');
$PHPDDM_submenu31 = new phpddm_submenu('Medical Leave ', 'choose_type_medical_leave.php', '');
$PHPDDM_submenu32 = new phpddm_submenu('Compassionate Leave', 'check_compassionate_leave.php', '');
$PHPDDM_submenu33 = new phpddm_submenu('Marriage Leave ', 'check_marriage_leave.php', '');
$PHPDDM_submenu34 = new phpddm_submenu('Maternity Leave ', 'check_maternity_leave.php', '');
$PHPDDM_submenu35 = new phpddm_submenu('Paternity Leave ', 'check_paternity_leave.php', '');
$PHPDDM_submenu36 = new phpddm_submenu('Study Leave', 'check_exam_leave.php', '');
$PHPDDM_submenu37 = new phpddm_submenu('Replacement Leave', 'check_replacement_leave.php', '');
$PHPDDM_submenu38 = new phpddm_submenu('No Paid Leave', 'check_cfpl_and_rl.php', '');
$PHPDDM_submenu39 = new phpddm_submenu('Carryforward Probation Leave', 'check_cfpl_leave.php', '');
//$PHPDDM_submenu310 = new phpddm_submenu('Leave Summary', 'X summary.php', '');

$PHPDDM_menu4 = new phpddm_menu('Leave Cancellation', , 145, 'leave_cancellation.php', );

$PHPDDM_menu5 = new phpddm_menu('My Leave History', , 135, 'leave_history.php', );

$PHPDDM_menu6 = new phpddm_menu('eCalendar', , 80, 'eCalendar.php', );

$PHPDDM_menu7 = new phpddm_menu('Document Tracking',, 150, '#', );
$PHPDDM_submenu70 = new phpddm_submenu('Employee', 'dt_chjEmployee.php', '');
$PHPDDM_submenu71 = new phpddm_submenu('Leave Application Summary', 'dt_leaveApplicationSummary.php', '');
$PHPDDM_submenu72 = new phpddm_submenu('Leave Selection', 'dt_leaveSelection.php', '');
$PHPDDM_submenu73 = new phpddm_submenu('Company', 'dt_companyInfo.php', '');
$PHPDDM_submenu74 = new phpddm_submenu('Panel Clinic', 'dt_panelClinicInfo.php', '');
$PHPDDM_submenu75 = new phpddm_submenu('Public Holiday', 'dt_publicHols.php', '');
$PHPDDM_submenu76 = new phpddm_submenu('Position', 'dt_position.php', '');
$PHPDDM_submenu77 = new phpddm_submenu('Announcement', 'dt_announcement.php', '');
$PHPDDM_submenu78 = new phpddm_submenu('Terms and Conditions', 'dt_terms_and_conditions.php', '');

$PHPDDM_menu8 = new phpddm_menu('Status of Application', , 160, 'all_display.php', );
?>


could somebody help me? i am very confusing.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2