ACEITA é xxxxxx, mas blz, só queria naum aceitar, mas blz valeuCara, navegadores diferentes podem apresentar comportamentos diferentes em JavaScript... é assim mesmo. Aluns você contorna, outros... ACEITA. Esse parece que é um a ser aceito.
Saulo
- Fórum WMO
- → Viewing Profile: Posts: scorninpc
Community Stats
- Group Usuários
- Active Posts 6
- Profile Views 484
- Member Title Novato no fórum
- Age Age Unknown
- Birthday Birthday Unknown
-
Sexo
Não informado
0
Neutral
User Tools
Friends
scorninpc hasn't added any friends yet.
Latest Visitors
-
Guest
04/11/2007, 02:59
Posts I've Made
In Topic: Windows.open Firefox
26/09/2005, 16:31
In Topic: Windows.open Firefox
26/09/2005, 15:33
function Visualizar(texto){ window.open("includes/vertextarea.php?msg=" + texto, "_blank","toolbar=no,directories=no,location=no,status=no,menubar=no, scrolling=yes, scrollbar=yes, resizable=no,width=570,height=300"); }
o status ainda esta presente no firefox

In Topic: Tags No Textarea Js
24/09/2005, 13:44
achei um exemplo bem interessate e o modifiquei conforme me interessava
meu prob ja está resolvido, posto ele caso minha duvida seja de outra pessoa tb
script
Chamada:
valeu alex vc me fez fica mais curioso sobre javascript
meu prob ja está resolvido, posto ele caso minha duvida seja de outra pessoa tb
script
<script type="text/javascript"> function countInstances(open,closed){ var opening = document.hop.contenu.value.split(open); var closing = document.hop.contenu.value.split(closed); return opening.length + closing.length - 2; } function TAinsert(text1,text2,contenu){ var ta = document.getElementById(contenu); if (document.selection){ var str = document.selection.createRange().text; ta.focus(); var Tam = text2.length; var sel = document.selection.createRange(); if (text2 != ""){ sel.text = text1 + sel.text + text2; } else{ sel.text = sel.text + text1; } } else if (ta.selectionStart | ta.selectionStart == 0){ if (ta.selectionEnd > ta.value.length) { ta.selectionEnd = ta.value.length; } var firstPos = ta.selectionStart; var secondPos = ta.selectionEnd+text1.length; ta.value=ta.value.slice(0,firstPos)+text1+ta.value.slice(firstPos); ta.value=ta.value.slice(0,secondPos)+text2+ta.value.slice(secondPos); ta.selectionStart = firstPos+text1.length; ta.selectionEnd = secondPos; ta.focus(); } else { // Opera var sel = document.hop.contenu; var instances = countInstances(text1,text2); if (instances%2 != 0 && text2 != ""){ sel.value = sel.value + text2; } else{ sel.value = sel.value + text1; } } } </script>
Chamada:
<img src="imagens/bold.gif" width="16" onclick="TAinsert('[B]', '[/B]', 'message');" height="16" border="0">
valeu alex vc me fez fica mais curioso sobre javascript

In Topic: Tags No Textarea Js
23/09/2005, 21:35
alex, ja tinha visto o tópico, mas naum ajudou muito
se tiver mas alguma coisa serei grato
se tiver mas alguma coisa serei grato

- Fórum WMO
- → Viewing Profile: Posts: scorninpc
- Privacy Policy
- Regras ·