News:

"Wings and a Prayer [L-E]"
Congratulations OfferedToEros & Random for completing your RP!

Main Menu

Make image accessible via spoiler bar?

Started by Manoir, November 02, 2012, 07:42:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Manoir

Is it possible to make an image available by clicking a spoiler bar, and if so what's the syntax?

Thanks!

Autumn Sativus

Spoiler: Click to Show/Hide

[spoiler][img]https://elliquiy.com/forums/avs/avatar_4415_1351793368.png[/img][/spoiler]

Same as you would a normal image, just add spoiler tags. :-)
Us against the world
Just a couple sinners making fun of hell


~~A&A(updated March 2021)~~Tales~~Wants~~O&O~~Wiki~~

Trieste

More completely, if you want to label the spoiler bar:


[spoiler=The text on the spoiler bar.]
[img]URL of the image to be displayed.[/img]
[/spoiler]


As far as I know, it's NOT possible to display an image directly inside the spoiler bar label itself, but that's how you put an image under a spoiler.

Manoir


Saerrael

Side question, but I think it's related.

When do spoilered pictures load? When one opens the spoiler, or at opening of thread?
As I do think I see a lower loading time when pictures are spoilered.

Trieste

Quote from: Saerra on November 02, 2012, 07:52:00 PM
Side question, but I think it's related.

When do spoilered pictures load? When one opens the spoiler, or at opening of thread?
As I do think I see a lower loading time when pictures are spoilered.

Only when the spoiler is clicked. They are not loaded until that time, whereas unspoilered images are loaded on thread click.

Saerrael

Quote from: Trieste on November 02, 2012, 07:55:40 PM
Only when the spoiler is clicked. They are not loaded until that time, whereas unspoilered images are loaded on thread click.

Thank you! That is pretty epic and very usable.

Trieste


Manoir

Yes, thanks!

A further question. I seem to recall seeing, in some posts, spoiler bars that were more like buttons, that is, they didn't go all the way across the page but consisted of a shorter bar, also labeled. Is there a way to do this?

Autumn Sativus

Yep!

Stuff Goes Here
Insidey stuff goes here.


[float=left][spoiler=Stuff Goes Here]Insidey stuff goes here.[/spoiler][/float]

You can also substitute floatleft for flotright if you like.
Us against the world
Just a couple sinners making fun of hell


~~A&A(updated March 2021)~~Tales~~Wants~~O&O~~Wiki~~

Manoir