I have the following
javascript:
// JavaScript Document
function clock(){var date=new Date()
var year=date.getYear()
var month=date.getMonth()
var day=date.getDate()
var hour=date.getHours()
var minute=date.getMinutes()
var second=date.getSeconds()
var months=new
Array("","January","February","March","April","May","June","July","August","September","October","November","Decemberzz")
var monthname=months[month]
if(hour>12){hour=hour
}
if(minute
}
if(second
}
document.title="Welcome! - "+monthname+" "+day+", "+year+" -
"+hour+":"+minute+":"+second
setTimeout("clock()",1000)
}//-->
{
var m1 = "Welcome to IT/AVA/Film";
var m2 = " ";
var m3 = "Updates: Please refer to the duties column for more
information!";
var m4 = "Thank You for visiting!";
var m5 = "Have A Nice Day!";
var msg=m1+m2+m4+m2+m5;
var d = new Date()
var h = d.getHours()
if (h < 12) var out = "Good morning! ";
else if (h < 17) var out = "Good afternoon! ";
else if (h < 24) var out = "Good evening! ";
var c = 1;
if (seed > 100) {
seed--;
var cmd="scrollit_r2l(" + seed + ")";
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 100 && seed > 0) {
for (c=0 ; c < seed ; c++) {
out+=" ";
}
out+=msg;
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else if (seed <= 0) {
if (-seed < msg.length) {
out+=msg.substring(-seed,msg.length);
seed--;
var cmd="scrollit_r2l(" + seed + ")";
window.status=out;
timerTwo=window.setTimeout(cmd,100);
}
else {
window.status=" ";
timerTwo=window.setTimeout("scrollit_r2l(100)",75);
}
}
}
And I wish to attach to my index
page:
But when I attach the script into the
page, it does not work.
I have tried and attach the script into a page without any frames,
and the script works.
Can anyone assist me to attach the script into my index page so
that it can work?
Millions of thanks 