[Javascript] Non-Scrolling Titles
pd
pd4953 at myrealbox.com
Thu Jan 31 14:49:08 CST 2002
It's working good now until I change the text size with view->text size in
the browser window. (I was surprised but it works fine when I resize the
window. I have no re-scaling going on for window resize.)
Once the script puts the two frames in sync initially, it does a continuous
loop to keep them lined up should the user scroll off to the left or right.
function scroll_it{
...
...
setTimeout('scroll_it()', 1000);
}
I have three questions about this.
1) Is there a method available to check for the browser text resizing
being changed.
2) In case this is not available, how do you break out of a continuous
loop for a mouseOver or mouseClick event? I'd like the option to click on
a link to re-align the titles and body.
3) When I put the window.onresize= function(); in the loop it acted like
it was always trying to execute and locked up. When I put it outside the
loop, it did nothing when I resized the browser window. How do you use it?
Thanks again,
Paul
At 10:11 AM 1/31/2002 -0500, you wrote:
>Hey! That worked!
>
>Thanks!
>
>Paul
>
>At 06:37 AM 1/31/2002 -0800, you wrote:
>>pd wrote:
>>
>> > My question is this. Is there a DOM method to change the content of a
>> <TD>
>> > cell in an existing table? I noticed you used the method -
>> z.style.width
>> > = x; - to change the width of the cell. How do you change the contents of
>> > a table <tr> cell?
>>
>>Rather than rewrite the cell contents, how about giving your spacer
>>image an ID and then changing its 'width' property at the same time
>>you change that of the TD?
>>
>> > I'd like the end result to be interpreted something like this:
>> > <td width=x ><IMG src="images/spacer.gif" width=x height="1"></td>
>>
>>FWIW,
>>--
>>H*
>>Hassan Schroeder ----------------------------- hassan at webtuitive.com
>>Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
>>
>> -- creating dynamic Web sites and applications since 1994 --
>>_______________________________________________
>>Javascript mailing list
>>Javascript at LaTech.edu
>>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list