html页面标题标签中的jQuery滚动字幕 [英] jQuery scrolling marquee in html page title tag
本文介绍了html页面标题标签中的jQuery滚动字幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用jquery在我的html标题标签中放置一个滚动字幕,但不知道如何并且似乎无法在任何地方在线找到一个很好的解释.有人可以帮我吗?
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?
推荐答案
如果只希望它像marquee
标签一样滚动,这并不是很难的事情:
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.
这篇关于html页面标题标签中的jQuery滚动字幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文