Er, much better !

This commit is contained in:
moodler
2005-02-27 17:55:53 +00:00
parent f75c5a46a1
commit 642c1d5bca
+7 -2
View File
@@ -172,9 +172,9 @@
}
}
if (get_user_preferences('message_beepnewmessage', 0)) {
echo 'parent.messages.document.write("<embed src=\"bell.wav\" height=\"0\" width=\"0\" autostart=\"true\" hidden=\"true\" name=\"bell\" />");';
$playbeep = true;
}
echo 'parent.messages.scroll(1,5000000);';
echo 'parent.messages.scroll(1,5000000);\\n';
}
// Update the info pane, but only if the data there is getting too old
@@ -197,6 +197,11 @@
echo '-->'."\n";
echo '</script>'."\n";
echo '</head>'."\n";
if (!empty($playbeep)) {
echo '<body>'."\n";
echo '<embed src="bell.wav" autostart="true" hidden="true" name="bell" />';
echo '</body>'."\n";
}
echo '</html>'."\n";
break;