PDA

View Full Version : ScrollText problem


loe
19.05.2001, 03:02
I seem to have a problem with the scroll text script. I have it working fine when I set the style type as:

<style type="text/css">
#divUp{position:absolute; left:610; top:10}
#divDown{position:absolute; left:610; top:255}
#divCont{position:absolute; width:550; height:250; overflow:hidden; top:20; left:30; clip:rect(0,550,250,0); visibility:hidden}
#divText{position:absolute; top:0; left:0}
</style>


But I seem to have a problem when I set it to:

<style type="text/css">
#divUp{position:absolute; left:448; top:10}
#divDown{position:absolute; left:448; top:255}
#divCont{position:absolute; width:443; height:250; overflow:hidden; top:20; left:20; clip:rect(0,443,250,0); visibility:hidden}
#divText{position:absolute; top:0; left:0}
</style>

The problem is, is the scroll down button doesn't work.. when I put the mouse cursor over it, it doesn't change to a little hand (a link). But the scroll up button does. Can anyone offer some help??
Thanks!!

simu
19.05.2001, 07:54
could you give me the hole code or a Link, maybe I could help you

~=| simu |=~
| [url="http://www.simu.cjb.net"]www.simu.cjb.net[/url:z7vtzhqsah] | [url="http://www.retedesign.cjb.net"]www.retedesign.cjb.net[/url:z7vtzhqsah] | [url="mailto:simuk@freesurf.ch"]simuk@freesurf.ch[/url:z7vtzhqsah] |

DCage
19.05.2001, 12:37
Hi,

If you give a layer width, height, and clip dimensions it's going to occupy the assigned space on the screen whether you can see it or not. In your second example, the divCont layer is 443px wide, 250px high, and is 20px from top and left. The scroll arrows are only 448px from the left. Since divCont extends to 463px right and 270px down, it covers the bottom arrow. The top arrow has 10px clear before it meets divCont.

To see what's going on and give yourself a guide while setting up the scroller, temporarily add a color to divCont:

#divCont{position:absolute; width:443; height:250; overflow:hidden; top:20; left:20; clip:rect(0,443,250,0); visibility:hidden; background-color:ffff00}

loe
19.05.2001, 22:48
Oh.. I see! I must have forgotten that the pixels included the size from the side etc. Thankyou for you help!!