AlexRat
01-24-2006, 12:20 AM
I'm not sure Javascript is the way to do this, so bare with me.
I want to have specific words/phrases on a page automatically generated into links, perhaps with an XML document as shown below as the defining source (simply because I'm comfortable using them).
<links>
<entry>
<title>COLCHESTER ARTS CENTRE</title>
<url>http://www.colchesterartscentre.com</url>
</entry>
<entry>
<title>UPSTAIRS AT THE GARAGE</title>
<url>http://www.meanfiddler.com/displayPage_garage.asp?PageID=362</url>
</entry>
<entry>
<title>KUNK</title>
<url>http://www.kunk.co.uk</url>
</entry>
<entry>
<title>MASTERPLAN FOR FAILURE</title>
<url>http://www.myspace.com/masterplanforfailure</url>
</entry>
</links>
So whenever 'UPSTAIRS AT THE GARAGE' appears in a document, that text is automatically made as a link to 'http://www.meanfiddler.com/displayPage_garage.asp?PageID=362'. And the same with the other entries.
Feel free to slap me if this can't be done via javascript.
I want to have specific words/phrases on a page automatically generated into links, perhaps with an XML document as shown below as the defining source (simply because I'm comfortable using them).
<links>
<entry>
<title>COLCHESTER ARTS CENTRE</title>
<url>http://www.colchesterartscentre.com</url>
</entry>
<entry>
<title>UPSTAIRS AT THE GARAGE</title>
<url>http://www.meanfiddler.com/displayPage_garage.asp?PageID=362</url>
</entry>
<entry>
<title>KUNK</title>
<url>http://www.kunk.co.uk</url>
</entry>
<entry>
<title>MASTERPLAN FOR FAILURE</title>
<url>http://www.myspace.com/masterplanforfailure</url>
</entry>
</links>
So whenever 'UPSTAIRS AT THE GARAGE' appears in a document, that text is automatically made as a link to 'http://www.meanfiddler.com/displayPage_garage.asp?PageID=362'. And the same with the other entries.
Feel free to slap me if this can't be done via javascript.