Forum Moderators: open
First off, great site, I have gotten lots of help from here just by reading.
I am haveing a littile problem though...
I have a I-Frame, and it looks really bad with scroll bars. So what I was planning to do was turn off the scroll bars, and then make 2 images for scroll up and scroll down. onMousePress would make the i-frame scroll up or down, so far I havent been able to find out how to do it yet.
Mabe you could help me?
Thanks,
King Steve1
I think you may have some complications here -- if you code SCROLLING="NO" in the IFRAME tag, then scrollBy() will not work. I did find an iframe scroller on DynamicDrive, but it is IE only -- cross browser it may not work well at all.
Still, maybe you can use an IE only solution, or find another script that you can make work cross-browser. Search engines are your friend, here ;) -- I found lots of scripts in the neighborhood of what you want by searching for "javascript scroll iframe".
However, my advice would be to bite the bullet and put up with the somewhat ugly scrollbars when they're needed. This kind of scrolling is a non-standard web interface and your visitors may not find it very freindly. But if you feel comfortable about your user base, best of luck.
Plus, isn't an image that gets cut-off by the iframe's edge already pretty ugly?