|
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% |
|
May 7, 2002, 09:53
|
#31
|
Technical Director
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="javascript:spoiler('I used &#97; instead of a in javascript to make it work');">How I did the second working one (and this one)</A>
__________________
ACS - Technical Director
|
|
|
|
May 7, 2002, 10:04
|
#32
|
Deity
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."
|
|
|
|
May 7, 2002, 10:13
|
#33
|
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).
|
|
|
|
May 7, 2002, 10:53
|
#34
|
Emperor
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.
|
|
|
|
May 7, 2002, 11:08
|
#35
|
King
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="javascript: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.
|
|
|
|
May 7, 2002, 11:16
|
#36
|
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).
|
|
|
|
May 7, 2002, 11:53
|
#37
|
Technical Director
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="javascript: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="javascript: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
|
|
|
|
May 7, 2002, 14:38
|
#38
|
King
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.
|
|
|
|
May 7, 2002, 14:45
|
#39
|
Technical Director
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
|
|
|
|
May 7, 2002, 15:05
|
#40
|
King
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.
|
|
|
|
May 7, 2002, 15:38
|
#41
|
Technical Director
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
|
|
|
|
May 7, 2002, 15:57
|
#42
|
Prince
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
|
|
|
|
May 7, 2002, 16:14
|
#43
|
Emperor
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]
|
|
|
|
May 7, 2002, 16:44
|
#44
|
Technical Director
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\'ve got it\n\nGramphos'); return false;">This does...</a>
(I think vB replaces \' with ' unless you use &#92;')
__________________
ACS - Technical Director
Last edited by Gramphos; May 7, 2002 at 18:13.
|
|
|
|
May 7, 2002, 16:46
|
#45
|
Technical Director
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
|
|
|
|
May 7, 2002, 16:47
|
#46
|
King
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.
|
|
|
|
May 7, 2002, 17:25
|
#47
|
Technical Director
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
|
|
|
|
May 7, 2002, 18:11
|
#48
|
King
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.
|
|
|
|
May 7, 2002, 18:12
|
#49
|
Technical Director
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
|
|
|
|
May 7, 2002, 18:17
|
#50
|
King
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.
|
|
|
|
May 7, 2002, 21:15
|
#51
|
King
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!
|
|
|
|
May 8, 2002, 00:25
|
#52
|
Deity
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."
|
|
|
|
May 8, 2002, 01:38
|
#53
|
Emperor
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.
|
|
|
|
May 8, 2002, 06:19
|
#54
|
Emperor
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]
|
|
|
|
May 9, 2002, 23:42
|
#55
|
Deity
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."
|
|
|
|
May 10, 2002, 00:25
|
#56
|
King
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.
|
|
|
|
May 10, 2002, 02:31
|
#57
|
King
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.
|
|
|
|
May 10, 2002, 02:38
|
#58
|
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.
|
|
|
|
May 10, 2002, 02:39
|
#59
|
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?
|
|
|
|
May 10, 2002, 03:42
|
#60
|
Emperor
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]
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 20:15.
|
|