а как выделенный текст поместить в  теги? 
<div onmouseousemove="selectedText()">Стебный незавершенный перевод Link's Awakening с матами и грамматическими ошибками.
Просыпаетесь вы, значит, на острове Сахалин...</div>
<script>
function selectedText(){
  if(window.getSelection)
     txt = window.getSelection().toString();
  else if(document.getSelection)
    txt = document.getSelection();               
  else if(document.selection)
    txt = document.selection.createRange().text;
  return <span style="color:red">txt</span>
 }
 подскажите