Read, extract X number of characters and rewrite the contents of a table cell.

Reads and re-write the contents of a cell table. It removes the first X characters before re-writing.
JavaScript


<script language="Javascript">
var sourcedata = document.getElementById("fbdata").innerHTML ;
var newcode = '<p><font face="Verdana" color="808080" size="1"><span lang="en-us">'
newcode = newcode + sourcedata.substr(sourcedata.indexOf(";")+127)
newcode = newcode + '</span></font></p>'
document.getElementById("fbdata").innerHTML = newcode	
</script>  

Posted by fbrefere001 on Saturday April 2, 2005