The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Help! When pressed open bellow word!

4 posters

Go down

Solved Help! When pressed open bellow word!

Post by Sir. Mayo September 2nd 2013, 8:23 pm

So how can i Do something like the FAQ page on forums!
So when the question is pressed it opens up a box bellow it! see picture:
Help! When pressed open bellow word! Screen14


Last edited by Sir. Mayo on September 4th 2013, 3:31 pm; edited 1 time in total
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ September 2nd 2013, 9:51 pm

Hi,

I don't completely understand what you're trying to do? Can you please explain yourself a bit more, thank you.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo September 2nd 2013, 10:46 pm

So like on the FAQ page when a question is pressed it opens a box under the question! how can i Do this?
As in whats the code for this?
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by SLGray September 3rd 2013, 1:15 am

Use the spoiler tags:
Code:
[spoiler="YOUR QUESTION"]YOUR ANSWER[/spoiler]
How are you today?:


Help! When pressed open bellow word! Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51408
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo September 3rd 2013, 1:28 am

i know how to change the background color for all the spoilers can i change it for just a few?
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by levy September 3rd 2013, 7:19 pm

You can't do that , and 1 question : You want to make something like "spoiler" ?
levy
levy
Hyperactive

Male Posts : 2631
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo September 3rd 2013, 8:01 pm

Yes something like spoiler but has a different background color!
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ September 3rd 2013, 8:14 pm

I can provide a code, but you'll have to enable HTML in posts. Also ask all of your users to enable it via profile's preference option. You'll have to be putting the code every time in your post, do you like the sound of that?
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by levy September 3rd 2013, 9:12 pm

Well , add that in a message :

Code:
<a href="#" onclick="toggle_visibility('foo');">Click here to toggle visibility of element #foo</a>
<div id="foo">This is foo</div>
Make a new javascript , tick in topics and fill with that :

Code:
  function toggle_visibility(id) {
      var e = document.getElementById(id);
      if(e.style.display == 'block')
          e.style.display = 'none';
      else
          e.style.display = 'block';
    }
Don't replace # , toggle_visibility('foo') , and id="foo"
levy
levy
Hyperactive

Male Posts : 2631
Reputation : 350
Language : English, Romanian
Location : Romania

https://portofolio.goodforum.net/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo September 3rd 2013, 10:43 pm

candy_fear wrote:Well , add that in a message :

Code:
<a href="#" onclick="toggle_visibility('foo');">Click here to toggle visibility of element #foo</a>
<div id="foo">This is foo</div>
Make a new javascript , tick in topics and fill with that :

Code:
  function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }
Don't replace # , toggle_visibility('foo') , and id="foo"
Nope not working Here's a post with the code entered in side of it!
http://sir-mayo.forumotion.com/t59-foo-test-post
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ September 4th 2013, 12:40 am

Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo September 4th 2013, 3:29 pm

Solved! Thanks every one!
Sir. Mayo
Sir. Mayo
Forumember

Male Posts : 978
Reputation : 90
Language : English, Some french.
Location : you can also reach me on snoonet's irc server. I idle in #Techsupport Username is Vault108

http://sir-mayo.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ September 4th 2013, 3:32 pm

Topic Solved & Locked.
Sir Chivas™
Sir Chivas™
Helper
Helper

Male Posts : 6980
Reputation : 457
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

https://aforums.org

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum