home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Backwards Text
- </ccTitle>
- <ccCategory>
- Browser
- </ccCategory>
- <ccDescription>
- A script that makes any text display backwards.
- </ccDescription>
- <ccInstructions>
- The code goes only inside the BODY tags. You can change the items below to suit your needs.
- </ccInstructions>
- <ccHeadContent>
-
- </ccHeadContent>
- <ccBodyContent>
- <script language="JavaScript">
- <!-- This stops non-java browsers from going MAD
- /* MjM'S JAVA CODENAME = REVERSE
-
- */
- var message1="Can you read what this text is saying? Obviously, you can!";
- var before = "<font color=black>";
- // You put the tags you want before the text here.
- var after = "</font>";
- // you put the closing tags here.
- var message2="";
- for (count=message1.length; count >= 0; count--)
- message2+=message1.substring(count,count-1);
- document.write (before,message2,after);
- // -->
- </script>
-
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>
-