Results 1 to 2 of 2

Thread: getElementById

  1. #1
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default getElementById

    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?

  2. #2
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •