Xoom
06-12-2003, 12:21 AM
Hi, I need help again!
I need to make my site viewable for both PC and Macintosh. For PC the "HV Menu" works very good but it screws up on a Mac. So I've configured "Top Navigational Bar 3 v3.4.1.1b" to work on a Mac.
Both of the menus use SCRIPT REL/SRC-links to external js-files implemented in the HTML-code of the site (that's 1standard I guess). So what I need is a platform-check in the HTML-code that decides wich menu that will show!
Down below I attach the scripts from each menu.
-----------------------------------------
Top Navigational Bar 3 v3.4.1.1b:
In HEAD:
<link rel="stylesheet" href="xtras/styles.css" type="text/css">
<script language="javascript" src="js/sniffer.js">
//Top Navigational Bar III v3.4.1.1b (By BrotherCake @ cake@brothercake.net)
//Permission granted/modified by Dynamicdrive.com to include script in archive
//For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com/
//This notice MUST stay intact for legal use
</script>
<script language="javascript1.2" src="js/custom.js"></script>
<script language="javascript1.2" src="js/style.js"></script>
In BODY:
<script language="javascript1.2" src="js/menu.js"></script>
-----------------------------------------
-----------------------------------------
HV Menu:
In BODY:
<script type="text/javascript">
function Go(){return}
</script>
<script type="text/javascript" src="js/exmplmenu_var.js"></script>
<script type="text/javascript" src="js/menu_com.js"></script>
<noscript>Your browser does not support script</noscript>
-----------------------------------------
So, all I really need is a way to make the browser choose between wich menu it will show (i.e which code it will show)!
Please can anybody help me?
/Xoom
I need to make my site viewable for both PC and Macintosh. For PC the "HV Menu" works very good but it screws up on a Mac. So I've configured "Top Navigational Bar 3 v3.4.1.1b" to work on a Mac.
Both of the menus use SCRIPT REL/SRC-links to external js-files implemented in the HTML-code of the site (that's 1standard I guess). So what I need is a platform-check in the HTML-code that decides wich menu that will show!
Down below I attach the scripts from each menu.
-----------------------------------------
Top Navigational Bar 3 v3.4.1.1b:
In HEAD:
<link rel="stylesheet" href="xtras/styles.css" type="text/css">
<script language="javascript" src="js/sniffer.js">
//Top Navigational Bar III v3.4.1.1b (By BrotherCake @ cake@brothercake.net)
//Permission granted/modified by Dynamicdrive.com to include script in archive
//For this and 100's more DHTML scripts, visit http://www.dynamicdrive.com/
//This notice MUST stay intact for legal use
</script>
<script language="javascript1.2" src="js/custom.js"></script>
<script language="javascript1.2" src="js/style.js"></script>
In BODY:
<script language="javascript1.2" src="js/menu.js"></script>
-----------------------------------------
-----------------------------------------
HV Menu:
In BODY:
<script type="text/javascript">
function Go(){return}
</script>
<script type="text/javascript" src="js/exmplmenu_var.js"></script>
<script type="text/javascript" src="js/menu_com.js"></script>
<noscript>Your browser does not support script</noscript>
-----------------------------------------
So, all I really need is a way to make the browser choose between wich menu it will show (i.e which code it will show)!
Please can anybody help me?
/Xoom