Page 2 of 2

[BBCode] jQuery Spoiler

Posted: 17 Oct 2012, 22:43
by samowen
Thanks for the code, but it doesn't work in Safari if you use a You Tube video.

Code: Select all

[spolier](You Tube Video)[/spoiler]
It opens, but does not close again.

[BBCode] jQuery Spoiler

Posted: 19 Oct 2012, 03:30
by martin123456
If you want it w3c valid then use this

Code: Select all

<div style="margin:5px; margin-top:5px; border: 1px solid #3bbfe7;" class="codebox">
    <div style="height:22px; text-align: center;"><strong>phpbb3bbcodes Spoiler:</strong>
    <input type="button" class="changevalue" value="{L_EXPAND_VIEW}" style="width:100px; font-size:10px; margin:0px; padding:0px;" onclick="$(this).parents('.codebox').find('.content').toggle('slow');"/></div>
    <div class="content" style="display: none; background-color:#e6e6e6; padding: 5px;">{TEXT}</div></div>
You messed up on this part ('slow');"> should be ('slow');"/>

This document was successfully checked as XHTML 1.0 Strict!

[BBCode] jQuery Spoiler

Posted: 21 Oct 2012, 23:01
by Sniper_E
I would make that ending code ('slow');" />

[BBCode] jQuery Spoiler

Posted: 29 Mar 2014, 14:17
by peterhv31
me too, but there are made a few suggestion which makes it all confusing.
I tried this and now in the forumheader i get text like:

var jump_page = 'Enter the number of the page where you want to go:'; var on_page = ''; var per_page = ''; var base_url = ''; var style_cookie = 'phpBBstyle'; var style_cookie_settings = '; path=/; '; var onload_functions = new Array(); var onunload_functions = new Array(); /** * Find a member */ function find_username(url) { popup(url, 760, 570, '_usersearch'); return false; } /** * New function for handling multiple calls to window.onload and window.unload by pentapenguin */ window.onload = function() { for (var i = 0; i < onload_functions.length; i++) { eval(onload_functions); } }; window.onunload = function() { for (var i = 0; i < onunload_functions.length; i++) { eval(onunload_functions); } }; // ]]>

so, i wonder???

can anybody help me with this issue?