[HELP] How to Make Website Title A Marquee

Status
Not open for further replies.

Twisting

HFFM
Sep 4, 2011
362
79
Im not sure if it can be done but how can my website title

PHP:
<title>TITLE HERE</title>

become a marquee using marquee tags

PHP:
<marquee>Marquee Text</marquee>

Please Help :)

P.S. If you need further clarification on what I mean, reply below
 

Gajeel

Well-Known Member
Oct 4, 2011
2,411
413
Im not sure if it can be done but how can my website title

PHP:
<title>TITLE HERE</title>

become a marquee using marquee tags

PHP:
<marquee>Marquee Text</marquee>

Please Help :)

P.S. If you need further clarification on what I mean, reply below
Do you mean the title in the tabs? (e.g. the title of the site is "12345" then it scrolls on the tab). If it is, I guess it is not possible.
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
It is possible in JavaScript, but it looks horrible and tacky. Plus, it wouldn't work if people don't have JavaScript enabled on their browsers.
 

brsy

nah mang
May 12, 2011
1,530
272
In technical terms yes. jQuery is a library to be used with Javascript. The whole point is to minimize the code, making life a whole lot easier.
 

Lolsmen

Member
Feb 5, 2012
42
6
Same here ;o I want to know how to marquee title :(

well I know the code xD

The code is :-


<script language=javascript>
var rev = "fwd";
function titlebar(val)
{
var msg = "I think this is what you are looking for.";
var res = " ";
var speed = 100;
var pos = val;

msg = " |--- "+msg+" ---|";
var le = msg.length;
if(rev == "fwd"){
if(pos < le){
pos = pos+1;
scroll = msg.substr(0,pos);
document.title = scroll;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "bwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
else{
if(pos > 0){
pos = pos-1;
var ale = le-pos;
scrol = msg.substr(ale,le);
document.title = scrol;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
else{
rev = "fwd";
timer = window.setTimeout("titlebar("+pos+")",speed);
}
}
}

titlebar(0);
</script>
 
Status
Not open for further replies.

Users who are viewing this thread

Top