slydog13jessica
11-09-2004, 01:02 AM
I've looked around but have been unable to find another post on my topic, so sorry if there is one. (I tried ^_^) Anyway, what I'm wanting to do is to replace a text link (more specifically, where it says "next 5 >>") and put an image in place of it that will link to the same page. What's the best way to go about doing this?
retardednerd
11-09-2004, 09:26 AM
here's the code to:
<script language="javascript">
<!--
var links = document.getElementsByTagName ('a');
for (var l = 0; l < links.length; l++) {
str = links[l].innerHTML;
if (str.match (/\d+:\d+ (am|pm)/i)) links[l]
else if (str.match (/Next 5/i)) links[l].innerHTML = str.replace (/Next 5/i, "<img src=IMAGE LINK HERE border='0'>");
else if (str.match (/Previous 5/i)) links[l].innerHTML = str.replace (/Previous 5/i, "<img src=IMAGE LINK HERE border='0'>");
}//-->
</script>
paste it into your webstats area. the only problem with it is that you could only get rid of the "Next 5" part, not the ">>".
slydog13jessica
11-09-2004, 06:28 PM
..actually, for some reason it's not working. All I need to do is put in the url for the image? Because I did that, but it didn't work.
NorthSideCheer09
04-09-2006, 12:14 AM
can i see the code you used AFTER you put your images in?