Log in

View Full Version : Hide tale row or image



tufanayd
08-29-2009, 03:51 AM
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>

tufanayd
08-30-2009, 04:08 AM
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)

vwphillips
08-30-2009, 03:11 PM
<!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>