Iframe highly adaptive framework for the realization of
Related Tags:
Iframe framework to resolve the problem pages highly adaptive code below, it should be noted that the framework must be set up pages quoted attribute name, otherwise they will not come into effect
Option 1:
<iframe Src="test.asp" width="100%" frameborder="0" scrolling="no" name="hj" id="hj"> </ iframe>
Test.asp head pages increased as follows JS code
<SCRIPT LANGUAGE="JavaScript">
Function f_frameStyleResize (targObj) (
Var targWin = targObj.parent.document.all [targObj.name];
If (targWin! = Null) (
Var HeightValue = targObj.document.body.scrollHeight
If (HeightValue <600) (600) = HeightValue
TargWin.style.pixelHeight = HeightValue;
)
)
Function f_iframeResize () (
BLoadComplete = true; f_frameStyleResize (self);
)
Var bLoadComplete = false;
Window.onload = f_iframeResize;
</ SCRIPT>
-------------------------------------------------- --
Option 2: backup
Home of increase in the following code JS
<script Type="text/javascript">
Var iframeids = [ "myblog"]
Var iframehide = "yes"
Function dyniframesize ()
(
Var dyniframe = new Array ()
For (i = 0; i <iframeids.length; i)
(
If (document.getElementById)
(
Dyniframe [dyniframe.length] = document.getElementById (iframeids [i]);
If (dyniframe [i] & &! Window.opera)
(
Dyniframe [i]. Style.display = "block"
If (dyniframe [i]. ContentDocument & dyniframe [i]. ContentDocument.body.offsetHeight)
Dyniframe [i]. Dyniframe Height = [i]. ContentDocument.body.offsetHeight;
Else if (dyniframe [i]. Document & dyniframe [i]. Document.body.scrollHeight)
Dyniframe [i]. Dyniframe height = [i]. Document.body.scrollHeight;
)
)
If ((document.all | | document.getElementById) & & iframehide == "no")
(
Var tempobj = document.all? Document.all [iframeids [i]: document.getElementById (iframeids [i])
Tempobj.style.display = "block"
)
)
)
If (window.addEventListener)
Window.addEventListener ( "load" dyniframesize, false)
Else if (window.attachEvent)
Window.attachEvent ( "onload" dyniframesize)
Else
Window.onload = dyniframesize
</ Script>
Invoke a cross-border authority, pending further study
Iframe pages dynamic content div If achieved, adaptive highly unstable change table means to solve problems
- Sorted out a clearer framework for AJAX
- Iframe highly adaptive framework for the realization of
- Fast proficient in the use of master framework
- Ajax structure of the Web Application Framework
- Based on the application framework Ajax Summary
- AJAX initial development framework
- AJax Framework View
- Web-based framework of the optimization techniques
- Div + css page layout, how reasonable framework css?
- DIV
- How to control framework page rolling
- How framework embedded in Dreamweaver
- Div ? ? ? ¨°
- Ajax on a framework (AjaxFeeling provide the framework source code)
- Div css page layout, how reasonable framework css?
- Making the planning framework website
- AJAX framework Summary
- Using Dreamweaver in the framework of the establishment of website
- Using div Implementation Framework (excluding frame)
- Flash High Skills: Making Framework




