By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,699 Members | 1,611 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,699 IT Pros & Developers. It's quick & easy.

JQuery Marquee if needed

P: 347
Does anyone know or come across a way of getting JQuery to marquee text if it is too long for the area i have it in.

At the moment i have some text that is going onto two lines on my page, i want to try an marquee it if it is too long

example can be seen here


Mar 6 '12 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 16,027
Check the scrollWidth compared to the element's width. If it's greater, use any marquee plugin (perhaps making sure the markup is compatible with the plugin if required).
Mar 17 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.