<script language="javascript" type="text/jscript">
        function showhide(layer_ref) {
            obj = document.getElementById(layer_ref);
            if (obj.style.display == "none") {
                obj.style.display = "";
            } else {
                obj.style.display = "none";
            }
        }
        function changepic_menu(arrow) {

            obj = document.getElementById(arrow);
            if (obj.src.indexOf("arrow_up.jpg") > 0) {
                
                obj.src = "../image/arrow_down.jpg";
            } else {
            
                obj.src = "../image/arrow_up.jpg";
            }
        }
    </script>

this code is running on ie but not on firfox plz help me

Old thread...

By the way, there are 2 functions in the question... Which one is not working?

thx taywin i have done it there is no prblm in function i havn't written "javascript " only jscript thts y

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.