Spolier help

News for this website will be posted here. Mostly Technical.
Forum rules
This forum is for technical discussion regarding the portal and vore itself.

Generally speaking, if you have something that needs moderator attention, you should simply Private message Eka. That includes any bug report, error report, violation report, outage report, suggestion, feature request. Etc.

Most topics will be locked as soon as they are acknowledged. Due to the nature that not many people can do anything regarding a technical issue. In that case, if you need something unlocked for any reason. Feel free to message Eka directly.

Spolier help

Postby pacattack25 » Wed Jul 30, 2014 9:52 pm

I give up... I was trying to add a few spoilers to my character... but no matter what method I use I find myself with one of three problems:

either 1: the spoiler I try to use doesn't work at all...

2: the spoiler works... but only opens up one spoiler, any of the other links open up the same spoiler and won't open up where I want them to...

3: the spoiler works... but opens ALL the spoilers


I want a nice clean effective spoiler - help?
pacattack25
---
 
Posts: 1341
Joined: Sat Apr 12, 2014 9:51 pm

Re: Spolier help

Postby pacattack25 » Thu Jul 31, 2014 11:59 am

I finally found it: it goes like this.

<div><input value="Button name here" onclick="if(this.parentNode.getElementsByTagName('div')[0].style.display != ''){this.parentNode.getElementsByTagName('div')[0].style.display = '';this.value = 'Hide ';}else{this.parentNode.getElementsByTagName('div')[0].style.display = 'Button name here'; this.value = 'Show ';}" type="button" /><div style="display: none;">Hidden content here</div></div>

unfortunatly that only works for the http://rp.aryion.com/xchat profiles... but IT WORKS FOR THE PROFILE PAGE which is what I was looking for, trust me it works the way I wanted it to... I've checked on the profile I was trying to get it to work on

found on: http://www.getmytricksfree.com/2014/03/ ... -blog.html

Oh and one more thing: you might want to have your input value field and the style.display field different for each button (where I have button name here) I think it screws with the code it the names are the same
pacattack25
---
 
Posts: 1341
Joined: Sat Apr 12, 2014 9:51 pm


Return to Technical stuff