Results 1 to 2 of 2

Thread: dynamic links

  1. #1
    Join Date
    May 2006
    Posts
    98
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default dynamic links

    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

  2. #2
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    Give them:
    HTML Code:
    <script type="text/javascript" src="http://example.org/myscript.js"></script>
    myscript.js
    Code:
    document.writeln('<a href="#">Link</a>');

  3. The Following User Says Thank You to techietim For This Useful Post:

    rich1234 (08-13-2008)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •