<script language=javaScript>
<!-- Beginning of JavaScript -
// CREDITS:
// ChaosTicker by Urs Dudli and Peter Gehrig
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
//
info@24fun.ch// 14/4/2000
// IMPORTANT:
// If you add this script to a script-library or a script-archive
// you have to insert a link to http://www.24fun.com right into the webpage where the script
// will be displayed.
// CONFIGURATION:
// 1. Delete the DIV-block with the id "deletethisblock". You don't need it.
// 2. Configure messages and speed inside the head-section of the script.
// Configure your messages. You may add as many messages as you like.
var message = new Array()
message[0]="أهلاً بكم في جافا تراحيب"
message[1]="تشكيلة واسعه من كودات الجافا"
message[2]="وسهلة الأستخدام لتعمل معك بيسر وسهولة"
message[3]="في حالة وجود صعوبة في استخدام الكود لا تتردد في مراسلتنا"
message[4]="شكراً لزيارة تراحيب"
// Configure the standstill-time between the messages (milliseconds).
var standstill=2000
// Do not edit the variables below
var i_substring=0
var i_message=0
var i_letter=0
var messagelength
var content_corrcet=""
var content_chaos=""
var randomorder=new Array()
for (i=0;i<=200;i++) {
randomorder[i]=i
}
function getrandomorder(range) {
for (i=0;i<=200;i++) {
randomorder[i]=i
}
for (i=0;i<=range;i++) {
var firstvalue= Math.floor(range*Math.random())
var secondvalue= Math.floor(range*Math.random())
var cachevalue=randomorder[firstvalue]
randomorder[firstvalue]=randomorder[secondvalue]
randomorder[secondvalue]=cachevalue
}
}
function makechaos() {
messagelength=message[i_message].length-1
getrandomorder(messagelength)
content_correct=message[i_message]
content_chaos=""
for (i=0;i<=message[i_message].length-1;i++) {
content_chaos+=content_correct.substring(randomorder[i],randomorder[i]+1)
}
document.order.thismessage.value=content_chaos
makecorrcet()
}
function makecorrcet() {
if (i_letter<=messagelength) {
var front_chaos=content_chaos.substring(0,randomorder[i_letter])
var letter=content_correct.substring(randomorder[i_letter],randomorder[i_letter]+1)
var back_chaos=content_chaos.substring(randomorder[i_letter]+1,messagelength)
content_chaos=front_chaos+letter+back_chaos
document.order.thismessage.value=content_chaos
i_letter++
var timer=setTimeout("makecorrcet()",30)
}
else {
clearTimeout(timer)
i_letter=0
var timer=setTimeout("changemessage()", standstill)
}
}
function changemessage() {
i_message++
if (i_message>message.length-1) {
i_message=0
}
makechaos()
}
// - End of JavaScript - -->
</script>