Right-hand Side-bar
- becki_kanou
- Posts: 3402
- Joined: Sat 04.19.2008 10:09 pm
- Skype chat: yes_becki
- Native language: U.S. English, 米語
- Gender: Female
- Location: Hyogo, Japan
- Contact:
Right-hand Side-bar
Before it would pop-up for a moment and then hide itself, but recently it's been staying which is a pain because it blocks everything under it like posters' names access to smilies etc. Is there any way to get it to back to how it was?
そうだ、嬉しいんだ、生きる喜び!
例え胸の傷が痛んでも。
例え胸の傷が痛んでも。
- phreadom
- Site Admin
- Posts: 1762
- Joined: Sun 01.29.2006 8:43 pm
- Native language: U.S. English (米語)
- Gender: Male
- Location: Michigan, USA
- Contact:
Re: Right-hand Side-bar
It still works here in both Firefox (3.6) and IE (IE8)... Is this something that is intermittent? Does it work if you resize the window and then restore it? (like if you double click on the titlebar, and then double click again or something)
I haven't changed anything in the code, so it shouldn't be any different.
I haven't changed anything in the code, so it shouldn't be any different.

猿も木から落ちる
- tōkai devotee
- Posts: 1113
- Joined: Thu 08.02.2007 6:15 am
- Native language: Australian!
Re: Right-hand Side-bar
Mine was doing the same thing as Becki's for a while, but it's ok tonight. Perhaps it was a temporary bug! Is yours back to normal again, Becki??
- becki_kanou
- Posts: 3402
- Joined: Sat 04.19.2008 10:09 pm
- Skype chat: yes_becki
- Native language: U.S. English, 米語
- Gender: Female
- Location: Hyogo, Japan
- Contact:
Re: Right-hand Side-bar
It's still acting up, I've tried a few different things and nothing seems to work. Hopefully it is a temporary thing.
そうだ、嬉しいんだ、生きる喜び!
例え胸の傷が痛んでも。
例え胸の傷が痛んでも。
Re: Right-hand Side-bar
It works onresize but not onload. (Refresh the page when it's too small to contain the sidebar; the sidebar won't disappear)
I had some time to kill so I poked around the source code.
The problem is the function which hides the sidebar onload is never fired.
(There are a few places where window.onload is set, and there seems to be an array onload_functions to stop things colliding with each other. Instead of setting window.onload = getWidth, do)
The bigger problem though is that http://s3.buysellads.com/ac/bsa.js which is included for advertising purposes sets window.onload at the end of the file >_>; This overrides the implementation that evals the functions in the onload_functions array
I guess all you can do is onload on another element (not window) or change what you're doing advertising-wise? ._. (Or ask them to add to window.onload instead of setting it?)
(Are you sure it works for FF and IE? ._.)
I had some time to kill so I poked around the source code.
The problem is the function which hides the sidebar onload is never fired.
(There are a few places where window.onload is set, and there seems to be an array onload_functions to stop things colliding with each other. Instead of setting window.onload = getWidth, do
Code: Select all
onload_functions.push('getWidth()');
The bigger problem though is that http://s3.buysellads.com/ac/bsa.js which is included for advertising purposes sets window.onload at the end of the file >_>; This overrides the implementation that evals the functions in the onload_functions array

I guess all you can do is onload on another element (not window) or change what you're doing advertising-wise? ._. (Or ask them to add to window.onload instead of setting it?)
(Are you sure it works for FF and IE? ._.)
- becki_kanou
- Posts: 3402
- Joined: Sat 04.19.2008 10:09 pm
- Skype chat: yes_becki
- Native language: U.S. English, 米語
- Gender: Female
- Location: Hyogo, Japan
- Contact:
Re: Right-hand Side-bar
OK! It works if I manually resize it, without reloading. Thanks phreadom, tokai and Hyperworm!
そうだ、嬉しいんだ、生きる喜び!
例え胸の傷が痛んでも。
例え胸の傷が痛んでも。
- phreadom
- Site Admin
- Posts: 1762
- Joined: Sun 01.29.2006 8:43 pm
- Native language: U.S. English (米語)
- Gender: Male
- Location: Michigan, USA
- Contact:
Re: Right-hand Side-bar
Thanks a bunch for the troubleshooting... now that I've spent ~2 weeks learning JavaScript and crunching on a project on the side, I actually totally understand what you're saying and feel like digging into it to fix it as I actually understand what's happening. 
Funny how a few weeks of studying can really change how you think about things. I had kind of forgotten that I didn't really know JavaScript when I hacked together that functionality.... and now I have a much better grasp of it, so the problem might have been readily apparent to me now, had I just taken the time to look.
hehe
Maybe after a nap and then some coffee...

Funny how a few weeks of studying can really change how you think about things. I had kind of forgotten that I didn't really know JavaScript when I hacked together that functionality.... and now I have a much better grasp of it, so the problem might have been readily apparent to me now, had I just taken the time to look.

Maybe after a nap and then some coffee...

猿も木から落ちる