...

View Full Version : probably easy, but I don't know



alimagik
01-11-2007, 03:40 AM
Hi,
I tried using the following script in a CafePress shop to hide all the >> marks. If worked, but hides the footer that cafepress adds in. (after my html) I assume the problem is that there is html being inserted in the page after the script. I'm thinking I should be able to somehow modify it so that I can place the script right before or after the table it's supposed to work on. I just don't know what I'd put instead of innerHTML.


<script language="javascript">
var str = document.body.innerHTML;
document.body.innerHTML = str.replace(//gi, "&nbsp;");
</script>

felgall
01-11-2007, 04:19 AM
Is it the first/only table in the page? If so you can use

var str = document.getElementsByTagName('table')[0].innerHTML;

If it's the second table replace the 0 with 1.

alimagik
01-11-2007, 04:55 AM
Hi,
Thanks so much for the prompt help, but it's not the first or second thable. In fact, I think the number of that table in sequence might vary a bit from page to page. If I put that script right before the table it's going to be used on, would that work?

If it helps, here's a sample of the type of page I want to use this on...

http://www.cafepress.com/igeeks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum