vB3 JavaScript: Copyright Year Generation

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,503
    7,742
    321
    localhost
    Heisenberg submitted a new resource:

    - JavaScript: Copyright Year Generation

    vB Version: 3.8.x

    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:

    Code:
    <script type="text/javascript">
    d = new Date();
    y = d.getFullYear();
    document.write(y);
    </script>

    OR

    Code:
    <script type="text/javascript">d = new Date();y = d.getFullYear();document.write(y);</script>

    They...

     
    Last edited: