PDA

View Full Version : dynamic links



rich1234
08-13-2008, 06:58 PM
Hi, I wonder if anyone could tell me what I shouls be looking for, ie, what it might be called.

I have link exchanges with other websites and would like to instead of giving them the html code for the link to me to give them maybe some javascript that would fetch the address from somewhere on my website. That way I could control and alter the anchor text and href and dynamically change the address on their sites.
Is this possible would be great to know.
Thanks
Richard

techietim
08-13-2008, 07:01 PM
Give them:


<script type="text/javascript" src="http://example.org/myscript.js"></script>

myscript.js


document.writeln('<a href="#">Link</a>');