Question?

wxdqz

New Member
This is a script that I currently use on a forum. It searches the page for any img's that match the source and replaces them with images that I specify. I was wondering if there is a way to modify this script to search for text, rather than an image source? And then replace the text that I searched for with text that I specify later on in the script? 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>
 
Back
Top