Click to See Complete Forum and Search --> : XP Side menu won't work under Netscape
Motabobo
06-03-2003, 07:27 AM
Hi !
I've just found that neat script that simulates the Windows XP sidebar :
http://www.zek3vil.com/Articles/WindowsXPStyleMenu/WindowsXPStyleMenuSource.html
Unfortunately, it doesn't work for Netscape...I was also wondering if we could use table's tags instead of divs.
Finally, i'd like to save wether or not the menus are collapsed in a cookie (for both IE & NN of course).
Any idea on how to tweak this or maybe a different script ? (i didn't find any but maybe there is !)
Thanks
gil davis
06-03-2003, 08:00 AM
You have not indicated which version of Netscape you want it to work on, but it would be extremely difficult to make that system work in NS 4.
The menu uses the Microsoft proprietary filter "opacity". There is no direct support for that filter in Netscape.
It is not advisable to change the DIV structure to a TABLE structure. Tables should be reserved for displaying tabular data rather than layout. You could insert tables in the menu divs if you like.
You can use cookies to remember anything you feel the need to remember. However, the complexity of the menu system would determine the difficulty - the more complex the menu, the more information you would have to store.
Motabobo
06-03-2003, 08:24 AM
Hi !
I have a script that does almost the same thing using table's tags. It works for both IE and NN6+ (i need a script that works for NN6+). I don't mind avoiding the nice effect of the opacity filter property at all. It's just that there will be a lot of content in there and i will need a whole layout in there so that's why i'd like to use tables.
Unfortunately, i am not able (i don't know how) to add the image swap depending if the menu is collapsed or not just like the original script i posted. I am also unable to save the state for each sidebar section in a cookie.
I have uploaded a demo at :
http://pages.infinit.net/rouxjean/album_list.htm
Do you know how to implement the changes i want in this existing script ? (maybe it'd be easier !)
Charles
06-03-2003, 08:33 AM
Originally posted by rouxjean
It works for both IE and NN6+ Actually, it doesn't. Between 7 and 13% of MSIE users do not use JavaScript and you might want to worry about them, before you worry about the 2% that represent Netscape 6+ users. If you provide a JavaScript free alternative navigation on your page like you should then all will be well.
Motabobo
06-03-2003, 08:44 AM
It doesn't work ?!?!
Hmm, try this adress :
http://www21.brinkster.com/rouxjean/Photo.asp
I use that same script (with little changes) and i know it works on NN6. I once noticed on only one computer that it didn't work (Win98 with NN6.1), but i saw that only once. Maybe i messed the script while trying to clean it up a bit. I'm sorry.
I am concerned too about wether or not the user has everything he needs to view my site. This is why i have a site requirements detection written in javascript on every page (footer). You'll say that a user with javascript disabled won't be able to use it. True, but users who have not javascript enabled won't be able to view my site. Honestly, which site doesn't use javascript ? I'll find a way eventually to prevent those users who have javascript disabled to enter my site.
My site is currently under construction but i will add this to prevent, for example, users who do not use IE4 or NN6+ to enter my site :
<script type="text/javascript" language="javascript">
<!--
if (!document.getElementById) {
window.location =
"http://www.webstandards.org/upgrade/"
}
//-->
</script>
I'll probably change the window.location target though !
So, anyone could help me out ?
Motabobo
06-03-2003, 11:31 AM
I have also found this one but i think there is a lot of unecessary code in there for what i need plus there is still no cookie implementation :(