PDA

View Full Version : Inverted Text Script



.alias.
04-01-2006, 02:20 PM
OK this creation of mine is pointless but still you might have some use for it,

i call it the Inverted Text


<script type="text/javascript">
/********************************
*Created by .Alias.
*(c) .Alias.
*This must not be removed
********************************/
/////EDIT THIS TEXT AS IT IS THE TEXT THAT WILL BE DISPLAYED/////
txt = "Hello, World!";
/////EDIT THIS TEXT AS IT IS THE TEXT THAT WILL BE DISPLAYED/////

/////DO NOT EDIT PAST HERE/////
x = txt.length;
i = 0;
text = new Array();
string = "";
while (x >= i)
{
text[i] = txt.charAt(x);
string = string + text[i];
x--;
}
document.write(string);
</script>

Twey
04-01-2006, 02:46 PM
Hm.

String.prototype.reverse = function() {
var r = "";
for(var i=this.length-1;i>=0;i--) r += this.charAt(i);
return r;
}

.alias.
04-01-2006, 02:47 PM
i knew you would do it an easyer way :p ow well nvm at keast i could do it in the first place normal i cant do anything

Twey
04-01-2006, 02:55 PM
Nice effort, though :)
A note: if you're intending to submit something to DD, you have to explicitly allow copying of the script, or state your submission.

.alias.
04-01-2006, 03:00 PM
OK but my scripts suck so there is not point in me submitting them to DD :p if you think i should submit one of the scripts i ever post let me know