innkeeper9 wrote:tepidarium wrote:
Kevin - Is there a way to augment the javascript cod you wrote above to include other content other than the menu (ie. so I could provide an alternative text based links) Something like an if then else statement?
That's a good question. I wonder if that could be designed to have nn4 choose version 3, and all the others to choose version 5? Not that the menu doesn't work well in nn4, but the design I do causes problems in nn4.
Ruth
Tep: Yes. All things are possible through javascript... well... ok, not really, but many things are and this should be one of them. Generally, like so:
Code: Select all
<script language="javascript">
_NS4 = (document.layers) ? true : false;
if (_NS4) {
// do ns4 stuff
}
else {
// do non-ns4 stuff, like loading menu scripts.
}
</script>
If you want more specifics, maybe we can look at that a bit later. Here's another thought... Could you put some regular html links behind where the menu normally is? They'd always be there (also good for search engine indexing), but when the menu is present, it would cover up the links, so it would be as if they weren't there. But if the menu wasn't present (NS4), the links would be uncovered and available.
Ruth: Very interesting idea (loading v3 menu for NS4). And definitely do-able. I believe tepidarium would still run into the flash problem, although v3 has a div hiding function also (and I also wrote some div hiding scripts for v3 that were definitely effective against NS4).
Kevin