Solved

Minimize iframe window to just show its title bar when not is use

Posted on 2008-06-15
3
1,012 Views
Last Modified: 2010-04-21
i have this iFrame which i want to minimize just to show its title bar when not in use, else bring it up to its normal size (defined using width and height) - to do any operations - in shot iframe should minimize as showing its title bar and come back to its normal state when you double click the title bar - example gmail chat window - gmail chat window pops up to enter any messages and when not it use - it minimizes to show it title bar

0
Comment
Question by:dnraj
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
neeraj523 earned 250 total points
ID: 21790907
Hello

Try this sample script..

tested on IE 7.0 only.

neeraj523

<div id="d1" ondblclick="max()" style="visibility:visible">IFRAME PAGE (Double click to see)</div>
<iframe id="i1" src="test.htm" height="200" onBlur="min()" ></iframe>
<SCRIPT>
 
iHeight = document.getElementById("i1").height
function min()
{
	document.getElementById("i1").height="0"
	document.getElementById("d1").style.visibility = "visible"
}
 
function max()
{
	document.getElementById("d1").style.visibility = "hidden"
	document.getElementById("i1").height=iHeight
	document.getElementById("i1").focus();
}	
min()
</SCRIPT>

Open in new window

0
 

Author Closing Comment

by:dnraj
ID: 31467661
the solution was good enough to understand the concept, of what i wanted. thank you for the idea.
0
 
LVL 22

Expert Comment

by:neeraj523
ID: 21799032
B Grade .. huh
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Jquery driving me nuts... 14 27
Record locking on classic ASP 3 37
WordPress Page Content Lost 2 17
Javascript: Mouseup doesn't follow mousedown 13 25
An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question