View Full Version : Click link to show text below

05-14-2009, 06:58 PM
Is there a way I can make these things work:


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

Please help.

05-14-2009, 08:15 PM
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?

05-15-2009, 10:32 PM
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...

05-15-2009, 10:48 PM
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.

05-19-2009, 06:51 PM
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?

05-20-2009, 12:39 AM
<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>