iFrame and WordPress
-
Hello,
I have an IFRAME which is calling a wordpress page. I do not want to use the browser’s default scroll bars so I want to use the Scrollable IFRAME script located at this URL but! the second step of it require to append this to the end of the HTML page loaded into the IFRAME:
<!–DO NOT REMOVE BELOW SCRIPT. IT SHOULD ALWAYS APPEAR AT THE VERY END OF YOUR CONTENT–>
<script language=”JavaScript1.2″>
//Scrollable content III- By http://www.dynamicdrive.com
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=tempwindow.scrollBy(0,speed)
}setInterval(“initialize()”,10)
</script>
The problem is that WordPress pages heavily use PHP and CSS so I dunno if it’s even possible to append the script somewhere, or if there is a different method… or perhaps simply impossible.
Hope someone can help me.
- The topic ‘iFrame and WordPress’ is closed to new replies.