need help to hide links

Discussion in 'HTML & Website Design' started by worlddomain, Sep 17, 2007.

  1. #1
    I was putting up a few sites what were selling ebook packages - but instead of downloading the files into folders on each domain I just wanted to leave the files in one folder and add links that pointed to it from the different site - (Like everyone normally does :)

    But - - I want to hide the link - I dont want it to show up in the bottom bar on mouseover as I dont want my members to have access to all the files in the folder.

    So is there any way to hide the link from showing?

    thanks
     
    worlddomain, Sep 17, 2007 IP
  2. simonpeterong

    simonpeterong Peon

    Messages:
    62
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    add a class to that link, then add css to it.

    make it display: none;

    or better yet, not add the link at all. :)
     
    simonpeterong, Sep 17, 2007 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I assume you want the link to be "http://www.yoursite.com/thebook.zip" rather than "http://www.whereitreallyis.com/thebook.zip" but the file only exists on the 2nd domain?

    What is your reasoning for doing this, there are different ways to achieve the result you want and dependant on the reason will change the method.
     
    AstarothSolutions, Sep 17, 2007 IP
  4. worlddomain

    worlddomain Well-Known Member

    Messages:
    1,138
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #4
    Hi AstarothSolutions....thats exactly what I'm looking for.
    Well...I'm planning to keep all my downloads in one folder and use them on the different sites that I'm selling ebooks on. so all I want is to be able to have the click here button...but not the url showup on mouse over...I've seen this done before with affiliate links....just cant remember how
     
    worlddomain, Sep 17, 2007 IP
  5. sawz

    sawz Prominent Member

    Messages:
    8,225
    Likes Received:
    808
    Best Answers:
    0
    Trophy Points:
    360
    #5
    how about you just put a blank index.html page in the folder and no one can see a list of files.

    or maybe this little java script

    or a little css

    remember javascript can be disabled in FF
     
    sawz, Sep 17, 2007 IP
  6. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #6
    To hide it you will have to do it server side.

    As I dont know what programming language you are using I cant give a sample script (plus I suspect it will be PHP in which case I cant help as I personally only know ASP/ .Net) but in principle you have a page called something like "file.aspx" which you link to with a querystring element for the name of the true file (eg file.aspx?f=book.zip)

    File.aspx gathers the querystring, collects the file from its true location and streams it to the user - remember you will need to change the content type of the file.aspx from text/html to the content type of the file itself (eg application/zip) as this will make the correct response occur (for zip it will give the option to save or open)
     
    AstarothSolutions, Sep 18, 2007 IP