PDA

View Full Version : Page scroller: Left corner instead of right?



bruden2tusen
07-16-2006, 12:42 PM
1) Script Title: Page Scroller (aka Custom Scrollbar)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/pagescroller.htm

3) Describe problem:
Hey, i've got a problem that maybe someone can help me with...
I'm using the page scroller (which is great!!), only i'd like the arrows to be in the left corner instead of the right corner, what do i do to change this?

bruden2tusen
07-17-2006, 04:12 PM
Could someone please help me?

jscheuer1
07-17-2006, 05:40 PM
Find this part in the script:


if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft)+parseInt(window_width)-Hoffset+"px"
cross_obj.style.top=dsoctop+parseInt(window_height)-Voffset+"px"
}
else if (document.layers){
cross_obj.left=dsocleft+window_width-Hoffset
cross_obj.top=dsoctop+window_height-Voffset
}
}

Make it like so:


if (document.all||document.getElementById){
cross_obj.style.left=parseInt(dsocleft)+Hoffset+"px"
cross_obj.style.top=dsoctop+parseInt(window_height)-Voffset+"px"
}
else if (document.layers){
cross_obj.left=dsocleft+Hoffset
cross_obj.top=dsoctop+window_height-Voffset
}
}

bruden2tusen
07-17-2006, 06:20 PM
Great!! Thank you so much!!