How can i do this?

Talk about anything
TheUninvited
Posts: 12
Joined: 07 Jan 2018, 08:08

How can i do this?

05 Oct 2018, 02:18

Actually i am looking for a program ,i've heard about microsoft word, but i am not sure yet if there is something better. What i want to do is like keep a reference for things like:

- How to go to paris
then when click the how to go to paris it will show up a description or something that i added myself. more like i want to do this like a FAQ for programming and stuff.

https://www.youtube.com/watch?v=9yBBc70 ... e=youtu.be
User avatar
TheDewd
Posts: 1510
Joined: 19 Dec 2013, 11:16
Location: USA

Re: How can i do this?

05 Oct 2018, 07:48

You could try using HTML.

Save the following code as YourFilename.html and then run it in your web browser of choice.

You simply create a link or button to show/hide the element containing your description.

Code: Select all

<!DOCTYPE html>
<html>
	<body>
		<a href="#" onclick="toggle_visibility('paris');">How to go to Paris?</a>
		<div id="paris" style="display: none">Using an airplane, duh!</div>
		
		<br /><br />
		
		<a href="#" onclick="toggle_visibility('england');">How to go to England?</a>
		<div id="england" style="display: none">Using an airplane, good sir!</div>	
		
		<br /><br />
		
		<a href="#" onclick="toggle_visibility('spain');">How to go to Spain?</a>
		<div id="spain" style="display: none">You can try swimming?!</div>	
		
		<script type="text/javascript">
			function toggle_visibility(id) {
			   var e = document.getElementById(id);
			   if(e.style.display == 'block')
				  e.style.display = 'none';
			   else
				  e.style.display = 'block';
			}
		</script>
	</body>
</html>
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: How can i do this?

06 Oct 2018, 11:11

TheUninvited wrote:Actually i am looking for a program ,i've heard about microsoft word, but i am not sure yet if there is something better. What i want to do is like keep a reference for things like:

- How to go to paris
then when click the how to go to paris it will show up a description or something that i added myself. more like i want to do this like a FAQ for programming and stuff.

https://www.youtube.com/watch?v=9yBBc70 ... e=youtu.be
You can save the document in html format in MS Word or using a free open source program like LibreOffice. You can then create hyperlinks for certain groups of words, so when you click on them, a picture or description would show up. https://www.youtube.com/watch?v=TGlijndIUDk (How to create Hyperlinks in Libreoffice)

Return to “Off-topic Discussion”

Who is online

Users browsing this forum: No registered users and 30 guests