Michael Morris
First Post
I've been trying now for 3 weeks to try to figure out how to get the drop down menus to work for the boards and the main site. Now, the main site is in Post Nuke and these boards are VBulletin. Here's the code in question and what it does...
This queries checks the browser to see if it can handle HTML 5.0. If it can it loads the script. If it doesn't it won't load the script. This section has to appear in the header of the outputted HTML.
Same query, but this time an include is called if the condition is true.
The included file is an image map placed on a layer. I'd post it, but it would make this message darn near unreadable.
PHP:
<?php
if (strpos($HTTP_USER_AGENT, 'MSIE') <> false) {
echo "<script language=\"JavaScript1.2\" src=\"topmenu.js\"></script>";
} elseif (strpos($HTTP_USER_AGENT, 'Gecko') <> false) {
echo "<script language=\"JavaScript1.2\" src=\"topmenu.js\"></script>";
}
?>
This queries checks the browser to see if it can handle HTML 5.0. If it can it loads the script. If it doesn't it won't load the script. This section has to appear in the header of the outputted HTML.
PHP:
<?php
if (strpos($HTTP_USER_AGENT, 'MSIE') <> false) {
include("./menu/_menubody.php");
} elseif (strpos($HTTP_USER_AGENT, 'Gecko') <> false) {
include("./menu/_menubody.php");
}
?>
Same query, but this time an include is called if the condition is true.
The included file is an image map placed on a layer. I'd post it, but it would make this message darn near unreadable.
Last edited: