Hello!,
I have this well, little IE issue.
I'm showing hiding div's (containing IFRAMES), however, for some reason in IE one of the iframe contents allow me to click them (the last one allows me to browse the contents) the others I can't do anything with :(, it's like there is still a layer present (invisible)
It works fine in FF
If someone knows the answer, THANKS!
[HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>-</title>
<script type="text/javascript">
function mouseLeaves (element, evt) {
if (typeof evt.toElement != 'undefined' && evt.toElement && typeof
element.contain s != 'undefined') {
return !element.contai ns(evt.toElemen t);
}
else if (typeof evt.relatedTarg et != 'undefined' && evt.relatedTarg et) {
return !contains(eleme nt, evt.relatedTarg et);
}
}
function contains (container, containee) {
while (containee) {
if (container == containee) {
return true;
}
containee = containee.paren tNode;
}
return false;
}
</script>
<script type="text/javascript">
function hideElement (element) {
if (element.style) {
element.style.v isibility = 'hidden';
}
}
function showElement (element) {
if (element.style) {
element.style.v isibility = 'visible';
}
}
</script>
<style type="text/css">
#div1 {
border: 1px solid green;
width: 400px;
height: 400px;
position: absolute;
}
#div2 {
border: 1px solid green;
width: 400px;
height: 400px;
position: absolute;
}
#div3 {
border: 1px solid green;
width: 400px;
height: 400px;
position: absolute;
}
#div4 {
border: 1px solid green;
width: 400px;
height: 400px;
position: absolute;
}
</style>
</head>
<body>
<input type="button" value="show1"
onclick="var div;
if (document.getEl ementById) {
div = document.getEle mentById('div1' );
showElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div2' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div3' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div4' );
hideElement(div );
}
">
<input type="button" value="show2"
onclick="var div;
if (document.getEl ementById) {
div = document.getEle mentById('div2' );
showElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div1' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div3' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div4' );
hideElement(div );
}
">
<input type="button" value="show3"
onclick="var div;
if (document.getEl ementById) {
div = document.getEle mentById('div3' );
showElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div1' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div2' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div4' );
hideElement(div );
}
">
<input type="button" value="show4"
onclick="var div;
if (document.getEl ementById) {
div = document.getEle mentById('div4' );
showElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div1' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div2' );
hideElement(div );
}
if (document.getEl ementById) {
div = document.getEle mentById('div3' );
hideElement(div );
}
">
<div id="div1">
<iframe id="1" src="http://JavaScript.FAQT S.com/" width="100%" height="100%"></iframe>
</div>
<div id="div2">
<iframe id="2" src="http://www.google.com/" width="100%" height="100%"></iframe>
</div>
<div id="div3">
<iframe id="3" src="http://www.lycos.com/" width="100%" height="100%"></iframe>
</div>
<div id="div4">
<iframe id="4" src="http://www.nu.nl/" width="100%" height="100%"></iframe>
</div>
</body>
</html>[/HTML]
1 7241 acoder 16,027
Recognized Expert Moderator MVP
Use style.display = "block" and style.display=" none" to show and hide respectively instead of style.visibilit y.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Marina Ferguson |
last post by:
Hi,
I have a document with an iframe. The main doc has a "Print" button. The
idea is that when the user clicks it, the contents of the iframe is printed.
For some reason instead of the iframe I get a print out of the whole page.
I am using IE6. I spent several hours searching the groups but didn't find
anything that works. Even when I do this:
iframe_name.focus();
window.print();
|
by: Thomas |
last post by:
Hi there,
I have an iframe which is editable (designMode = "on") and want to
resize it dynamically as the content grows (e.g. more lines of text is
in there) and there the struggle starts.
I fill the iframe with content (<body> tag and so on and also insert a
<div> tag, inbetween is the content that should be modified).
Now if the event "overflow" or "underflow" is triggered the iframe
|
by: Jim Marquardson |
last post by:
Hi,
I've struggled with this for a while now, so I'm asking for help. I
am trying to click on a link in one page, have that link open up in a
new window, and set that newly opened window's ifram to a specific
url. Here is the code I'm using:
<html>
<head>
|
by: nospam |
last post by:
All
I am trying to achieve the following:
Main window page's asp code writes the following line to launch a popup
window (note the IFRAME has to be in the popup window, it cannot be in
the current page)
response.write("<script language='JavaScript'>var tempprintwindow =
window.open('papertempprint.asp?path=" & filePath & "','');")
|
by: ukrbend |
last post by:
I use an iframe on my home page and everything works perfectly. But
now I decided to add a popups to my page. The popups come not from
within the iframe but from the parent frame. Again, everything
regarding the popup works perfectly, it pops up with the correct data.
But the strange thing is now any link that targets the iframe simply
get ignored and instead of displaying things in the iframe they get
displayed in a new browser window...
| |
by: Mike |
last post by:
I have an intranet page which has an iframe which links to a number of
different possible .NET pages.
In one of the embedded .NET pages (and soon to be others) we want to be
able to capture keystrokes in order to link to other apps. we do this
by setting document.onkeydown to a function which handles the various
possibilities.
|
by: appleseed |
last post by:
I'm having some problems on IE with a small editor I'm building. The source of the problem is the following:
Consider having an iFrame with designMode="on" in which you select some text. When clicking anywhere in the page (outside de iframe), the iFrame looses focus and selection. However, this doesn't happen for images. When clicking on images the iFrame keeps its focus.
So, all my toolbar buttons (Bold, Italic, OL, UL... s.o.) that have...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |