Question : js syntax error

hello
i am getting a syntax error on the following code and cannot seem to see where. i think it has to do with a } but have tried various ways but cannot sort. would be grateful if someone could show ne where i am going wrong? many thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<script type="text/javascript">
        if ( $.browser.msie ) {
        // Put your Activebar calling code in here
		$(function() {
            // Everything inside this function will be automatically executed
            // after the page has been loaded and the DOM is complete
            
            $('<div></div>').html('Internet Explorer. This information bar is loaded with this page and can contain useful information for users.').activebar();
        });else{$(function() {
            // Everything inside this function will be automatically executed
            // after the page has been loaded and the DOM is complete
            
            $('<div></div>').html('This information bar is loaded with this page and can contain useful information for users.').activebar();
        })};
    }
    </script>

Answer : js syntax error

try this code.....

    <script type="text/javascript">
        if ($.browser.msie) {
            // Put your Activebar calling code in here
            $(function() {
                // Everything inside this function will be automatically executed
                // after the page has been loaded and the DOM is complete

                $('<div></div>').html('Internet Explorer. This information bar is loaded with this page and can contain useful information for users.').activebar();
            });
        } else {
            $(function() {
                // Everything inside this function will be automatically executed
                // after the page has been loaded and the DOM is complete

                $('<div></div>').html('This information bar is loaded with this page and can contain useful information for users.').activebar();
            });
        }    
    </script>
Random Solutions  
 
programming4us programming4us