Click to See Complete Forum and Search --> : iframe / onscroll= [without a body tag]


FMaz
07-21-2003, 08:16 AM
How can I call a function when an iframe is scrolled ?


but the page is "dynamicly" loaded .. so I can't put any <body onscroll="followdiv()">.

I've tried the .AttachEvent thing, but it doesn't work :( (maybe I wasn't able to target the iframe ...)


well, I've seen many site using what I want to do (a button or a menu that follow the page when scrolling) so I know it is possible... I only have some restrictions as I explain before.

Khalid Ali
07-21-2003, 09:00 AM
look into
document.body.scrollHight
for IE<6 and
document.documentElement.scrollHight
for IE6+

For netscape browsers

window.scrollX for parallel scrolling effect
window.scrollY for perpendicular.......

FMaz
07-25-2003, 07:54 AM
what I want is to start a function when the form is scrolling up or down...

I already have build the function ... so I don't need what you told me ...