Dethman Posted September 28, 2009 Share Posted September 28, 2009 Here is my Code : <script type="text/javascript" language="javascript"> function change(page){ if(page = 1){ document.getElementById('webpage').innerHTML = '<p class="title">Welcome to Pro Flo X-treme Clean, Inc.</p> <p class="text">Below is a List of What we do.</p> <ul class="bullet"> <li class="text">Carpet Cleaning<br> </li> <li>Red Spot Removal<br> </li> <li class="text">Carpet Repair and Re-installation<br> </li> <li class="text">Oreintal Rugs</li> </ul> <p class="text">Certified By The IICRC!</p> <p class="text">The IICRC is a non-profit certification institute that operates certification programs for the restoration, cleaning and inspection industries. For example, the IICRC has certification programs in the restoration industry for water damage restoration, fire damage restoration and even the specialties like mold remediation or odor control aswell as carpet cleaning or upholstery cleaning, hard surface floor cleaning, and ceramic tile cleaning .</p>'; } if(page = 2){ document.getElementById('webpage').innerHTML = '<p class="title">About Us</p> <p class="text">We are a certified firm...</p>'; } } </script> My Errors: change is not defined. Initiator A: <a href="javascript:change(2);" class="links">About Us</a> Any help would be really nice, I am still a noob to js. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.