Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Click link to show text below

    Is there a way I can make these things work:

    http://codingforums.com/showthread.php?t=66418
    &
    http://www.dynamicdrive.com/dynamici...tchcontent.htm

    using only HTML code? As in no Java what-so-ever?

    Please help.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    This would only be possible if you had a new HTML file with exactly the same content but with the text section below present (expanded). You would then link to that new HTML file and it would look like the same page with the text showing up.

    However, this is a little more complicated than necessary. Why don’t you wanna use JavaScript?

  • #3
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have no idea how to use JavaScript, my uncle just wanted me to make a small website for his business. I had no prior knowledge of HTML/CSS code at all, and I don't even know how to make a JavaScript file, let alone how to apply it...

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Well, the DynamicDrive script pretty much does what you want and you just have to copy and paste it. Of course you have to do a tiny little bit of reading to learn how to apply that script but that’s a prerequisite anyway if you’re building websites. And it’s not that different from the regular HTML work. In fact, this is the regular HTML work. You just insert a script reference which is an HTML tag, to associate an external script.

  • #5
    New to the CF scene
    Join Date
    May 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh. Ok... Well, I guess I'd better start reading up on things. Also, since I've got you here and you're a "Senior Coder" according to this site, how would I make a link on a page that when you click on it, it scrolls down for you bringing you to the relevant text you want. Know what I mean?

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,677
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Code:
    <a href="#section">internal link</a>
    <a href="#dolor">another internal link</a>
    …
    …
    …
    <p id="section">text</p>
    <p>Lorem ipsum <a id="dolor">dolor</a> sit amet</p>


  •  

    Tags for this Thread

    Posting Permissions

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