The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Help! When pressed open bellow word!

View previous topic View next topic Go down

Solved Help! When pressed open bellow word!

Post by Sir. Mayo on 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:


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

Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ on 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™
Support Moderator
Support Moderator

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo on 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
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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

Use the spoiler tags:
Code:
[spoiler="YOUR QUESTION"]YOUR ANSWER[/spoiler]
How are you today?:
I am an fine.


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


SLGray
Administrator
Administrator

Male Posts : 36619
Reputation : 2439
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo on 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
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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

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

levy
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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

Yes something like spoiler but has a different background color!

Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir Chivas™ on 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™
Support Moderator
Support Moderator

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by levy on 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
Hyperactive

Male Posts : 2582
Reputation : 345
Language : Romanian, English
Location : criticize artwork, not people!

http://help.forumotion.com/

Back to top Go down

Solved Re: Help! When pressed open bellow word!

Post by Sir. Mayo on 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
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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


Sir Chivas™
Support Moderator
Support Moderator

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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

Solved! Thanks every one!

Sir. Mayo
Forumember

Male Posts : 969
Reputation : 87
Language : English, Some french.
Location : Working 11Pm-7Am EST I will try to respond ASAP

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

Back to top Go down

Solved Re: Help! When pressed open bellow word!

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

Topic Solved & Locked.

Sir Chivas™
Support Moderator
Support Moderator

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

Back to top Go down

View previous topic View next topic Back to top


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