<html> <!-- ARCHIVE by FORTUNECITY.ws --> <head><title>create object</title> <script> <!-- function customerHair(color, leighth, thickness, style) { this.color=color; this.leighth=leighth; this.thickness= thickness; this.style=style; this.picture="null"; this.colorChange=colorChange; this.leighthChange=leighthChange; this.thicknessChange=thicknessChange; this.styleChange=styleChange; this.addUrl=addUrl; this.displayStatus=displayStatus; } function colorChange(newColor) { this.color=newColor; } function leighthChange(newLeighth) { this.leighth=newLeighth; } function thicknessChange(newThickness) { this.thickness=newThickness; } function styleChange(newStyle) { this.style=newStyle; } function addUrl (picture) { this.picture=picture; } function displayStatus() { document.writeln("<pre>"); document.writeln("Hair Color: " + this.color); document.writeln("Hair Thickness: " + this.thickness); document.writeln("Hair leighth: " + this.leighth); document.writeln("Hair style: " + this.style); if (this.picture != "null") { //Notice I use single quote so I can use double quotes in my string document.writeln('<img src="' + this.picture +'"+ >'); } else{ document.writeln("picture: unavailable"); } document.writeln("<pre><br>"); } var lynn = new customerHair("Dark brown", "Short", "Thick", "1111"); var yuan = new customerHair("Brown", "Short", "Thick", "1717"); document.write("<center><b>Hailing</b></center>"); document.write("<b>Befor Change</b>"); lynn.displayStatus(); lynn.colorChange("Golden"); lynn.leighthChange("Long"); lynn.styleChange("2222"); document.write("<b>After Change</b>"); lynn.displayStatus(); document.write("<br><br>"); document.write("<center><b>Zhu</b></center>"); document.write("<b>Befor Change</b>"); yuan.displayStatus(); // --> </script> </head> <body background="back_wood.gif"><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>