• Howdy! Welcome to our community of more than 130.000 members devoted to web hosting. This is a great place to get special offers from web hosts and post your own requests or ads. To start posting sign up here. Cheers! /Peo, FreeWebSpace.net
managed wordpress hosting

Help with scroller/Problems with Fineline

speshul

New Member
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
 
Try replacing your current onLoad="initsc()" event on the <BODY> tag with this:

onLoad="initsc(); if (parent.Scroll) parent.myscroll.activate()"

Strange but, I had to reload the page again for me to see the page.

I suggest you to follow the full instructions from the Dynamic Duo's website rather than using some template wizard like this one.

Best regards,
 
Back
Top