Results 1 to 6 of 6

Thread: Simple HTML problem,<a href = "#",Links don't work

  1. #1

    Thread Starter
    Registered User struntz's Avatar
    Join Date
    Aug 1999
    Location
    Brockway,Pa,USA
    Posts
    199

    Simple HTML problem,<a href = "#",Links don't work

    Hello everyone, I cna't seem to get this to work. I created the Layout using Fireworks. Each page has its own Folder, there are 5 folders. Each folder contains the .htm page name and the images for that .htm page. Here is the directory of the pages.
    C:\My Documents\Site\htmlFormat

    The here are the 5 folders:
    [list=1][*]MainLayout[*]Projects[*]News[*]AboutMe[*]Links[/list=1]

    Here is an example of what is in the MainLayout Folder:
    C:\My Documents\Site\htmlFormat\MainLayout
    Layout.htm
    Layout_r1_c1.gif
    Layout_r2_c1.gif
    Layout_r3_c1.gif
    ...

    The MainLayout contains the mainpage, when u start the page up it will take u to that page.

    So this is what i did:

    I opened the Layout.htm file in text pad, i found the line which contains the Projects Button
    here is the line:
    Code:
      <tr>
       <td rowspan="2" colspan="3"><img name="Layout_r2_c1" src="Layout_r2_c1.gif" width="19" height="64" border="0"></td>
       <td colspan="3"><a href="#" onMouseOut="MM_swapImgRestore();"  onMouseOver="MM_displayStatusMsg('Projects');MM_swapImage('Layout_r2_c4','','Layout_r2_c4_f2.gif',1);return document.MM_returnValue" ><img name="Layout_r2_c4" src="Layout_r2_c4.gif" width="124" height="31" border="0" alt="button"></a></td>
       <td rowspan="6" colspan="2"><img name="Layout_r2_c7" src="Layout_r2_c7.gif" width="657" height="191" border="0"></td>
       <td><img src="spacer.gif" width="1" height="31" border="0"></td>
      </tr>
    Notice where it says
    <a href ="#"

    I tried the following in that spot
    <a href = "Projects.htm"
    <a href = "htmlFormat\Projects.htm"
    <a href = "htmlFormat\Projects\Projects.htm"

    and nothing works, it says page cannot be displayed
    What am i doing wrong and how can this be fixed?

    THanks everyone for listening!

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    hi
    Try it this way instead
    Code:
    'General
    <a href="../subdirectoryname/pagename.htm">
    'For urs...
    <a href="../projects/projects.htm">
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  3. #3
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    <a href = "Projects.htm"
    <a href = "htmlFormat\Projects.htm"
    <a href = "htmlFormat\Projects\Projects.htm"
    your \ are the wrong way you need /

  4. #4

    Thread Starter
    Registered User struntz's Avatar
    Join Date
    Aug 1999
    Location
    Brockway,Pa,USA
    Posts
    199
    Hey guys thanks a ton!

    what i had to do was

    <a href = "C:/My Documents/Site/htmlFormat/Projects/Projets.htm"


    So basically i had to put the whole root, and i had to change from \ to /

  5. #5
    Hyperactive Member progressive's Avatar
    Join Date
    Sep 2001
    Location
    Manchester, UK
    Posts
    404
    Don't forget to change this if you put it onto a server!

    If you are developing it for a server then I suggest you use a PWS (personal web server). for testing !

  6. #6
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Originally posted by struntz
    Hey guys thanks a ton!

    what i had to do was
    <a href = "C:/My Documents/Site/htmlFormat/Projects/Projets.htm"

    So basically i had to put the whole root, and i had to change from \ to /
    Are u sure??? Did u try to use <a href = "../projects/projects.htm"> You should never need to reference the whole root when hyperlinking between diff pages espec in the way u have described ur setup.
    Regards
    Stuart
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

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



Click Here to Expand Forum to Full Width