ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Hi,
Iv been trying all kinds of scroll scripts but none of them do what i want. I know enough html/js to modify scripts a little to suite my needs but this lil problem seems beyond my (or browser?) abilities..
1. i need to scroll some content. The content can be anything generaly as it is loaded from a db with php but mostly it will just be simple html code, forms, images, text, etc.
2. i dont want to use frames or iframes to load the content as an external source file because the site is finished and this is just an extra feature that was requested. using frames would mean i would have to redo most of the site.
3. the position of the div/span (which i assume must be used to do this?) is a bit variable:
X position: the whole site is in 1 file and its centered horizontaly inside a table. so X starting position would be (window_width/2)-(content_width/2) OR, which i prefer, just the location of the DIV layer in the TD. If i dont give a DIV layer an X/Y position then it starts on the right place automatically.
Y position, the location of DIV layer in the TD or 95px from the top.
WIDTH: variable, but i can set it with php, lets say 970 pixels to keep it easy
HEIGHT: well... about 100% (window_height) - 95px(top bar) - 40 px(bottom bar), would be nice if it resized to fit when the user resizes the window....
4. yes thats about it.. ow yea... crossbrowser, eeek thats the difficult bit, thats where i keep messing up >.< iv made 2 realy nice scrollers, with custom arrows/scrollbar (which i would like in this script to..) works fine in IE and firefox... but then netscape enteres -_- and an apple computer -_-!
So any ideas? possible or not?
if theres an existing script somewhere thats shareware i dont mind paying for it by the way.
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
Iv been trying all kinds of scroll scripts but none of them do what i want. I know enough html/js to modify scripts a little to suite my needs but this lil problem seems beyond my (or browser?) abilities..
1. i need to scroll some content. The content can be anything generaly as it is loaded from a db with php but mostly it will just be simple html code, forms, images, text, etc.
2. i dont want to use frames or iframes to load the content as an external source file because the site is finished and this is just an extra feature that was requested. using frames would mean i would have to redo most of the site.
3. the position of the div/span (which i assume must be used to do this?) is a bit variable:
X position: the whole site is in 1 file and its centered horizontaly inside a table. so X starting position would be (window_width/2)-(content_width/2) OR, which i prefer, just the location of the DIV layer in the TD. If i dont give a DIV layer an X/Y position then it starts on the right place automatically.
Y position, the location of DIV layer in the TD or 95px from the top.
WIDTH: variable, but i can set it with php, lets say 970 pixels to keep it easy
HEIGHT: well... about 100% (window_height) - 95px(top bar) - 40 px(bottom bar), would be nice if it resized to fit when the user resizes the window....
4. yes thats about it.. ow yea... crossbrowser, eeek thats the difficult bit, thats where i keep messing up >.< iv made 2 realy nice scrollers, with custom arrows/scrollbar (which i would like in this script to..) works fine in IE and firefox... but then netscape enteres -_- and an apple computer -_-!
So any ideas? possible or not?
if theres an existing script somewhere thats shareware i dont mind paying for it by the way.
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!