www.webdeveloper.com
Results 1 to 2 of 2

Thread: Plese Help me.....

  1. #1
    Join Date
    Dec 2009
    Posts
    86

    Plese Help me.....

    <coad>
    <script language="javascript">
    function show(check){
    if(document.getElementById(check).style.display=='none'){
    document.getElementById(check).style.display='block';
    }
    else {
    document.getElementById(check).style.display='none';
    }
    }
    </script>
    <table width="100%">
    <tr><td>
    <?php $res=mysql_query("select * from new_price where make='$make'");
    while($row=mysql_fetch_array($res)){
    $sr=$row['sr'];
    $name=$row['name'];
    $img=$row['img'];
    ?>
    <table cellpadding="0" class="ov" cellspacing="0" width="100%" style="background-color:#676C98; font-weight:bold;">
    <tr><td height="20" width="70%">
    <a onclick="show('<?php echo $sr; ?>');"style=" cursorointer; text-decoration:none; padding-left:10px;"><?php
    echo $name; ?></a></td>
    <td align="center"><?php echo $price; ?></td>
    </tr></table>
    </td></tr>
    <tr style="display:none" bgcolor="#AAADCC" id="<?php echo $sr; ?>" align="center">
    <td>
    <img src="admin/upload/<?php echo $img; ?>" style="width:350px; height:280px"/></td></tr>
    <?php } ?>
    </table>
    </coad>

    Qus: onclick show one div hide other div in loop

  2. #2
    Join Date
    Dec 2009
    Posts
    86

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