• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Javascript align code?

mikeshn

Senior member
Hello
I want to my webiste add some small Java Script code:
<table cellpadding=0 cellspacing=0 border=0 width=100% bordercolor="#CCFFFF" bgcolor="#0000FF">
<tr>
<td bgcolor="#CCFFFF"><font color="#000000" size="1" face="Arial" ><script language="JavaScript">
copyright=new Date();
update=copyright.getYear();
document.write("Copyright ©"+ update + "My CompanyAll rightsReserved.");
</script>
</tr>
</table>

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?
Thanks
 
try:

<table cellpadding=0 cellspacing=0 border=0 width=100% bordercolor="#CCFFFF" bgcolor="#0000FF">
<tr>
<td bgcolor="#CCFFFF">
<div align="center"><font color="#000000" size="1" face="Arial" >
<script language="JavaScript">
copyright=new Date();
update=copyright.getYear();
document.write("Copyright ©"+ update + " My Company All rightsReserved.");
</script>
</font> </div>
</tr>
</table>
 
Back
Top