The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Why does my iframe script not work?
I have added a script to my test server that works outside of vbulletin, but not within. The script allows an iframe to be dynamically adjusted by the size of the content contained within. This is used in a rss template.
headinclude: Code:
<script language="JavaScript"> <!-- function calcHeight() { //find the height of the internal page var the_height= document.getElementById('fcontent').contentWindow. document.body.scrollHeight; //change the height of the iframe document.getElementById('fcontent').height= the_height; } //--> </script> RSS Feed "Body Template": Code:
<iframe width="100%" id="fcontent" onLoad="calcHeight();" src="{feed:link}" scrolling="NO" frameborder="1" height="1">An iframe capable browser is required to view this thread.</iframe> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|