WordPress.org

Ready to get started?Download WordPress

Forums

IE7 + Javascript problem (1 post)

  1. svaldesm
    Member
    Posted 5 years ago #

    My site, http://www.caa-cvd.cl , has a little JS function to fall a bit the background of the rightbar. So this is it:

    <script type="text/javascript" language="javascript">
    function toggle(id) {
     window.document.getElementById('rightbar').style.paddingTop="30px";
     window.document.getElementById("rightbar").style.backgroundPosition="3px 15px";
     window.document.getElementById('smenu-quienes').style.visibility="hidden";
     window.document.getElementById('smenu-areas').style.visibility="hidden";
     window.document.getElementById(id).style.visibility="visible";
    }
    </script>

    The problem with IE7 appears with the "backgroundPosition" property (I've tried it without that part, and it doesn't show any errors).

    The error is:

    Line: 14
    Character: 3018
    Error: Expected ')'
    Code: 0

    So what is this about?

    Thanks,

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags