Results 1 to 1 of 1

Thread: Javascript Prototyping make things more easier to handle!

  1. #1
    Join Date
    Jul 2008
    Posts
    40
    Thanks
    1
    Thanked 4 Times in 4 Posts

    Default Javascript Prototyping make things more easier to handle!

    Making simple things with javascript prototyping! Here's how we do it!
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Prototyping</title>
    </head>
    <body>
    <script type="text/javascript">
    <!--Hiding
    Date.prototype.showTime = function (showMe)
    { var today = new Date();
    var month = today.getMonth();
    var date = today.getDate();
    var year = today.getFullYear();
    var outPut = '';
    if (showMe)
    { return outPut = month + &quot;/&quot; + date + &quot;/&quot; + &quot;/&quot; + year; }
    else { return outPut;
    }
    }
    document.write( showTime(true) );
    // Done Hiding -->
    </script>
    </body>
    </html>
    That does it for now! If it doesnt work with you pls. lemme know about it. Tnx...
    Last edited by rainarts; 07-25-2008 at 05:44 PM.

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
  •