Results 1 to 7 of 7

Thread: HTML Help!

  1. #1

    HTML Help!


    Help Please, this is quite frustrating...

    I want to insert a intra-page jump in my website. (I.E. you click a link on the top and it might take you halfway down the page, or all the way to the bottom, etc.)

    The problem is, I'm using a free sever (i.e. angelfire) and it's no agreeing with me. I'm using the code:
    (the < and > are replaced with ^ so you can view the code)

    ^A HREF="#jump"^ Click Me ^/a^

    ^A NAME="jump"^

    However, whenever you click the jump link it takes you back to the main page. Understandable enough, i insert the whole web address so it stays on this page. However, this time when I click, it doesn't jump down the page at all, but it does reset without the background and some of the text. Annoyance.

    Any help would be greatly appreciated!



    "Love is the triumph of Imagination over Intelligence."

  2. #2
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Try using a closing anchor tag for the second one (doesn't necessarily have to span anything), since anchor tags have to have both an opening and closing part.
    Problems playing downloaded videos? Try CCCP


  3. #3
    pirate heartbreaker The Man's Avatar
    Join Date
    Mar 2002
    Location
    Sarasota, FL
    Posts
    10,946

    Default

    <FONT COLOR=38E897>That's odd. I don't think I ever closed my &lt;A NAME&gt; tags, and they always worked fine for me.

    Actually, it sounds like you're using frames. If so, then you need to set a target for your &lt;A HREF&gt; tag, as in &lt;A HREF="http://meh" target="blarg"&gt;, but I can't remember how you set different portions of the frames as targets. Anyhoo, if you have it link to the appropriate section of your window, it shouldn't do all that funky stuff it's currently doing.

    I haven't built web pages with frames in ages, though. I use tables for everything I used to use frames for. I can't remember any frame-related specifics, so someone else will have to help you there. And my above paragraph was as un-confusing as I could make it, too.

    Oh, and to get the HTML commands to display, you can just use &amp;lt; for &lt; and &amp;gt; for &gt;.

    Peace
    The Man<FONT COLOR=38E897>
    Don't delay, add The Pimp today! Don't delay, add The Pimp today!
    Fool’s Gold tlsfflast.fm (warning: album artwork may sometimes be nsfw)

  4. #4
    Your worst wet nightmare Recognized Member Squally Leonharty's Avatar
    Join Date
    Sep 2000
    Location
    Maastricht, the Netherlands
    Posts
    314
    Contributions
    • Notable contributions to former Help Forum

    Default

    I might as well quote something from HTML Goodies (out of the top of my head):

    Close every single tag, regardless what the type is. Only the following tags don't need to be closed:

    &lt;br&gt; &lt;p&gt; &lt;hr&gt;



    Which means you still have to close the &lt;a name="jump"&gt; tag with &lt;/a&gt;
    I always do that, and it has worked perfectly. I suggest you to do that too. That way you'll be 100% sure the tag is working properly.

  5. #5
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    You don't close IMG tags either, although in vB you do, which can be confusing

    You don't close PARAM or META tags either

    I'm sure I could come up with more given time
    Problems playing downloaded videos? Try CCCP


  6. #6
    Your worst wet nightmare Recognized Member Squally Leonharty's Avatar
    Join Date
    Sep 2000
    Location
    Maastricht, the Netherlands
    Posts
    314
    Contributions
    • Notable contributions to former Help Forum

    Default

    Alright, alright. There are more, but if you use the A tag, it always needs to be closed, such as A HREF. The HREF part is just an addition, and it gets closed with /A.

    That means A NAME should be closed too, since it's another A tag. I always do it like this:

    &lt;a href="#go"&gt;Go to "Let's go!"&lt;/a&gt;

    Bla bla bla

    Bla Bla Bla

    &lt;a name="go"&gt;Let's go!&lt;/a&gt;


    That always works for me.

  7. #7

    Default


    I'd tried closing the tag before, but, I did it a little differently. But thanks Squally, I did it your way, and it worked like a charm. *Yay*

    However, my background still disappears in the page jump. The backgrounds fixed, could that have something to do with it? ~annoyance~ any suggestions?



    "Love is the triumph of Imagination over Intelligence."

Posting Permissions

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