O
Olive
Guest
could someone tell me what language is this java or html, sorry but I don't know anything about programming. It is code I got it and I tried it, it help me but the text wont be in the center so could you tell me also how to do that?
<div style="text-align: center;">
</div>
<script language="JavaScript">
/*****************************************
******************************************/
<!-- Begin
var ALAA = 1;
now = new Date();
var rd = now.getSeconds();
var ra = rd % ALAA;
var re = ++ra;
var sori = "";
if (re == 1) {
sori = "yahoo answer is the best";
}
if (re == 1) {
sori = "Be good";
}
var ALAA=""+sori+"";
document.write(ALAA);
// End -->
</script>
Thanx colanth but it doesn't work, I've write:
document.write('<center>'+ALAA+</cente>);
instead of
document.write(ALAA);
but nothing happen even it doesn't work at all.
<div style="text-align: center;">
</div>
<script language="JavaScript">
/*****************************************
******************************************/
<!-- Begin
var ALAA = 1;
now = new Date();
var rd = now.getSeconds();
var ra = rd % ALAA;
var re = ++ra;
var sori = "";
if (re == 1) {
sori = "yahoo answer is the best";
}
if (re == 1) {
sori = "Be good";
}
var ALAA=""+sori+"";
document.write(ALAA);
// End -->
</script>
Thanx colanth but it doesn't work, I've write:
document.write('<center>'+ALAA+</cente>);
instead of
document.write(ALAA);
but nothing happen even it doesn't work at all.