Hi im a newbie to java so please don't laugh. And apologies in advance for my English.
When i open my page the src of the iframe is home.html. Home.html is empty and its in the way of the interface of my .swf file. My swf triggers the iframe to change into 50 different URL. So at the beginning the iframe should be gone. But whenever the src changes it should come back. I tried it by changing the height of the iframe. But nothing changes.
here is a preview http://boyswithbeards.net/xrc/pres/
I have something like this.
<iframe name="MoinkOriginal" id="MoinkOriginal" src="home.html" frameborder="0" scrolling="auto"></iframe>
<script type = "text/javascript">
var iframe = document.getElementById('MoinkOriginal');
if (src='home.html') {
var iframeElement = parent.document.getElementById('MoinkOriginal');
iframeElement.style.height = "0px"; // or use px
iframeElement.style.width = "500px"; // or use px
iframeElement.style.marginHeight = "-563px"; // or use px
iframeElement.style.marginLeft = "750px"; // or use px
}
else {
var iframeElement = parent.document.getElementById('MoinkOriginal');
iframeElement.style.height = "300px";
iframeElement.style.width = "500px";
iframeElement.style.marginHeight = "-563px"; // or use px
iframeElement.style.marginLeft = "750px"; // or use px
}
</script>
Thank you for helping me. Im stuck on this for days.
When i open my page the src of the iframe is home.html. Home.html is empty and its in the way of the interface of my .swf file. My swf triggers the iframe to change into 50 different URL. So at the beginning the iframe should be gone. But whenever the src changes it should come back. I tried it by changing the height of the iframe. But nothing changes.
here is a preview http://boyswithbeards.net/xrc/pres/
I have something like this.
<iframe name="MoinkOriginal" id="MoinkOriginal" src="home.html" frameborder="0" scrolling="auto"></iframe>
<script type = "text/javascript">
var iframe = document.getElementById('MoinkOriginal');
if (src='home.html') {
var iframeElement = parent.document.getElementById('MoinkOriginal');
iframeElement.style.height = "0px"; // or use px
iframeElement.style.width = "500px"; // or use px
iframeElement.style.marginHeight = "-563px"; // or use px
iframeElement.style.marginLeft = "750px"; // or use px
}
else {
var iframeElement = parent.document.getElementById('MoinkOriginal');
iframeElement.style.height = "300px";
iframeElement.style.width = "500px";
iframeElement.style.marginHeight = "-563px"; // or use px
iframeElement.style.marginLeft = "750px"; // or use px
}
</script>
Thank you for helping me. Im stuck on this for days.
Comment