Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery scrolling marquee in html page title tag

I want to place a scrolling marquee in my html title tag using jquery but don't know how and can't seem to find a good explanation online anywhere. Can someone help me please?

like image 358
sadmicrowave Avatar asked Dec 09 '25 22:12

sadmicrowave


1 Answers

That's not very hard to do if you just want it to scroll like the marquee tag:

(function titleMarquee() {
    document.title = document.title.substring(1)+document.title.substring(0,1);
    setTimeout(titleMarquee, 200);
})();

That's pretty basic but should give you an idea on how to tweak it to your liking.

like image 74
Tatu Ulmanen Avatar answered Dec 12 '25 10:12

Tatu Ulmanen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!