Skip to content

Commit

Permalink
Er, much better !
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 27, 2005
1 parent f75c5a4 commit 642c1d5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions message/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;

Expand Down

0 comments on commit 642c1d5

Please sign in to comment.