El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 01/12/2005

Iframe Cross Browser

Trucos javascript:
Permite utilizar iframes tanto para NS como para IE


Código Javascript


<HTML>
<HEAD>
<TITLE> Iframe Cross Browser </TITLE>
<!-- Código descargado de http://www.htmlpoint.com -->
</HEAD>
<BODY>
<ilayer name="scroll1" width=170 height=150 clip="0,0,170,150">
<layer name="scroll2" width=170 height=150 bgColor="yellow">
<div id="scroll3" style="width:170;height:150;background-color:yellow;overflow:scroll">
www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, www.htmlpoint.com, </div>
</layer>
</ilayer>
<script>
var nsstyle='display:""'
if (document.layers)
var scrolldoc=document.scroll1.document.scroll2
function up(){
if (!document.layers) return
if (scrolldoc.top<0)
scrolldoc.top+=10
temp2=setTimeout("up()",50)
}
function down(){
if (!document.layers) return
if (scrolldoc.top-150>=scrolldoc.document.height*-1)
scrolldoc.top-=10
temp=setTimeout("down()",50)
}
function clearup(){
if (window.temp2)
clearInterval(temp2)
}
function cleardown(){
if (window.temp)
clearInterval(temp)
}
</script>
<br><span style="display:none" style=&{nsstyle};><a href="#" onMousedown="up()"
onMouseup="clearup()" onClick="return false" onMouseout="clearup()">Up</a> | <a href="#"
onMousedown="down()" onMouseup="cleardown()" onClick="return false"
onMouseout="cleardown()">Down</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=0;return false">Top</a> | <a href="#" onClick="if (document.layers) scrolldoc.top=scrolldoc.document.height*(-1)+150;return false">Bottom</a></span>
</body>
</html>
Iframe Cross Browser Categoría: Trucos, Javascript


Scripts Similares:

» Abrir archivo con javscript
» Abrir imagen javascript
» Abrir popup al salir
» Abrir un popup una sola vez
» Abrir ventana 2 javascript
» Abrir ventana con javascript
» Aceptar javascript
» Alerta en javascript
» Alfanumerico javascript
» Anular boton 1 javascript

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio creado y mantenido por Gabriel Marcelo Rodriguez
Hosting de alta calidad a bajo costo Neolo.com.ar