para que funcione script en IE y Firefox

Tengo un script que me crea una caja para texto con scroll, llamando a un archivo .html. Escribo el código primero y luego os hago la cuestion:

- en el archivo index:

<iframe id="datamain" src="iframe.html" marginwidth="10" marginheight="5" hspace="0"
vspace="0" frameborder="0" height="385" scrolling="no" width="600"></iframe>
<layer visibility="hide"></layer>
<div style="width: 600px" align="right">

<a href="#" onmouseover="scrollspeed=-2" onmouseout="scrollspeed=0">
[contenido no disponible]</a>
| <a href="#" onmouseover="scrollspeed=2" onmouseout="scrollspeed=0">
[contenido no disponible]</a>

</div>

-en el archivo iframe.html:
<html>
<body>
<script language="JavaScript1.2">

var speed, currentpos=curpos1=0,alt=1,curpos2=-1

function initialize(){
if (window.parent.scrollspeed!=0){
speed=window.parent.scrollspeed
scrollwindow()
}
}

function scrollwindow(){
temp=(document.all)? document.body.scrollTop : window.pageYOffset
alt=(alt==0)? 1 : 0
if (alt==0)
curpos1=temp
else
curpos2=temp

window.scrollBy(0,speed)
}

setInterval("initialize()",10)



</body>
<script type="text/javascript">
<!--
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList && pluginList.src)sSrc = pluginList.src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Coord_Callback = str;pluginList.__RP_Coord_Callback_Left = splitList[0];pluginList.__RP_Coord_Callback_Top = splitList[1];pluginList.__RP_Coord_Callback_Right = splitList[2];pluginList.__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Url_Callback = str;pluginList.__RP_Url_Callback_Vid = splitList[0];pluginList.__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_TotalBytes_Callback = str;pluginList.__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList.__RP_Connection_Callback = str;pluginList.__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//-->
</script>
</html>

Lo que hay despues del body no entiendo muy bien para que sirve, pero lo he mantenido.

Pues bien, este código funciona a la perfeccion en firefox pero en explorer solo me aparece un recuadro blanco. A ver si alguien sabe que debo cambiar en el código.

Muchas gracias!!!
Lo que hay despues del body no entiendo muy bien para que sirve,

Y el resto si??? :shock: je je je. Pues ya sabes más que nosotros!! ja ja ja.

Qué tal compi, no se mucho de scripts, pero puedes intentar colocar aquello de pusimos en la etiqueta BODY en lo del menú desplegable. Era algo así como:

<body onload="init();">

y nos cuentas, aunque no creo que lo soluciones.

De donde sacaste el código? Si lo has sacado de alguna web quizás puedas ver en ella (si es que usa ese script) si se ve con todos los navegadores o no. Si no, no tiene arreglo, pero si realmente alli se ve con todos, entonces podemos seguir investigando.

Un abrazo Fracto!! Cuanto tiempo, je je :wink:
jejejeje no lo entiendo mucho no jejejeje pero bueno, algo se queda por ahi en el huequecillo de la cabeza :wink: :wink:

voy a probar lo que me comentas! y gracias!