I was using http://fineline.xs.mw/dhtml-scrollbar.html to make a scrolling window. Apparently it works fine for other people, but not me. I've tried in both NS (4.7 only, but the one on the main site works fine) and IE 5.x. Is there something I'm doing wrong, like some variable I'm messing up? Here's the current code:
*html*
*head*
*SCRIPT SRC='dynlayer.js'*alert('Cannot find dynlayer.js')*/SCRIPT*
*SCRIPT SRC='scroll.js'*alert('Can't find scroll.js')*/SCRIPT*
*SCRIPT*
*!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function initsc() {
myscroll.load('test.html')
}
myscroll = new Scroll("myscroll",null,150,50,250,250)
myscroll.setMargins(50,50,50,50)
myscroll.setDimensions(-2,0,16,myscroll.h,16,16,40,2)
myscroll.clipImages = false
myscroll.setImages('BAR.jpg','BAR.jpg','bar_1.jpg','bar_1onclick.jpg','bar_2.jpg','bar_2onclick.jpg','bg-gray.jpg')
myscroll.setColors(null,"#000000",null,null,null)
myscroll.build()
//--*
*/SCRIPT*
*/head*
*BODY onLoad="initsc()"*
*A HREF="javascript:myscroll.load('test.html')"* Link */a*
*SCRIPT*
document.write(myscroll.div)
*/SCRIPT*
*/body*
*/html*
(where * is < and > respectively)
I've kept it as bare as possible. I'm currently DHTML stupid and need some guidance, and will be extremely grateful to anyone who can help me.
Thank you!
Genevieve
*html*
*head*
*SCRIPT SRC='dynlayer.js'*alert('Cannot find dynlayer.js')*/SCRIPT*
*SCRIPT SRC='scroll.js'*alert('Can't find scroll.js')*/SCRIPT*
*SCRIPT*
*!--
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false
function initsc() {
myscroll.load('test.html')
}
myscroll = new Scroll("myscroll",null,150,50,250,250)
myscroll.setMargins(50,50,50,50)
myscroll.setDimensions(-2,0,16,myscroll.h,16,16,40,2)
myscroll.clipImages = false
myscroll.setImages('BAR.jpg','BAR.jpg','bar_1.jpg','bar_1onclick.jpg','bar_2.jpg','bar_2onclick.jpg','bg-gray.jpg')
myscroll.setColors(null,"#000000",null,null,null)
myscroll.build()
//--*
*/SCRIPT*
*/head*
*BODY onLoad="initsc()"*
*A HREF="javascript:myscroll.load('test.html')"* Link */a*
*SCRIPT*
document.write(myscroll.div)
*/SCRIPT*
*/body*
*/html*
(where * is < and > respectively)
I've kept it as bare as possible. I'm currently DHTML stupid and need some guidance, and will be extremely grateful to anyone who can help me.
Thank you!
Genevieve