1. if you do it on the client side, people can just view-source
2. if you want something similar to EE you can do
<script>
var texts = new Array(
"Text 1",
"Text 2",
"Text 3",
"Text 4",
"Text 5"
); // notice the lack of comma on the last
// here you can copy the function from
// http://personal.inet.fi/co
for (var i=0;i<texts.length;i++) {
document.write('<div id="div'+i+'">'+rot13(text
}
</script>
and to toggle the code do
document.getElementById('d
for the first div
Main Topics
Browse All Topics





by: mplungjanPosted on 2007-08-28 at 05:53:07ID: 19782409
http://www.google.com/sear ch?q=javas cript+rot1 3