Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • Last Modified:

html and iframes

http://charlestonhomehunters.com/test/test5.asp

the problem is that I am using 2 DIV's and one with an iframe, this way i can hide one or the other depending on if i am displaying a still image or the vitual tour(VT). The problem is when i click on the vitual tour, it leaves a gap between the contact and VT, but when i click on a still image there is no gap (don't worry that the still images are not linked). IE does not leave that bad of a gap, but motzilla leaves a huge gap, is there any fox to get rid of the gap or is it a problem of the browsers.
0
javajamminman
Asked:
javajamminman
  • 3
1 Solution
 
M256Commented:
Hi javajamminman,

I noticed something in your JavaScript.  Change this:
document.all['imagearea'].style.display = '';
to this:
document.all['imagearea'].style.display = 'block';

Please wait while I look at the main problem...

Matthew
0
 
M256Commented:
OK, I think I have it figured out.  Your iframe is taller than its contents.
Change your iframe height from 350 to 325 like so:

<iframe src="applet.asp?file=img_0009_0360.jpg" width="350" marginwidth="0" height="325" scrolling="no" frameborder="0" vspace="0" id="appletiframe">
</iframe>

Matthew
0
 
javajamminmanAuthor Commented:
Yeah, after you pointed me in the right direction, my applet had a hieght of 325 but my Iframe was 350, so thats why it had the gap.....All is well now,
thanks
0
 
M256Commented:
javajamminman,

Glad I could help out.

I am curious: why did you give me a grade of B?
I didn't just "point you in the right direction;" I gave you the exact answer you needed.

Matthew
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now