The Arcive of vBulletin Modifications Site. |
|
JavaScript: Copyright Year Generation Details »»
|
|||||||||||||||||||||||||||||
|
JavaScript: Copyright Year Generation
Developer Last Online: Aug 2015
Just because a bunch of people wanted me to release this. Here's a little JavaScript I wrote that you can place in your copyright statement to keep your year up to date. Just put it where you want the year to display:
HTML Code:
<script type="text/javascript"> d = new Date(); y = d.getFullYear(); document.write(y); </script> HTML Code:
<script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script> ![]() A JS file attached just in case you want to keep it as a back up. Thanks to Gasper for reminding me to put in the text/javascript tag. ![]() Also, this works with any version of vBulletin (or should) and can be seen on vB.org. Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
*clicks install*
teehee |
|
#3
|
||||
|
||||
|
Thanks!
|
|
#4
|
||||
|
||||
|
Thankyou:up:
|
|
#5
|
||||
|
||||
|
Well, since we are using it here, id better click install.
|
|
#6
|
|||
|
|||
|
Installed.
![]() Simple hack, but very useful. |
|
#7
|
||||
|
||||
|
ahh here it was,
installed ofc.
|
|
#8
|
||||
|
||||
|
I was actually quite surprised that you used it.
I'm sure you could have whipped that up quite faster than me (it sadly took me like 5 minutes as my first code failed (document.write(Date.getFullYear()) ).
|
|
#9
|
||||
|
||||
|
Thanks dude, installed
|
|
#10
|
||||
|
||||
|
Thanks.
|
![]() |
|
|