PDA

View Full Version : scripts positioned with css positioning?


nickelsto
08-11-2002, 01:16 AM
can the results of a script be positioned on a page using css positioning?

I am using the following and would like to position it behind a table in the middle of the page:
<SCRIPT LANGUAGE="JavaScript">
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();

function DayTxt (DayNumber) {
var Day=new Array();
Day[0]="Sunday";
Day[1]="Monday";
Day[2]="Tuesday";
Day[3]="Wednesday";
Day[4]="Thursday";
Day[5]="Friday";
Day[6]="Saturday";
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);

var d = new Date();

document.write("<TABLE BGCOLOR=#3321AB align=left>"+"<TR>"+"<TD class='docWriteStyle'>"+DayName +
ThisDate+"</TD>"+"</TR>"+"</TABLE>");
</script>

PauletteB
08-11-2002, 03:25 AM
Should work

document.write("<center><TABLE BGCOLOR=#3321AB>"+"<TR>"+"<TD class='docWriteStyle'>"+DayName +
ThisDate+"</TD>"+"</TR>"+"</TABLE></center>");

nickelsto
08-11-2002, 06:48 AM
thanks, i got it to work