Jump to content

Wright HTML to Div Help.


Dethman

Recommended Posts

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.

Link to comment
https://forums.phpfreaks.com/topic/175831-wright-html-to-div-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.