if($row["title"] != ""){
?>
<script type='text/javascript'>
function titlebar(val)
{
var msg = "<?php $row[title]; ?>";
var speed = 500;
var pos = val;
var msg1 = msg;
var msg2 = msg;
if(pos == 0){
masg = msg1;
pos = 1;
}
else if(pos == 1){
masg = msg2;
pos = 0;
}
document.title = masg;
timer = window.setTimeout("titlebar("+pos+")",speed);
}
titlebar(0);
</script>";
Now here's my problem. This javascript should change the title for the user who uses it.
BUT it wont work, it just changes the title to the url.. . And i cant find anything wrong with it.
Please help
Great rewards Predicate.
(Sorry for my bad english)