Forum Moderators: open
works fine.
element.style.padding = '100px 0 0 0';
Are you applying the padding to the iframe, or another element?
As you need to apply it to the iframe, so that all contents of the iframe will start 100px lower down.
I suppose you could always put all of the iframe contents within a div and relatively position that div to be 100px lower than the iframe. Although I dont see why adding padding to the iframe is not working...
<iframe scrolling='no'
src='http://www.facebook.com/photo_search.php?oid=1071510610&view=all'
border=0
width = '700'
height ='860'
onLoad='window.scrollBy(0, 100);' >
</iframe>
NOR
<body onLoad='document.getElementById("myframe").window.scrollBy(0, 100);'>
<div id="content">
<div id="colOne">
<div class="post"><iframe scrolling='no'
src='http://www.facebook.com/photo_search.php?oid=1071510610&view=all'
border=0
width = '700'
height ='860'
name='myframe'
id='myframe' >
</iframe>
</div>
</div>
</div>
I take it you want to scroll the iframe's contents so that the facebook banner at the top isnt visible?
I'm not sure if you will be able to get rid of that banner completely. As even if you set the scroll bars to start at a set position not showing the banner then people will always be able to scroll back to the top and see it.
You cant just get rid of that banner, as their is no way to control the contents of another domain.
I suppose you could just stick an image of something else over the top to cover it up.
However why dont you want people to see that the pics come from facebook? It looks like a club site, so surely you want people to be able to join a facebook group about the club.