Scroll Question

Discussion in 'HTML & Website Design' started by TAshkar18, Mar 31, 2007.

  1. #1
    Hello,

    Okay, so what i am thinking of doing is creating this:

    * Lyrics
    * Music

    etc...

    then when someone clicks on one of those it scrolls down to the proper place of the page..

    how do i do that?

    thanks
     
    TAshkar18, Mar 31, 2007 IP
  2. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Have a link for lyrics and music like...

    <a href="page.html#lyrics">Lyrics</a>
    Code (markup):
    Then in the content have...
    <div id="lyrics">
    your content
    </div>
    Code (markup):
    When they click the link it will jump down to the lyrics content :)
     
    Louis11, Mar 31, 2007 IP
  3. TAshkar18

    TAshkar18 Peon

    Messages:
    167
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    does this work for php pages too?
    <a href="page.php#lyrics">Lyrics</a>
    Code (markup):
    like that?
     
    TAshkar18, Mar 31, 2007 IP
  4. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    #4
    Yea, as long as it has the #lyrics or #music to tell it where to jump to :) Doesn't matter the file extension.
     
    Louis11, Mar 31, 2007 IP
  5. TAshkar18

    TAshkar18 Peon

    Messages:
    167
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    aite thanks for everything.
     
    TAshkar18, Mar 31, 2007 IP