The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi,
Can anyone tell me how I can edit the BBCode below so that upon clicking "Hide" it'll then display "Show" instead of displaying the original Warning: Contains inappropriate content Thanks in advance! Code:
<div class='spoiler'>
<button style='padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideToggle(); ">Warning: Contains inappropriate content</button>
<button style=' display: none; padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideToggle(); ">Hide</button>
<div class='scontent' style='display: none;'>
{param}
</div>
</div>
|
|
#2
|
||||
|
||||
|
Try this..
Code:
<div class='spoiler'>
<button style='padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideToggle(); ">Show</button>
<button style=' display: none; padding: 3px;' onclick="event.preventDefault ? event.preventDefault() : event.returnValue = false; $(this).parent().find('button').toggle(); $(this).parent().find('.scontent').first().slideToggle(); ">Hide</button>
<div class='scontent' style='display: none;'>
{param}
</div>
</div>
|
|
#3
|
|||
|
|||
|
Thanks for your reply!
Sorry should have been more clear. I need it so that it displays "Warning: Contains inappropriate content" then once clicked it'll display "Hide" then once you click "Hide" it'll then only display "Show" instead of the original message of Warning: Contains inappropriate content |
![]() |
|
|