HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
iframe height and top issue
Post new topic   This topic is locked: you cannot edit posts or make replies.    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
hindy0123



Joined: 16 Nov 2008
Posts: 4

PostPosted: Mon Nov 17, 2008 11:47 pm     iframe height and top issue Reply with quote

My base page contain several iframes:
<head>
<title><wicket:message key="liveManagement.title" /></title>
</head>
<wicket:extend>
<div id="iframe-container">
<iframe id="iframe-form-small" scrolling="no" wicket:id="ShowVidgetsFrame"></iframe>
<iframe id="iframe-form-small" scrolling="no" wicket:id="VideoFrame"></iframe>
<iframe id="iframe-form-small" scrolling="no" wicket:id="MessagesFrame"></iframe>
<iframe id="iframe-form-small" scrolling="no" wicket:id="PollsFrame"></iframe>
</div>
</body>

Each iframe looks like:
<form>
<h1>Show Frame</h1>
<input type="button" id="showButton" style="position:absolute; top:-1px; left:310px" value="Hide" onClick="showHideFrame()" />
</form>

<div id="showForm">
<span wicket:id="feedback" class="message"></span>
<form id="ShowVidgetForm_name" wicket:id="ShowVidget-form">
<p>Current Running Show Properties:</p>
.....
</form>
</div>

<script type="text/javascript"><!--

function showHideFrame() {
if( document.getElementById('showButton').value == "Hide"){
document.getElementById('showButton').value = "Show";
document.getElementById('showForm').style.display="none";
parent.document.getElementById('iframe-form-small').style.height="100px";
}
else{
document.getElementById('showButton').value = "Hide";
document.getElementById('showForm').style.display="";
parent.document.getElementById('iframe-form-small').style.height="500px";
}
}
//--></script>

Thanks in advance
PayneLess Designs



Joined: 28 Feb 2007
Posts: 1248
Location: Biloxi, MS

PostPosted: Wed Nov 19, 2008 7:10 am     Reply with quote

Please do not post duplicates. You have already posted this question HERE.
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial