Reputation: 1
I am currently using some javascript to scroll some text on my web page. Here is the link: http://javascript.about.com/library/bltick2.htm - (I tried pasting the code into this message, but had some difficulty with it).
This line of code sets the width: var tWidth='300px';
My question is this: How can I set this to be the size of the browser window... basically to set the text to scroll from one side of the page to another?
thanks
Upvotes: 0
Views: 1184
Reputation: 53371
var tWidth = window.innerWidth + 'px';
Or
var tWidth = '100%';
Thanks to JKing for the revisions.
Upvotes: 1