Title: IE7   Javascript problem
Last modified: August 19, 2016

---

# IE7 Javascript problem

 *  [svaldesm](https://wordpress.org/support/users/svaldesm/)
 * (@svaldesm)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/ie7-javascript-problem/)
 * My site, [http://www.caa-cvd.cl](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,

The topic ‘IE7 Javascript problem’ is closed to new replies.

## Tags

 * [js](https://wordpress.org/support/topic-tag/js/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)

 * 0 replies
 * 1 participant
 * Last reply from: [svaldesm](https://wordpress.org/support/users/svaldesm/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/ie7-javascript-problem/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
