![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/06/2002, 14:42
|
![Avatar de Linterns](http://static.forosdelweb.com/customavatars/avatar12557_2.gif) | Colaborador | | Fecha de Ingreso: diciembre-2001
Mensajes: 2.799
Antigüedad: 23 años, 1 mes Puntos: 11 | |
Re: Como ocultar el codigo fuente Bueno, la verdad es que ocultar es imposible como te dicen los compañeros.
pero hacerlo un poco mas dificil...mmmm....
Intenta con lo siguiente:
En la pagina principal puedes insertar este codigo:
<script>
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"",& quot;help:0;resizable:1;dialogWidth:'+mwidth+'px;d ialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+m width+'px,height='+mheight+'px,resizable=1,scrollb ars=1")')
}
</script>
Lo que hace es abrir ya se a con un boton algo asi:
modelesswin("mypagina.html", 700,350);
Y en todas las otras paginas escribes entre los head:
<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<script language=JavaScript>
<!--
var message="";
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&am p;!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document. onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontext menu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
Espero te sirva de algo !!!
:) :) :) :)
------------------------
Move Up or Move Out !!!
------------------------ |