Forum Moderators: open
I added this to the BODY section
<iframe src="x.htm" name="myFrame" id="myFrame" scrolling="yes" frameborder="0"></iframe>
Now, in my browsers IE6.0, Netscape 7.0 and Opera 6.05 it works just fine, I can scroll up and down within the frame defined by the iFrame command. Some visitors told me that they cannot scroll in this frame.
I know it's very odd, but it's getting even stranger.
After adding following script in the HEAD section more people can navigate and scroll within the iFrame formed window, but not everyone.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function writeLayer(text) {
document.frames['myFrame'].location.href = text;
document.addrForm.location.value = text;
}
function setLayer(text) {
if (text.indexOf("http://",0) <= 0)
text = "http://" +text;
document.frames['myFrame'].location.href = text;
document.addrForm.location.value = text;
}
// End -->
</script>
I know there's no connection between the two pieces of code.
What is the problem?
Thank you for a respons.
Karl
but I answered a previous question like this before, though it wasn't javascript related, but the theory may be the same
The solution was to add a z-index to the iframe so it wasn't being "obscured" by a div... perhaps it's the same with layers?
I'll look later if you can't find post
Suzy
More browser specific info as per futureX's suggestion would help and/or a code snippet would be a help if you still can't get it figured..
Suzy
First I'm gonna try to fix the z-index for the iFrame tag. I'm also gonna contact the people with the problem to mail me the settings and the info of their browsers to check where it go wrong. If there are more suggestions for this problem, they're very welcome. Thank you.
Karl