Arme esto pero de momento, con mis conocimientos no le encuentro la vuelta :p a ver si alguno puede ayudarme
Código PHP:
<body>
<meta http-equiv="refresh" content="5"/>
</body>
<html>
<head>
<script type="text/javascript">
function buscar() {
insulto = 'tonto';
texto = document.body.innerHTML;
patron = new RegExp('('+insulto+')','gi');
texto = texto.replace(patron,'<span style="background:yellow">$1</span>');
document.body.innerHTML = texto;
}
function Reproducir(){
document.all.sound.src = "x.wav"}
if ( patron = new RegExp('('+insulto+')','gi') {
function Reproducir()
}
</script>
</head>
<body onload="buscar()">
<p>Este código es un poco tonto</p>
<p>Pero más tonto hubiera sido no intentarlo</p>
</body>
</html>