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屋!
查看全文