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

01-11-2007, 04:40 AM
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;");

01-11-2007, 05: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.

01-11-2007, 05:55 AM
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...