Author |
Message |
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Dec 26, 2003 10:59 am (20 years, 3 months ago) |
|
I've been experimenting with some Javascript these past few days, which enables you to hide/show certain elements which you may not want to see. The script remembers (or at least should!) what you last did: if you open the navigation menu, it will stay open the next time you load the page. If you close it again, it will stay closed. And so on...
However since I'm no expert on Javascript, there may be some problems (if the script does not work in NS4, that's not a problem ), so please post in this thread if you encounter any.
Areas where this script has been used:
- Quick Reply
- Navigation Menu
- Who's Online/Board Information
- Forum Index Categories
Edit: I added an access key to the menu (M). Depending on your browser you should be able to hide/show it using Alt+M. |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Dec 26, 2003 12:51 pm (20 years, 3 months ago) |
|
The only problem I see when having the nav menu open is the table width on some pages - when viewing most pages, everything is resized nicely, but the table containing posts in threads isn't; it's just wider than the browser window. It should be noted that I don't have the browser window at my full screen width (I have monitors, etc. running down the right hand side that I need to see), the browser is currently at about 930px wide.
Edit: also, whats the accesskey to show/hide quick reply?
Edit2: just realised the cause of the problem are the little button images at the bottom of your post (www, msn, etc.) - they don't wrap. |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Dec 26, 2003 1:08 pm (20 years, 3 months ago) |
|
If your browser supports the <wbr> tag (word break - allows a break where the browser would not normally ever put one, in this case in a line with no spaces in it), you should not have scrollbars anymore.
There is no accesskey for quick reply; do you think one is needed? |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Dec 26, 2003 1:48 pm (20 years, 3 months ago) |
|
that fixed the scrolling issue
I do think an accesskey for quick reply would be useful, as that would be one less think I'd need to do with the mouse |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Dec 26, 2003 1:51 pm (20 years, 3 months ago) |
|
Thing is you still wouldn't be able to open the quick reply area and move to the textarea in one shortcut. I could have one shortcut to show/hide the area, and then one to move to the textarea. But then who needs the first shortcut? (if you use quick reply, keep it open!) That's why I think only the second is needed |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Dec 26, 2003 5:04 pm (20 years, 3 months ago) |
|
ok, so whats the shortcut to move to the text area? (other than pressing tab many, many times) |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Dec 26, 2003 5:08 pm (20 years, 3 months ago) |
|
From now on it'll be Q |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Dec 26, 2003 5:34 pm (20 years, 3 months ago) |
|
brilliant
edit: just one more request can you make an accesskey for the link back to the forum index?? |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Fri Dec 26, 2003 5:40 pm (20 years, 3 months ago) |
|
Forum Index accesskey: I . |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Fri Dec 26, 2003 5:54 pm (20 years, 3 months ago) |
|
Ok, I'm happy now |
________________________________ It's turtles all the way down... |
|
|
|
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Fri Dec 26, 2003 11:26 pm (20 years, 3 months ago) |
|
what are index acess keys? i`v never heard of them lol
also do you need to press something along with g? because when i press g nothing happens |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Sat Dec 27, 2003 2:13 am (20 years, 3 months ago) |
|
Daniel meant the accesskey for the forum index, not an index accesskey for the forum
press alt+key (so alt+i, alt+q, alt+m, etc) - g isn't set as the accesskey for anything |
________________________________ It's turtles all the way down... |
|
|
|
SfCommand
Senior WebHelper
Joined: 10 Nov 2002
Posts: 143
Location: UK
|
Posted:
Sat Dec 27, 2003 12:14 pm (20 years, 3 months ago) |
|
|
|
|
thor
WebHelper
Joined: 10 Mar 2003
Posts: 71
|
Posted:
Sat Dec 27, 2003 12:38 pm (20 years, 3 months ago) |
|
Ahh right now i get them lol thanx
Yeah i would say that would be a good idea |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Dec 27, 2003 12:55 pm (20 years, 3 months ago) |
|
Right now there are only three - I don't think that's enough to warrant a special page |
________________________________
|
|
|
|
|