HTML Coding Issue - Post ID 154901

User 432019 Photo


Registered User
14 posts

Using this code to put the copyright symbol and current year on a page. It works on some pages created for another application but not on another. It is not behind another object or having the same font color as the background. It will not appear in the preview or after publishing.

Here is the exact code used on working and non-working pages created with VSD:

<center>
<script language="JavaScript">
year=today.getYear();
if (year < 2000)
year = year + 1900;

document.write ("<font size=2 face='Times New Roman, Helvetica, sans-serif' color=#E06C34> &copy; " + year + "</font>")

</script>
</center>


Any ideas?
User 38401 Photo


Senior Advisor
10,951 posts

Hiya Tom,

If you have a link to the page(s) in question it will help those that use VSD to help you better. Good luck on it :)
User 432019 Photo


Registered User
14 posts

Here are links to a page where the code works and a sample page that doesn't:

This one works:
http://www.tbturner.com/genealogy/

This one doesn't:
http://www.tbturner.com/


The referenced coding is near the bottom when viewing the source code.
User 187934 Photo


Senior Advisor
20,271 posts

Hi Tom. I have a different one for you to try.:)
<div><center><script type="text/javascript">
copyright=new Date();
update=copyright.getFullYear();
document.write("Copyright 2001-"+ update + " <br>(your company name)<br> All rights reserved.");
</script><br><a target=_top href="http://coffeecup.com">Coffeecup.com</a></center></div>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.