View Poll Results: Should we have a [spoiler] tag ala the example in the link?
Yes 13 56.52%
No 7 30.43%
Banana 3 13.04%
Voters: 23. You may not vote on this poll

 
 
Thread Tools
Old May 7, 2002, 09:53   #31
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
<SCRIPT LANGUAGE="JavaScript">function spoiler(msg) { alert(msg);}</SCRIPT>I still don't know why the second try did work, but i know why the later one worked.

<A HREF="jav&#97;script:spoiler('I used &amp;#97; instead of a in javascript to make it work');">How I did the second working one (and this one)</A>
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 10:04   #32
Urban Ranger
NationStatesApolyton Storywriters' GuildNever Ending Stories
Deity
 
Urban Ranger's Avatar
 
Local Time: 08:15
Local Date: November 1, 2010
Join Date: May 1999
Location: The City State of Noosphere, CPA special envoy
Posts: 14,606
You can put the spoiler in a text file and attach it with the message. That way anybody who wants to read the spoiler can simply download it, and there is no need for a new tag.

Remember, they can't attach files over at SDMB either.
__________________
(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Urban Ranger is offline  
Old May 7, 2002, 10:13   #33
Skanky Burns
Alpha Centauri Democracy GameACDG The Cybernetic ConsciousnessC4DG Team Alpha CentauriansApolytoners Hall of FameACDG3 Spartans
 
Skanky Burns's Avatar
 
Local Time: 11:15
Local Date: November 1, 2010
Join Date: Aug 2001
Location: Skanky Father
Posts: 16,530
I've found another use:

<table width=80% align=center border="1" cellpadding="2" bordercolor=black><tr><td>Last night I played a blank tape at full blast...</td></tr>
<tr><td bgcolor=black><font face="verdana" size="2" color="black">The mime next door went nuts.</font></td></tr></table>

__________________
I'm building a wagon! On some other part of the internets, obviously (but not that other site).
Skanky Burns is offline  
Old May 7, 2002, 10:53   #34
JohnT
lifer
Apolytoners Hall of Fame
Emperor
 
JohnT's Avatar
 
Local Time: 20:15
Local Date: October 31, 2010
Join Date: Mar 1999
Location: San Antonio, TX
Posts: 4,264
Quote:
Originally posted by Urban Ranger
You can put the spoiler in a text file and attach it with the message. That way anybody who wants to read the spoiler can simply download it, and there is no need for a new tag.

Remember, they can't attach files over at SDMB either.
But that would require you to essentially write two posts, save one to your hd, and then upload it. Then people would have to dl the text file, open it and read it. The tag works better as it doesn't impede the flow of ones thoughts as they are typing and people don't have to worry about d'ling some piece of crap text file from the net just to find out what happens at the end of ET.
JohnT is offline  
Old May 7, 2002, 11:08   #35
Chowlett
Alpha Centauri PBEM
King
 
Chowlett's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: May 1999
Location: of Candle'Bre
Posts: 1,804
<SCRIPT LANGUAGE="JavaScript">function spoiler(msg) { alert(msg);}</SCRIPT>So what you're saying is <a href="jav&#97;script:spoiler('I should be able to make a message-box in this way');">this.</a>

Unfortunately, the link shows up in the bottom if you hover over it. The black background text doesn't have that - but it's a minor advantage to be sure.
__________________
The church is the only organisation that exists for the benefit of its non-members
Buy your very own 4-dimensional, non-orientable, 1-sided, zero-edged, zero-volume, genus 1 manifold immersed in 3-space!
All women become like their mothers. That is their tragedy. No man does. That's his.
"They offer us some, but we have no place to store a mullet." - Chegitz Guevara
Chowlett is offline  
Old May 7, 2002, 11:16   #36
Skanky Burns
Alpha Centauri Democracy GameACDG The Cybernetic ConsciousnessC4DG Team Alpha CentauriansApolytoners Hall of FameACDG3 Spartans
 
Skanky Burns's Avatar
 
Local Time: 11:15
Local Date: November 1, 2010
Join Date: Aug 2001
Location: Skanky Father
Posts: 16,530
Someone on the previous page mentioned that it would be a pain for the mods to check these spoiler posts. It would not be.
Rather that selecting each spoiler seperately, they could press Ctrl-A (select all) and this would highlight each and every spoiler on the page. Easy
__________________
I'm building a wagon! On some other part of the internets, obviously (but not that other site).
Skanky Burns is offline  
Old May 7, 2002, 11:53   #37
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
Quote:
Originally posted by Chowlett
<SCRIPT LANGUAGE="JavaScript">function spoiler(msg) { alert(msg);}</SCRIPT>So what you're saying is <a href="jav&#97;script:spoiler('I should be able to make a message-box in this way');">this.</a>

Unfortunately, the link shows up in the bottom if you hover over it. The black background text doesn't have that - but it's a minor advantage to be sure.
Well, there are ways to deal with that as well...
<A HREF="#" onClick="spoiler('I should be to hide this');">Test</A>

And then of course, if I only makes a message box, why use a function for it?
<A HREF="#" onClick="alert('This should work as well.');">Like this</A>
or
<A HREF="jav&#97;script:spoiler('A message box');" onClick="alert('The hidden input'); return false;">Like this</A>
or why not hide the link enven better...
<A HREF="//Spoiler" onClick="alert('Guess what, this is not a link\n\n-- Gramphos'); return false;">Like this</A>
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 14:38   #38
klesh
King
 
klesh's Avatar
 
Local Time: 20:15
Local Date: October 31, 2010
Join Date: Jan 2000
Location: Massachusetts, USA
Posts: 2,048
Strange, After clicking the top two of the link gramphos provided above, I get the intended error message, and then I am scooted to the top of the page. Not so for the bottom two of those links.

-FMK.
__________________
It's a wonder that you still know how to breathe.
klesh is offline  
Old May 7, 2002, 14:45   #39
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
Quote:
Originally posted by Field Marshal Klesh
Strange, After clicking the top two of the link gramphos provided above, I get the intended error message, and then I am scooted to the top of the page. Not so for the bottom two of those links.

-FMK.
Yes, it has to do with the way I linked the first two. The second two cancels the following of the link.
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 15:05   #40
Chowlett
Alpha Centauri PBEM
King
 
Chowlett's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: May 1999
Location: of Candle'Bre
Posts: 1,804
Oooh, I never knew about return false;. That's cunning.
__________________
The church is the only organisation that exists for the benefit of its non-members
Buy your very own 4-dimensional, non-orientable, 1-sided, zero-edged, zero-volume, genus 1 manifold immersed in 3-space!
All women become like their mothers. That is their tragedy. No man does. That's his.
"They offer us some, but we have no place to store a mullet." - Chegitz Guevara
Chowlett is offline  
Old May 7, 2002, 15:38   #41
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
Yes, but it can be abused. You can create a link that links to something other then the link sais...
<A HREF="http://apolyton.net/forums/index.php?s=" onClick="return false;">Dead link</A>
<A HREF="http://apolyton.net/forums/index.php?s=" onClick="window.location='http://apolyton.net/forums/forumdisplay.php?s=&forumid=31'; return false;">Other link</A>
<A HREF="http://apolyton.net/forums/index.php?s=" onClick="document.write ('<H1>Test</H1>'); return false;">Test Link</A>
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 15:57   #42
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 01:15
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Quote:
Originally posted by Gramphos
<A HREF="//Spoiler" onClick="alert('Guess what, this is not a link\n\n-- Gramphos'); return false;">Like this</A>
So much to be done with java and HTML
Put it all in the FAQ.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old May 7, 2002, 16:14   #43
Scouse Gits
lifer
Civilization II PBEMTrade Wars / BlackNova TradersGalCiv Apolyton EmpireApolytoners Hall of FameCivilization II Succession Games
Emperor
 
Scouse Gits's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: Nov 1999
Location: Liverpool, United Kingdom
Posts: 6,344
I think I've got the hang of it ...
<a href="//Spoiler" onClick='alert("I`ve got it!\n\nSG[1]"); return false;'>Click here</a>

SG[1]
__________________
"Our words are backed by empty wine bottles! - SG(2)
"One of our Scouse Gits is missing." - -Jrabbit
Scouse Gits is offline  
Old May 7, 2002, 16:44   #44
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
QUOTE removed due to script errors.
Doesn't work...

<a href="//Spoiler" onClick="alert('I&#92;'ve got it\n\nGramphos'); return false;">This does...</a>

(I think vB replaces &#92;' with ' unless you use &amp;#92;')
__________________
ACS - Technical Director

Last edited by Gramphos; May 7, 2002 at 18:13.
Gramphos is offline  
Old May 7, 2002, 16:46   #45
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
You are cheating, editing your post while I try to find a work around...
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 16:47   #46
Grrr
Civilization III Multiplayer
King
 
Grrr's Avatar
 
Local Time: 13:15
Local Date: October 31, 2010
Join Date: Dec 2000
Location: of Hamilton, New-Zealand.
Posts: 1,160
Interest Javascripts, everyone.
__________________
Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
Waikato University, Hamilton.
Grrr is offline  
Old May 7, 2002, 17:25   #47
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
<SCRIPT LANGUAGE="JavaScript">function spoiler2(msg) { spoilerwindow = window.open('','spoilerwindow', 'toolbar=no,width=400,height=100,directories=no, status=no, scrollbars=yes, resize=yes, menubar=no'); spoilerwindow.document.write ('<HTML> <HEAD> <TITLE>Spoiler</TITLE> </HEAD><BODY>' +msg+ '</BODY></HTML>'); }</script>This one is slower...

<A HREF="" onClick="spoiler2('<IMG SRC=http://apolyton.net/forums/apolyton_cs-logo_2-300.gif>'); return false;">Test</A>

I still like the <A HREF="" onClick="alert('This does not allow HTML'); return false;" OnMouseOver="window.status='Spoiler'; return true;" OnMouseOut="window.status=''; return true;">Spoiler</A>
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 18:11   #48
Grrr
Civilization III Multiplayer
King
 
Grrr's Avatar
 
Local Time: 13:15
Local Date: October 31, 2010
Join Date: Dec 2000
Location: of Hamilton, New-Zealand.
Posts: 1,160
Say why am I getting script errors on this page?
__________________
Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
Waikato University, Hamilton.
Grrr is offline  
Old May 7, 2002, 18:12   #49
Gramphos
staff
Civilization III MultiplayerC4WDG Team ApolytonCivilization IV: MultiplayerAge of Nations TeamC4BtSDG Realms BeyondCivilization IV Creators
Technical Director
 
Gramphos's Avatar
 
Local Time: 02:15
Local Date: November 1, 2010
Join Date: Apr 2001
Location: Chalmers, Sweden
Posts: 9,294
Quote:
Originally posted by Grrr
Say why am I getting script errors on this page?
because of my qoute of SG[1]? I'll edit it.
__________________
ACS - Technical Director
Gramphos is offline  
Old May 7, 2002, 18:17   #50
Grrr
Civilization III Multiplayer
King
 
Grrr's Avatar
 
Local Time: 13:15
Local Date: October 31, 2010
Join Date: Dec 2000
Location: of Hamilton, New-Zealand.
Posts: 1,160
It's fixed now. Thanks Gramphos.
__________________
Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
Waikato University, Hamilton.
Grrr is offline  
Old May 7, 2002, 21:15   #51
Chowlett
Alpha Centauri PBEM
King
 
Chowlett's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: May 1999
Location: of Candle'Bre
Posts: 1,804
Light dawns - That's how websites do obfuscated links! And how the proxomitron manages to def-obfuscate them!
__________________
The church is the only organisation that exists for the benefit of its non-members
Buy your very own 4-dimensional, non-orientable, 1-sided, zero-edged, zero-volume, genus 1 manifold immersed in 3-space!
All women become like their mothers. That is their tragedy. No man does. That's his.
"They offer us some, but we have no place to store a mullet." - Chegitz Guevara
Chowlett is offline  
Old May 8, 2002, 00:25   #52
Urban Ranger
NationStatesApolyton Storywriters' GuildNever Ending Stories
Deity
 
Urban Ranger's Avatar
 
Local Time: 08:15
Local Date: November 1, 2010
Join Date: May 1999
Location: The City State of Noosphere, CPA special envoy
Posts: 14,606
John,

I always use a text editor to write long messages before pasting them into my browser. In this way your work is still saved in case of browser crashes. You should try it some time.

If a [Spoiler] tag is used, the reader has to highlight the blacked out portion anyway, so extra steps still needed to be taken.
__________________
(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Urban Ranger is offline  
Old May 8, 2002, 01:38   #53
JohnT
lifer
Apolytoners Hall of Fame
Emperor
 
JohnT's Avatar
 
Local Time: 20:15
Local Date: October 31, 2010
Join Date: Mar 1999
Location: San Antonio, TX
Posts: 4,264
Quote:
Originally posted by Urban Ranger
John,

I always use a text editor to write long messages before pasting them into my browser. In this way your work is still saved in case of browser crashes. You should try it some time.

If a [Spoiler] tag is used, the reader has to highlight the blacked out portion anyway, so extra steps still needed to be taken.
Huh? The point of the spoiler tag is so that the reader will have to highlight the blackened portion of it. That is the whole point, so that people who do not want to know what happened on Buffy or in AOTC can read the thread without having to worry about having their eye float to this really tempting piece of information.

In short, it is nothing more than a courtesy extended to the readers by the poster and, unlike your suggestion, it does not entail having to download something from the net onto your hard drive.
JohnT is offline  
Old May 8, 2002, 06:19   #54
Scouse Gits
lifer
Civilization II PBEMTrade Wars / BlackNova TradersGalCiv Apolyton EmpireApolytoners Hall of FameCivilization II Succession Games
Emperor
 
Scouse Gits's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: Nov 1999
Location: Liverpool, United Kingdom
Posts: 6,344
Quote:
Originally posted by Gramphos
You are cheating, editing your post while I try to find a work around...
Sorry
As you probably spotted I fininished up copping out and using the ` character ... It's clever, but a spoiler tag would be much easier and allow html inside the spoiler - that would be very dangerous, but fun ...

Grrr!! please change your avatar back - it is somewhat offensive.

SG[1]
__________________
"Our words are backed by empty wine bottles! - SG(2)
"One of our Scouse Gits is missing." - -Jrabbit
Scouse Gits is offline  
Old May 9, 2002, 23:42   #55
Urban Ranger
NationStatesApolyton Storywriters' GuildNever Ending Stories
Deity
 
Urban Ranger's Avatar
 
Local Time: 08:15
Local Date: November 1, 2010
Join Date: May 1999
Location: The City State of Noosphere, CPA special envoy
Posts: 14,606
Quote:
Originally posted by JohnT
Huh? The point of the spoiler tag is so that the reader will have to highlight the blackened portion of it.
So, you agree that extra steps are needed to read the spoiler text.

Quote:
Originally posted by JohnT
In short, it is nothing more than a courtesy extended to the readers by the poster and, unlike your suggestion, it does not entail having to download something from the net onto your hard drive.
Whenever you read a webpage it is already downloaded to your computer. It is not like opening up a potential security hole.
__________________
(\__/) 07/07/1937 - Never forget
(='.'=) "Claims demand evidence; extraordinary claims demand extraordinary evidence." -- Carl Sagan
(")_(") "Starting the fire from within."
Urban Ranger is offline  
Old May 10, 2002, 00:25   #56
Grrr
Civilization III Multiplayer
King
 
Grrr's Avatar
 
Local Time: 13:15
Local Date: October 31, 2010
Join Date: Dec 2000
Location: of Hamilton, New-Zealand.
Posts: 1,160
Quote:
Originally posted by Scouse Gits
Grrr!! please change your avatar back - it is somewhat offensive.
Done.
__________________
Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
Waikato University, Hamilton.
Grrr is offline  
Old May 10, 2002, 02:31   #57
Grrr
Civilization III Multiplayer
King
 
Grrr's Avatar
 
Local Time: 13:15
Local Date: October 31, 2010
Join Date: Dec 2000
Location: of Hamilton, New-Zealand.
Posts: 1,160
I've edited all contents out, and hopefully this is better.
__________________
Grrr | Pieter Lootsma | Hamilton, NZ | grrr@orcon.net.nz
Waikato University, Hamilton.

Last edited by Grrr; May 10, 2002 at 02:53.
Grrr is offline  
Old May 10, 2002, 02:38   #58
asleepathewheel
C3C IDG: Apolyton TeamInterSite Democracy Game: Apolyton TeamPtWDG Gathering StormC4DG Gathering Storm
Emperor
 
Local Time: 19:15
Local Date: October 31, 2010
Join Date: Mar 2002
Location: listening too long to one song
Posts: 7,395
dp

Last edited by asleepathewheel; May 10, 2002 at 03:34.
asleepathewheel is offline  
Old May 10, 2002, 02:39   #59
asleepathewheel
C3C IDG: Apolyton TeamInterSite Democracy Game: Apolyton TeamPtWDG Gathering StormC4DG Gathering Storm
Emperor
 
Local Time: 19:15
Local Date: October 31, 2010
Join Date: Mar 2002
Location: listening too long to one song
Posts: 7,395
Quote:
Originally posted by Grrr
HELP! Somethings wrong here.



playing with the html code again grrr?
asleepathewheel is offline  
Old May 10, 2002, 03:42   #60
Scouse Gits
lifer
Civilization II PBEMTrade Wars / BlackNova TradersGalCiv Apolyton EmpireApolytoners Hall of FameCivilization II Succession Games
Emperor
 
Scouse Gits's Avatar
 
Local Time: 00:15
Local Date: November 1, 2010
Join Date: Nov 1999
Location: Liverpool, United Kingdom
Posts: 6,344
Quote:
Originally posted by Grrr
Done.
Thanks, Grrr!!

SG[1]
__________________
"Our words are backed by empty wine bottles! - SG(2)
"One of our Scouse Gits is missing." - -Jrabbit
Scouse Gits is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 20:15.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team