SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copyright Text File . . .How To???

    What's the easiest way to use a separate file to link somehow to the bottom of my pages for my copyright notice.

    I'm wanting to do this so I can control the year and not have to take so much time to change the copyright year every January 1st.

    I thought I had seen a javascript somewhere that could do this. Maybe it can be done using CSS, although I'd like for it to work in NS4.

    What about a way to do this is Perl?

    Any ideas would be helpful. Thanks...
    .

  2. #2
    SitePoint Evangelist compwizard's Avatar
    Join Date
    May 2002
    Location
    United States
    Posts
    457
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are quite a few different ways to do this, depending on your setup. You could use javascript like this:
    PHP Code:
    <SCRIPT LANGUAGE="JavaScript1.2">
    <!-- 
    var 
    time=new Date();
    var 
    year=time.getYear();
    if (
    year 2000)    // Y2K Fix
    year year 1900// [url]http://onyx.idbsu.edu/~ipowell[/url]
    document.write("Copyright" year);
    -->
    </SCRIPT> 
    the only thing is that it would rely on the clients machine to have the correct year.

    You could also include the file using a server side language..what sever are you running/what languages can you use?
    Compwizard
    "There are 10 kinds of people in this world -- those who know binary, and those who don't."

  3. #3
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was kinda hoping to get something similar to this script over at Dynamic Drive, but will work in NS4.

    Basically, I'm wanting to use text where it's not dependant upon the PC looking at it. Of course, I guess the browser version is always going to come into play....

    I'll try out the javascrip code & see what it does....Thanks for the tip!
    .

  4. #4
    SitePoint Addict noise's Avatar
    Join Date
    Sep 2002
    Location
    Sweden
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have to ask...

    about copyright... how does it work?

    it would be kinda easy to erase the "© copyright" tag.. all i'm saying is that i dont see how you prevent someone from using it anyway???

  5. #5
    SitePoint Wizard Aes's Avatar
    Join Date
    Jun 2001
    Location
    Oklahoma
    Posts
    3,392
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by noise
    i have to ask...

    about copyright... how does it work?

    it would be kinda easy to erase the "© copyright" tag.. all i'm saying is that i dont see how you prevent someone from using it anyway???
    It isn't meant to physically prevent someone from stealing or otherwise using your page. Rather, it is meant to act as a deterrent from such activity, as it is a notice that the contents of the page are yours. Someone can always steal your page, or the contents thereof; by specifying the copyright, you're simply letting them know that they would be doing so under illegal pretexts (even without the copyright, it is illegal technically).

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  6. #6
    Extremists Beware! Rockrz's Avatar
    Join Date
    Mar 2001
    Location
    In God's Country!
    Posts
    1,317
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And if they do that you can download that special software that enables you to reach through your computer, through the phone line, and pop them upside the head!
    (this is very specialized software, of course!)
    .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •