...

View Full Version : mouseover change different page ?????



lost2
07-02-2003, 06:37 AM
howdy :-D


ok.. here's what i want to know...

i have an HTML page with and IFRAME
could i have an image map on the page thats located in the IFrame and when the mouseover is activated could it change something in the parent html page ?

someone please let me know what you think of this

tanx for your time

:thumbsup:

Kor
07-02-2003, 08:38 AM
Yes, you can

Generally speaking, if I am not wrong, I remember that you can call any function (say, function_name() ) written in parent simply using onevent="parent.function_name()"

Kor
07-02-2003, 08:51 AM
Look, here a simple parent page:

<html>
<head>
<script language="JavaScript">
function function_name(){
alert('message from parent');
}
</script>
</head>

<body>
<iframe src="iframe.html"></iframe>
</body>
</html>

...and here's the content of the page "iframe.html"

<html>
<head>
</head>
<body>
<input type="button" name="Button" value="Button" onclick="parent.function_name()">
</body>
</html>

Now when click on the button from iframe you call the alert() written in the parent page

WA
07-02-2003, 08:57 AM
lost2, please read our rules before posting in the future. You cross posted the same question in multiple forums.

See here:
http://www.codingforums.com/rules.htm
http://www.codingforums.com/postguide.htm



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum