Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help! Changed Code not working

    I changed the code and it didn't work, so I tried to put it back to what it was. Now, the whole thing isn't working. I am a lost little child. Can someone help me please. http://www.boothemusic.com/

    Here is the code:
    Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head xmlns="">
            <title>Boothe Brothers Music</title>
            <script type="text/javascript">
        function loadContent(page) {
            switch(page) {
    case "home":
        document.getElementById("middle").src = "http://boothemusic.com/middle.html";
        break;
    case "store":
        document.getElementById("middle").src = "http://boothemusic.com/catalog";
        break;
    case "Electric Guitars":
        document.getElementById("middle").src = "http://boothemusic.com/catalog/index.php?main_page=index&cPath=1&zenid=9feb6660698a06a51571cc4cef1c3e60";
    I left out most of the code because I only edited the line "case "store".....".

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,898
    Thanks
    203
    Thanked 2,530 Times in 2,508 Posts
    You must have changed more than that. Your function loadContent(page) is not called anywhere.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •