FireFox, Opera, Chrome AND IE9 work with MooTools 1.3, IE7/IE8 somehow don't. So just load the 1.2 MooTools Core & More and the original Menumatic Version for IE7/IE8. For all other Browsers, load the 1.3 MooTools Library and the changed menumatic JS.
example:
<?php
$browser = $_SERVER['HTTP_USER_AGENT'];
if(stristr($browser, "MSIE 8") or stristr($browser, "MSIE 7")){
?>
< script type="text/javascript" src="./files/js/mootools-1.2.1-core.js">
< script type="text/javascript" src="./files/js/mootools-1.2-more.js">
< script type="text/javascript" src="./files/js/MenuMatic_0.68.3_original.js">
<?php
} else {
?>
< script type="text/javascript" src="./files/js/mootools-1.3.1-core.js">
< script type="text/javascript" src="./files/js/mootools-1.3.1.1-more.js">
< script type="text/javascript" src="./files/js/MenuMatic_0.68.3_changed.js">
<?php
}
?>
hope it works for you guys too ...
Lesezeichen