SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2003
    Location
    here
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    appending direct link to all links in site ?

    This may not be possible, but...

    All my links in my project are relative and all is good for CD and web viewing, until I tried to add the project to a clients site whose server dosen't allow relative links only direct links.

    I need the same code (I'm talken over fifty pages and alot of links) to work whether it is a CD or web.
    I know I can rewrite EVERYTHING with something like:

    myDirectLinkVar = "http://www.mySite.com/";//set this only if it is for direct links only server
    document.write(myDirectLinkVar + "images/logo.gif");


    But that will be the extreme last resort.
    Is there a way to appending something to all links, images ect...

    Does this even make sense?

    Thanks in advance

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In the <head>

    <base href="http://www.mySite.com/"/>
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    SitePoint Member
    Join Date
    May 2003
    Location
    here
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AAAAHHHH!!!!

    You are the man. Thanks for saving me LOTS or rewriten!!!

    Cheers


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
  •