PDA

View Full Version : getElementById



Cercedilla
05-27-2009, 10:33 PM
Hi,
I am calling a function from an external javascript file using a flash function to toggle the div of a site. It works fine with firefox but just not happening in ie7. This is the code:

Flash Function (inside SWF that sits in the html)
function removeAjax(){
getURL( "javascript:removeAjaxBar('ajaxbar');");
}


Javascript File (external file called in at top of page)

function removeAjaxBar(d) {

document.getElementById(d).style.height = "10px";



}

CSS (External file called at top of page)

#ajaxbar{
position:relative;
top:194px;
width:973px;
height:31px;
left:13px;
_left: 0px;
z-index:65;
background-image: url(../images/bar.png);
background-repeat: repeat-x;
background-position: center;
visibility:visible;

Any ideas?

Cercedilla
05-28-2009, 11:00 AM
I thought I might as well upload an example of what I mean, it might be easier for understand what I mean. Please try in firefox and then in ie7.