I have a message board and they allow us to use javascript and such. This is a script that I currently use to find certain images and replace them with my own.
<script language="JavaScript">
for(i=0 ; i<document.images.length ; i++){
if(document.images.src=="http://207.44.144.11/boardimages/staradmin.gif"){
document.images.src="http://www.bcn.net/~mdecker/images/untitled.JPG"
}
}
</script>
I am looking for a script like this that can change the html code on a page. There is an error with the HTMl formatting of the board, and I want to correct it. What I am looking for is a script that will serach for this class="cattext" color="" and replace it with a space, or leave it blank.
The problem: At the top of the board, notice the sloppy color transition (<!-- m --><a class="postlink" href="http://support.conforums.com/index.cgi?board=help&action=display&num=1043168994">http://support.conforums.com/index.cgi? ... 1043168994</a><!-- m -->)
With that code removed, notice the transistion is smooth now. (<!-- m --><a class="postlink" href="http://www.bcn.net/~mdecker/fixed.html">http://www.bcn.net/~mdecker/fixed.html</a><!-- m -->)
Any help is greatly appreciated. Thank you.
<script language="JavaScript">
for(i=0 ; i<document.images.length ; i++){
if(document.images.src=="http://207.44.144.11/boardimages/staradmin.gif"){
document.images.src="http://www.bcn.net/~mdecker/images/untitled.JPG"
}
}
</script>
I am looking for a script like this that can change the html code on a page. There is an error with the HTMl formatting of the board, and I want to correct it. What I am looking for is a script that will serach for this class="cattext" color="" and replace it with a space, or leave it blank.
The problem: At the top of the board, notice the sloppy color transition (<!-- m --><a class="postlink" href="http://support.conforums.com/index.cgi?board=help&action=display&num=1043168994">http://support.conforums.com/index.cgi? ... 1043168994</a><!-- m -->)
With that code removed, notice the transistion is smooth now. (<!-- m --><a class="postlink" href="http://www.bcn.net/~mdecker/fixed.html">http://www.bcn.net/~mdecker/fixed.html</a><!-- m -->)
Any help is greatly appreciated. Thank you.