title-ref.js
var x=0;
var gh=true;
function changeTitle()
{
x++;
switch(x)
{
case 1:
document.title="Studio Notex :)/>";
break;
case 2:
document.title="Studio Notex ;)/>";
break;
case 3:
document.title="Studio Notex :3";
break;
case 4:
document.title="Studio Notex :D/>";
break;
case 5:
document.title="Studio Notex >:3";
gh=false;
break;
default:
document.title="Studio Notex :)/>";
break;
}
}
do
{
setTimeout("changeTitle();", 1000);
}
while (x < 6 && gh);
index.php
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title> Studio Notex :)/> </title> <meta http-equiv="Content-Type" content="text/html; charset:utf-8" /> <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script type="text/javascript" src="title-ref.js"></script> </head> <body> <h1> Hope this works... </h1> <p> Loading.. </p> </body> </html>
It works without the two script references in <head>.

New Topic/Question
Reply


MultiQuote





|