affc Posted May 10, 2009 Share Posted May 10, 2009 Hello, I have a script that scrolls my text using javascript and it looks great. The only issue I am having is when I resize the window the text I have scrolling doesn't wrap along with the Window, it stays the same width until I press refresh. Why is this and can you get around it or is this why the text is smooth because you cant change the width of this type of text effect, thanx Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 10, 2009 Share Posted May 10, 2009 I'm guessing when you set your variables for the window height and width, you didn't change them when you resize your browser. Since there is no way to tell if the user's browser is resized, I would set a setInterval() function that executes per half a second to re-write those variables with the height and width of the browser. Quote Link to comment Share on other sites More sharing options...
affc Posted May 17, 2009 Author Share Posted May 17, 2009 Just curious, how is this done? I have never heard of this type of variable before? Is it simple to refresh the variables or do i have to change my whole scroll script, if its not simple dont worry about it, cheers Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.