Help with html code

M

Meebers

Using publisher 07 to create site, all the files are uploaded however having
some trouble with a hyperlink. I used an icon as a hyperlink to allow users
to download a .pdf file. Viewing the code has the link wrong because it is
referencing my C: drive as the source of the file and I cannot seem to link
it correctly. (it worked correctly before I uploaded it to the host)
The code now is href="file:/// C:\Documents.......\index_files\filename.pdf
I would like to either ref the file in the index_files subdirectory or in
the main directory with index.htm. TIA for any solutions
 
D

Don Schmidt

In a Publisher 2000 website the link would read

/filename.pdf

If the file was located in a folder, i.e., downloads the link would be
/downloads/filename.pdf

The file needs to be uploaded to the folder where the website files are or
if in a folder the folder needs to be located where the website files are.
 
D

DavidF

If you are using a Master Page and your link is on that master page, then
don't use a master page. They create problems with webpages.

Otherwise, study the hyperlink and make sure you are writing the link to the
location on your host where you have uploaded the file. Perhaps write an
absolute link instead of a relative link. Here is a reference:

Including external files in a Publisher web:
http://msmvps.com/blogs/dbartosik/archive/2006/01/07/80561.aspx

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top