Results 1 to 3 of 3

Thread: Hide tale row or image

  1. #1
    Join Date
    Jan 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hide tale row or image

    Hi,

    I purchased an e-commerce software and I have limited access to the source codes but full access to the css and I can't delete but I can add javascript or html. what i want is I have a form and in this form a table. I want to get rid of the second table row as seen below but because I don't have access to the source I can't it.

    Is there anyway to hide the table second table row or just hide the image and the link in the second table row?

    <form name="form1" method="POST" action="xxx.asp">
    <table border="0" cellpadding="0" cellspacing="0" class="Table1">

    <tr>
    <td class="tbtd"><img src="1.gif" border="0"><a href="test1.asp" class="MenuLink" target="_blank">aaaaaaa</a></td>
    </tr>

    <tr>
    <td class="tbtd"><img src="2.gif" border="0"><a href="test2.asp" class="MenuLink" target="_blank">bbbbbbb</a></td>
    </tr>

    </table>
    </form>

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

    Default

    I need to hide a specific text on a website.

    Is there a javascript code that would find the witten text inthe source and change it's styling to hidden or invisible? (obviously people will be able to see if the see the source code)

  3. #3
    Join Date
    Dec 2008
    Location
    Portsmouth, UK
    Posts
    1,815
    Thanks
    2
    Thanked 425 Times in 419 Posts

    Default

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
      <title></title>
    </head>
    
    <body>
    <form name="form1" method="POST" action="xxx.asp">
    <table border="0" cellpadding="0" cellspacing="0" class="Table1">
    
    <tr>
    <td class="tbtd"><img src="1.gif" border="0"><a href="test1.asp" class="MenuLink" target="_blank">aaaaaaa</a></td>
    </tr>
    
    <tr>
    <td class="tbtd"><img src="2.gif" border="0"><a href="test2.asp" class="MenuLink" target="_blank">bbbbbbb</a></td>
    </tr>
    </table>
    </form>
    
    <script  type="text/javascript">
    /*<![CDATA[*/
    var trs=document['form1'].getElementsByTagName('TR');
    trs[1].parentNode.removeChild(trs[1]);
    
    /*]]>*/
    </script>
    
    </body>
    
    </html>
    Vic
    God Loves You and will never love you less.
    http://www.vicsjavascripts.org/Home.htm
    If my post has been useful please donate to http://www.operationsmile.org.uk/

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
  •