Register - Login
Views: 95819781
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
11-20-18 02:57:43 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: 21


Posts: 14/98
EXP: 48351
For next: 1592

Since: 02-01-12


Since last post: 39 days
Last activity: 47 min.

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 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

Level: 250


Posts: 21054/24696
EXP: 250268907
For next: 260104

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 1 day
Last activity: 12 hours

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.




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: 21


Posts: 15/98
EXP: 48351
For next: 1592

Since: 02-01-12


Since last post: 39 days
Last activity: 47 min.

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.




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: 42


Posts: 43/505
EXP: 519425
For next: 1937

Since: 02-24-13

From: your dreams

Since last post: 15 days
Last activity: 2 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: 21


Posts: 17/98
EXP: 48351
For next: 1592

Since: 02-01-12


Since last post: 39 days
Last activity: 47 min.

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: 42


Posts: 44/505
EXP: 519425
For next: 1937

Since: 02-24-13

From: your dreams

Since last post: 15 days
Last activity: 2 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: 40


Posts: 316/419
EXP: 426325
For next: 14984

Since: 02-14-12


Since last post: 246 days
Last activity: 243 days

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: 42


Posts: 47/505
EXP: 519425
For next: 1937

Since: 02-24-13

From: your dreams

Since last post: 15 days
Last activity: 2 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 220d144 [2018-11-04]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

28 database queries, 4 query cache hits.
Query execution time: 0.162509 seconds
Script execution time: 0.014151 seconds
Total render time: 0.176660 seconds