Mdkcheatz
Junior Member
Posts: 36
Joined: Oct 2009
Reputation: 0
|
[MyCode] Change Header
This code allows you to change the page's header.
Below is self explanatory
Code:
\[header\](.*?)\[/header\]
and here is the replacement code:
Code:
<script type="text/javascript">
var titletext="$1"
var thetext=""
var started=false
var step=0
var times=1
function welcometext()
{
times--
if (times==0)
{
if (started==false)
{
started = true;
document.title = titletext;
setTimeout("anim()",1);
}
thetext = titletext;
}
}
function showstatustext(txt)
{
thetext = txt;
setTimeout("welcometext()",4000)
times++
}
function anim()
{
step++
if (step==7) {step=1}
if (step==1) {document.title='>==='+thetext+'===<'}
if (step==2) {document.title='=>=='+thetext+'==<='}
if (step==3) {document.title='>=>='+thetext+'=<=<'}
if (step==4) {document.title='=>=>'+thetext+'<=<='}
if (step==5) {document.title='==>='+thetext+'=<=='}
if (step==6) {document.title='===>'+thetext+'<==='}
setTimeout("anim()",200);
}
if (document.title)
window.onload=welcometext
</script>
Hope this helps
![[Image: 20pbkoj.jpg]](https://i35.tinypic.com/20pbkoj.jpg) [adult swim]
This poor hobo needs MyBux :'(
|
|
| 10-27-2009, 06:43 AM |
|