Auto-resize custom horizontal scrollbar/slider?

EDIT: It seems that what's needed is a recalculation of the page size. And it looks like it needs to be done with the prototype slider. I haven't used it myself, so I can't really tell you what to do in this case.

There might be a method in the plug-in that does it for you I couldn't open your page, maybe overload from SO users? :p But it sounds like you'll need to resize the element that holds your custom scrollbar whenever the window is resized: window. Onresize = resizePage Then write your resizePage function to calculate the new size and change accordingly As a side note, you might want to throttle your resize function, so you won't get too many calls function throttle(method, context) { clearTimeout(method.

TId); method. TId = setTimeout(function () { method. Call(context); }, 50); } Then use this as following: window.

Onresize = function () { throttle(resizeFrame); } This means you'll wait until the user is "finished" resizing the browser window before you call your resize function.

EDIT: It seems that what's needed is a recalculation of the page size. And it looks like it needs to be done with the prototype slider. I haven't used it myself, so I can't really tell you what to do in this case.

There might be a method in the plug-in that does it for you... I couldn't open your page, maybe overload from SO users? :p But it sounds like you'll need to resize the element that holds your custom scrollbar whenever the window is resized: window. Onresize = resizePage; Then write your resizePage function to calculate the new size and change accordingly.As a side note, you might want to throttle your resize function, so you won't get too many calls.

Function throttle(method, context) { clearTimeout(method. TId); method. TId = setTimeout(function () { method.

Call(context); }, 50); } Then use this as following: window. Onresize = function () { throttle(resizeFrame); }; This means you'll wait until the user is "finished" resizing the browser window before you call your resize function.

I can't seem to make it work. I've posted the js code embedded in the html page on my first post. – Anonymous Jun 15 '09 at 10:59 I was thinking of re-initializing the slider.

Js script when the window is resized so the slider's range will be based on the viewport's width. The code responsible for the slider to work is the code I included in my first post. Can anyone help me with the code for reinitializing the slider?

– Anonymous Jun 17 '09 at 12:36.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions