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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.