Register - Login
Views: 86540096
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
10-20-17 06:50:26 PM

Jul - Meta - How I can hide the text like a spoiler? New poll - New thread - New reply
Next newer thread | Next older thread
CruisnEma
Member
Level: 19


Posts: 14/79
EXP: 32085
For next: 3692

Since: 02-01-12


Since last post: 62 days
Last activity: 9 days

Posted on 07-15-13 02:39:33 PM Link | Quote
Please, can you tell me how I can hide the text like a spoiler? I've used the
Spoiler:
spoiler
string but don't work with the images, I have an image that is a bit big, is better hide it. How i can solve?
Xkeeper






Posted on 07-15-13 02:42:05 PM (last edited by Xkitty at 07-15-13 02:42:33 PM) Link | Quote
You can always link to the image instead of displaying it in-line, e.g.


Spoiler:
This is an image link: Jul's logo is here


It's not perfect, but the spoiler stuff needs reworked anyway.


(You'll probably also want to use innocuous text for your link, since the text for that isn't hidden, either. Blah.)
CruisnEma
Member
Level: 19


Posts: 15/79
EXP: 32085
For next: 3692

Since: 02-01-12


Since last post: 62 days
Last activity: 9 days

Posted on 07-15-13 02:52:20 PM Link | Quote
Originally posted by Xkitty
You can always link to the image instead of displaying it in-line, e.g.


Spoiler:
This is an image link: Jul's logo is here


It's not perfect, but the spoiler stuff needs reworked anyway.


(You'll probably also want to use innocuous text for your link, since the text for that isn't hidden, either. Blah.)
Ok, now I try, is only for the exapmle image of my thread, thanks.
StapleButter
Member
Level: 40


Posts: 43/460
EXP: 406669
For next: 34640

Since: 02-24-13
From: your dreams

Since last post: 4 days
Last activity: 4 days

Posted on 07-15-13 04:59:01 PM (last edited by Mega-Mario at 07-15-13 04:59:16 PM) Link | Quote
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)
CruisnEma
Member
Level: 19


Posts: 17/79
EXP: 32085
For next: 3692

Since: 02-01-12


Since last post: 62 days
Last activity: 9 days

Posted on 07-15-13 05:36:09 PM Link | Quote
Originally posted by Mega-Mario
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)

I don't know why, but in your post I see always the content of the spoiler also if I haven't opened it and I can't close it.
StapleButter
Member
Level: 40


Posts: 44/460
EXP: 406669
For next: 34640

Since: 02-24-13
From: your dreams

Since last post: 4 days
Last activity: 4 days

Posted on 07-15-13 05:38:36 PM Link | Quote
You must be using a terrible browser then. I tested it on Firefox, Chrome and IE10 and it worked fine.

Also, if you want to use it more than once, you'll need to find the text 'haxcb' in it and replace it with something different for each instance of the spoiler.
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 39


Posts: 316/417
EXP: 387888
For next: 16883

Since: 02-14-12


Since last post: 6 days
Last activity: 1 day

Posted on 07-17-13 04:44:13 PM Link | Quote
Originally posted by Mega-Mario
Or you can try the following:

Spoiler contents go here
Image!


Using CSS hackery to achieve it. Of course, it's a bit complex, but for the one post where you need non-text content hidden, it'll work.
(quote this post to see how it's done)

Mega-Mario your thing is kinda creepy. The show spoiler button ALWAYS opens the one in your original post even when you quote it like this.
StapleButter
Member
Level: 40


Posts: 47/460
EXP: 406669
For next: 34640

Since: 02-24-13
From: your dreams

Since last post: 4 days
Last activity: 4 days

Posted on 07-17-13 05:20:15 PM Link | Quote
Originally posted by Mega-Mario
Also, if you want to use it more than once, you'll need to find the text 'haxcb' in it and replace it with something different for each instance of the spoiler.

That is why. If you quote my post, all the buttons are going to have the same ID ('haxcb'), causing it to always link to the first spoiler.
Next newer thread | Next older thread
Jul - Meta - How I can hide the text like a spoiler? New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

28 database queries, 4 query cache hits.
Query execution time: 0.169176 seconds
Script execution time: 0.008161 seconds
Total render time: 0.177337 seconds