ridotto ai minimi termini
il documento contenuto nell' iframe deve appartenere allo stesso dominio del documento che contiene l' iframecodice:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>scroll contenuto iframe</title> <script type="text/JavaScript"> /*<![CDATA[*/ var timer=false; function scrollStop(){ if(timer) clearTimeout(timer); } function scrollIfr(amount){ document.getElementById('Ifr').contentWindow.scrollBy(0,amount); timer=setTimeout('scrollIfr('+amount+')',50); } /*]]>*/ </script> </head> <body> <iframe id="Ifr" src="document_da_scrollare.htm"></iframe> up down </body> </html>
ciao

Rispondi quotando