This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes JaveScript code align ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "JaveScript code align ?" Watch "JaveScript code align ?" New topic

JaveScript code align ?

Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
I want to my webiste add some small Java Script code:
<table cellpadding=0 cellspacing=0 border=0 width=100% bordercolor="#CCFFFF" bgcolor="#0000FF">
<td bgcolor="#CCFFFF"><font color="#000000" size="1" face="Arial" ><script language="JavaScript">
copyright=new Date();
document.write("Copyright �"+ update + "    My Company    All rightsReserved.");
But I want to insert the code at the center of my page. I tried
<center> , <p align="center"> did not work? How can I insert the code at the center of the page?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
<td bgcolor="#CCFFFF" align="center">
I agree. Here's the link:
subject: JaveScript code align ?
It's not a secret anymore!