questo il file load.js
codice:
<!--
function load(inputurl){
if (document.getElementById)
document.getElementById("datamain").src=inputurl
else if (document.all)
document.all.datamain.src=inputurl
else{
if (!window.win2||win2.closed)
win2=window.open(inputurl)
//else if win2 already exists
else{
win2.location=inputurl
win2.focus()
}
}
}
//-->
questo il file scrollable.js
codice:
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)
e questa il cod. html...
codice:
<table cellpading="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="right>[img]img/az_hp_frecciaSu.gif[/img]</td>
<td><iframe id="datamain" src="lista.htm" width=150 height=180 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no></iframe></td>
<td valign="bottom">[img]img/az_hp_frecciaGiu.gif[/img] </td>
</tr>
</table>
ma invece di scrollare l'Iframe mi scrolla tutta la pagina com se usassi la rotellina del mause!!!
e l'id che richiama nel file "load.js" è lo stesso che do all' Iframe....
PErCHé?!