<HTML> <!-- ARCHIVE by FORTUNECITY.ws --> <HEAD> <TITLE> Business Cards </TITLE> <SCRIPT LANGUAGE="JAVASCRIPT"> <!-- //Business Card Definition function card(name, address, company, workPhone) { this.name=name; //They are the properties of this class. this.address=address; this.company=company; this.workPhone=workPhone; this.getName=getName;//They are the methods of this class. this.getAddress=getAddress; this.getCompany=getCompany; this.getWorkPhone=getWorkPhone; this.printCard=printCard; } function getName(newName) { this.name=newName; } function getAddress(newAddress) { this.address=newAddress; } function getCompany(newCompany) { this.company=newCompany; } function getWorkPhone(newWorkPhone) { this.workPhone=newWorkPhone; } function printCard() { document.writeln("<PRE>"); document.writeln("Name: " + this.name); document.writeln("Address: " + this.address); document.writeln("Company Name: " + this.company); document.writeln("Work Phone: " + this.workPhone); document.writeln("</PRE><BR>"); } function Start() { var customer=new card("Bill", "165 Sunset", "ABC Company", "(650)-645-8542"); customer.printCard(); customer.getName("Vivan"); customer.printCard(); customer.getAddress("324 Sunset"); customer.printCard(); customer.getCompany("BBB Inc") customer.printCard(); customer.getWorkPhone("(123)944-4578") customer.printCard(); } //--> </SCRIPT> </HEAD> <BODY BGCOLOR=WHITE onLoad="Start()"><script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-47423994-1', 'fortunecity.ws'); ga('send', 'pageview'); </script> <center> <br> <div> <script language="javascript" type="text/javascript" src="http://ad.broadcaststation.net/ads/show_ad.php?width=728&height=90"></script> </div> </center> <center> <br> <div style="height:5px"></div> </center> </BODY> <!-- ARCHIVE by FORTUNECITY.ws --> <center> <div> <br> <script language="javascript" type="text/javascript" src="http://ad.broadcaststation.net/ads/show_ad.php?width=300&height=250&cache=0"></script> <script language="javascript" type="text/javascript" src="http://ad.broadcaststation.net/ads/show_ad.php?width=300&height=250"></script> </div> <br> <br> </center> </HTML>