www.webdeveloper.com
Results 1 to 5 of 5

Thread: HTML help

  1. #1
    Join Date
    Jun 2012
    Posts
    3

    HTML help

    Hello,

    I am a beginner in programming and I have a problem. Could you please tell me why the image doesn't appear at mouseover in every line. Is there a way I can make the image appear in every line on mouseover? My programing sequence is the following:

    <table border="1">
    <?php
    $nr=0;
    while($nr<10)
    {
    ?>
    <tr>
    <td onMouseOver="this.style.background = '#CCCCCC'" onMouseOut="this.style.background = '#FFFFFF'">test<?=$nr?></td>
    <td onMouseOver="document.getElementById('mytest').style.visibility='visible'" onMouseOut="document.getElementById('mytest').style.visibility='hidden'"><img id="mytest" style="visibility:hidden" src="../new_hompage3/images/Button-close-icon.png" /></td>
    </tr>
    <?php
    $nr++;
    }
    ?>
    </table>

    Thank you very much in advance.

  2. #2
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    Might try using the following:
    Code:
    <img style="width: XXpx; height: YYpx; border: 0;" src="image1.gif" onmouseover="this.src='image2.gif'" onmouseout="this.src='image1.gif'"
    alt="" />
    Example

  3. #3
    Join Date
    Jun 2012
    Posts
    3
    Multumesc functioneaza

  4. #4
    Join Date
    Jun 2012
    Posts
    3
    I meant thank you

  5. #5
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,217
    You're welcome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles