Links, Links |
Links, Links |
Loredi |
Dec 29 2013, 04:13 PM
Post
#1
|
Group: Members Posts: 1 Joined: 29-December 13 Member No.: 20,161 |
Hi there ! I want to ask a simple question if i create a link,in order to open the content of this link for example a text i must create another html page in a new notepad document or is there any way to include all the query in the same document ? Thank you !
|
jimlongo |
Dec 29 2013, 05:36 PM
Post
#2
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
You could have the additional content in a hidden div, and then the click would expose that div.
jQuery would be the easiest way to do that. Here's an example you can follow Here's a simple example you can play around with to get the idea. This post has been edited by jimlongo: Dec 29 2013, 05:39 PM |
Christian J |
Dec 29 2013, 09:15 PM
Post
#3
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
Hi there ! I want to ask a simple question if i create a link,in order to open the content of this link for example a text i must create another html page in a new notepad document or is there any way to include all the query in the same document ? Thank you ! You could link to another part of the same page: http://htmlhelp.com/faq/html/links.html#named-anchor If the page is generated by a server-side script (which may be kept in a single document), you can let the script create different content depending on e.g. the querystring (the part after the "?" in a URL). For example, on this forum the same index.php page is used all the time. You can also show more content with javascript or jQuery (like jimlongo suggested), but there's an increased probability for browser bugs whenever such client-side scripts are used. |
Lo-Fi Version | Time is now: 25th April 2024 - 12:20 AM |