Click to See Complete Forum and Search --> : why it makes the page so wide??


sol8air
06-27-2003, 01:03 AM
I can't figure out how to make this neato banner NOT make the page artificially wide: there's nothing over there that I can see, the banner is only as wide as the text in it (I thought).
I won't even ask why the thing sometimes competes with the menu bar at the top (and sometimes loads normally), I'll be happy just not to see a scroll bar at the bottom indicating I am more than one screenwidth wide.

http://testsites.awcreations.com/testpage/testpage1x.html

I have the same problem with the horizontal scroller script I listed in another message below. At least I suspect it might be the same problem.

kj
sol8air@aol.com

skriptor
06-27-2003, 02:33 AM
Hi,
your problem is here
....
res=document.layers['textanim'].top
else{
textanim.style.width=document.body.offsetWidth-20 - 225;
textanim.innerHTML='<Pre><P Class="main" Align="leftr">'+message[msg]+'</P></Pre>'
res=textanim.style.top
for (x=0; x<document.all.len
...

The value 225 is the left position of your div.
Good luck, skriptor

sol8air
06-27-2003, 06:15 AM
Thank you!! I've been staring at this code for 2 days and I KNEW if had to be in that line but couldn't figure out what I needed to do to it. What does the -20 mean then? I still haven't figured out the purpose of negative number values in these things. Trial and error gets me so far :)