www.webdeveloper.com
Results 1 to 3 of 3

Thread: Is there any error in my javascript

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    3

    Is there any error in my javascript

    Dear all,

    I have below code. But don't know why it seems no working for web page change, e.g. languages and menu

  2. #2
    Join Date
    Sep 2009
    Posts
    3

    posting scripts

    <script language="javascript">
    var currlang="CHT";
    var currMenu="HOME";
    var itemArray=new Array("HOME","VIDEO");
    var language=new Array("ENG", "CHT");
    function toggle(item) {

    document.getElementById(item.concat(currlang)).style.display = "none";
    currMenu=item;
    document.getElementById(item.concat(currlang)).style.display = "block";
    }

    function toggleMenu(setlang) {

    document.getElementById("MENU".concat(currlang)).style.display="none";
    document.getElementById(currMenu.concat(currlang)).style.display="none";
    currlang=setlang;
    document.getElementById(currMenu.concat(currlang)).style.display="block";
    document.getElementById("MENU".concat(currlang)).style.display="block";

    }

    </script>

  3. #3
    Join Date
    Apr 2013
    Posts
    11
    Do you have html code that using toggle and toggleMenu functions?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles