-
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 + "/" + date + "/" + "/" + 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.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks