Announcement

Collapse
No announcement yet.

How about a [spoiler] tag?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    <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>
    Creator of the Civ3MultiTool

    Comment


    • #32
      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."

      Comment


      • #33
        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).

        Comment


        • #34
          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.

          Comment


          • #35
            <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

            Comment


            • #36
              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).

              Comment


              • #37
                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>
                Creator of the Civ3MultiTool

                Comment


                • #38
                  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.

                  Comment


                  • #39
                    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.
                    Creator of the Civ3MultiTool

                    Comment


                    • #40
                      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

                      Comment


                      • #41
                        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>
                        Creator of the Civ3MultiTool

                        Comment


                        • #42
                          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

                          Comment


                          • #43
                            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

                            Comment


                            • #44
                              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;')
                              Last edited by Gramphos; May 7, 2002, 18:13.
                              Creator of the Civ3MultiTool

                              Comment


                              • #45
                                You are cheating, editing your post while I try to find a work around...
                                Creator of the Civ3MultiTool

                                Comment

                                Working...
                                X