View Single Post
Old 12-23-2008, 10:58 PM  
munki
Do Fun Shit.
 
munki's Avatar
 
Industry Role:
Join Date: Dec 2004
Location: OC
Posts: 13,393
PHP Code:
function back()
{
var 
thestring="";
var 
yt="<h3>Your Text</h3>";
var 
text document.forms[0].elements[0].value;
var 
filter = new RegExp('([\\f\\n\\r\\t\\v ])+''gi');
var 
data text.replace(filter," ");
data data.replace(/</gi,"").replace(/>/gi,"");
for (var 
i=data.length-1;i>=0;i--) {
thestring+=data.charAt(i);
}
document.getElementById("where").innerHTML=yt;
document.getElementById("where").innerHTML+=thestring;

__________________

I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde
munki is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote