Jump to content


scorninpc

Member Since 22/09/2005
Offline Last Active 27/09/2005, 00:45
-----

Topics I've Started

Windows.open Firefox

26/09/2005, 14:54

function Visualizar(texto){
      window.open("includes/ver.php?msg=" + texto,"_blank","toolbar='no',directories='no',location='no',status='no',menubar='no',
scrolling='no',resizable='no',width='200',height='660'");
}

gente, esse code naum ta funcionando 100% no firefox

ele abre na tela toda, e com status.
percebi tb que o width='200',height='660' naum funciona nem no firefox nem no ie
pq hem?

Tags No Textarea Js

22/09/2005, 12:15

gente, to fazendo ums botões para colocar tags bbcode no textarea, mas no firefox naum funciona, só no ie

<script>
function InsertText(tag1, tag2, element_id){
     theSelection = document.selection.createRange(element_id).text;
     text.focus();
     if (theSelection == " ")
            document.createRange(element_id).text = tag1 + " " + tag2;
     else
            document.selection.createRange(element_id).text = tag1 + theSelection + tag2;
 }
</script>

<textarea name="text" rows=15 cols=45>
</textarea><BR>
<a href="javascript:InsertText('[B]', '[/B]', 'text');" style="CURSOR: default"><img src="imagens/editbold.gif" width="16" height="16" border="0"></a>&nbsp;

ai segue o codigo, creio que seja o createRange

alguem teria um code "gererico" ai :P

IPB Skin By Virteq