Current time: 05-22-2012, 12:25 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spoiler MyCode
02-25-2007, 10:52 AM (This post was last modified: 02-25-2007 10:54 AM by darkteller.)
Post: #1
Spoiler MyCode
Here's a demo.
It's the same vB plugin.

From your ACP add a new mycode.
Choose a Title, like Spoiler, leave blank the description, or put whatever you want. Then go in your regular expression and add:
Code:
\[sp\](.*?)\[/sp\]

And then in the replace text area put
Quote:<div style="margin:20px; margin-top:0px; border:#ddd 1px inset;padding:4px;">
<div ><b>Spoiler</b>: <input type="button" value="Show" style="width:55px;font-size:10px;margin:0px;padding:0px; margin-right:0px;" onClick="if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }">
</div>
<div style="margin: 0px; padding:0px;">
<div style="display: none;">
$1
</div>
</div>
</div>

[Image: attachment.php?aid=8499]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-25-2007, 04:58 PM (This post was last modified: 02-25-2007 05:00 PM by judel.)
Post: #2
RE: Spoiler MyCode
That's pretty cool... Really neat! Wish the hide hack were as easy to implement!

Jude

If I post in your thread, please do not PM me for more help! Thanks!
Find all posts by this user
Quote this message in a reply
02-25-2007, 05:20 PM
Post: #3
RE: Spoiler MyCode
You can hide even pictures or wahetever, and put it in the signature ^______^

[Image: attachment.php?aid=8499]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-25-2007, 05:37 PM
Post: #4
RE: Spoiler MyCode
Very cool. thx!!

p.s.pretty nice skin you've got there! where can i download that from?
Find all posts by this user
Quote this message in a reply
02-25-2007, 07:29 PM
Post: #5
RE: Spoiler MyCode
I won't release it for a while, but I'm making already another dark one, so stay tuned.

[Image: attachment.php?aid=8499]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-15-2007, 03:31 AM
Post: #6
RE: Spoiler MyCode
Is it possible to put it on toolbar?
Find all posts by this user
Quote this message in a reply
03-15-2007, 09:37 AM
Post: #7
RE: Spoiler MyCode
Can the spoiler box be abit smaller? Like in your forum cause i am having abit spoiler box then yours.... and can the border be all side black.


Attached File(s) Thumbnail(s)
   

My Game site Game Expert Community
Audentio Design - Free skins and other webmaster services! Come see for yourself.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-15-2007, 10:19 AM (This post was last modified: 03-15-2007 10:19 AM by darkteller.)
Post: #8
RE: Spoiler MyCode
Quote:<div style="margin:20px; margin-top:0px; border:#000 1px inset;padding:4px;width:TOT">
Change that TOT with a px value or a percentage, like:

300px
or
80%

[Image: attachment.php?aid=8499]
Visit this user's website Find all posts by this user
Quote this message in a reply
03-15-2007, 03:30 PM
Post: #9
RE: Spoiler MyCode
darkteller i mean this size of the width Smile


Attached File(s) Thumbnail(s)
   

My Game site Game Expert Community
Audentio Design - Free skins and other webmaster services! Come see for yourself.
Visit this user's website Find all posts by this user
Quote this message in a reply
03-15-2007, 04:09 PM
Post: #10
RE: Spoiler MyCode
That's the height, not the width. I've the same code, but try with this:

Quote:<div style="margin:20px; margin-top:0px; border:#ddd 1px inset;padding:4px;">
<div style="padding:0px;"><b>Spoiler</b>: <input type="button" value="Show" style="width:55px;font-size:10px;margin:0px;padding:0px;
Can't assure it works.

[Image: attachment.php?aid=8499]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication