Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    523
    Thanks
    26
    Thanked 0 Times in 0 Posts

    :: string being written in a link? ::

    how can i do this? where siteurl is a variable that is the start of a link? (eg http://www.simonsgroup.com/IT/DEVELOPMENT/dbase.nsf/
    )

    Code:
    document.write('<td nowrap><a href="siteurl+'+link+'"> '+text+' </a></td>\n');
    and the link and text are to be written like this:

    sublink('content/group_welcome','Welcome');
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    u can use a document.write like this:
    document.write('<a href="' + siteurl + link + '">text</a>')
    Computers are simple for the complex mind, yet complex for the simple mind

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    England =)
    Posts
    523
    Thanks
    26
    Thanked 0 Times in 0 Posts
    thanks m8!!!!!!!!!!
    Last edited by babelfish; 07-31-2002 at 04:28 PM.
    "They hired me for my motivational skills. Everyone at work says they have to work much harder when I`m around" Homer J Simpson

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    78
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no problem
    Computers are simple for the complex mind, yet complex for the simple mind


  •  

    Posting Permissions

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