SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    problem with FF display issue

    Hi,
    This codew work in IE6+7 but not in ff. lease help

    the code:

    <script type="text/javascript">
    function ShowImage(page, tag)
    {
    var i = 1;
    var el;
    while (el = document.getElementById("image" + i)) {
    if (i == page)

    el.style.display = '';

    else
    el.style.display = 'none';
    i++;
    }
    }
    </script>


    THEASE ARE THE ONCLICK

    <div class="poets-box-bg float-right">
    <div onclick="ShowImage(parseInt(this.value), 'image');" value="1">
    <img src="images/poets/איימן אגברייה.jpg" width="100" height="100" alt="" />
    </div>
    <div onclick="ShowImage(parseInt(this.value), 'image');" value="2">
    <img src="images/poets/ארז_ביטון.jpg" width="100" height="100" alt="" />
    </div>
    </div>


    THEASE ARE THE IMAGE THAT SOULD SHOUW

    <div style="display:none" id="image1" >
    <img src="images/poets/איימן אגברייה.jpg" width="100" height="100" alt="" /><br />
    sdfasdfsadfasgasdgas
    </div>
    <div style="display:none" id="image2" >
    <img src="images/poets/ארז_ביטון.jpg" width="100" height="100" alt="" /><br />
    sdfgdfgdfgdf gf dfg
    </div>


    THANKs

  2. #2
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi,
    since DIV tags only pass value on IE and not on the almighty FF,
    I change the DIV to LI and it works.


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
  •