wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Javascript+HTML HELP.....URGENT.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript+HTML HELP.....URGENT...." Watch "Javascript+HTML HELP.....URGENT...." New topic
Author

Javascript+HTML HELP.....URGENT....

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
Hi,
<!-- I am kind of new to javascript + html...
This is what i had before, i had one html file that contained all the javascript functions and displayed image. I had zoom-in, zoom-out labels, so when i moved my mouse over the lable it would zoom-in and zoom-out the image....
This was all in one file....
Now i want to create Two Frames and a frameSet file... The two frames are called from FrameSet file....
In Frame1(Frame1.htm) I am creating a onMoOver="zoom(1000,900,'myimage','in')"....
In frame2(Frame2.htm) i am displaying the Image and have all the javaScript functions..
FrameSet file (Main.htm) displays the Frame1 and Frame2....
How can i call the Zoom(....) function from Frame1.htm file, while the Zoom(...) function is in Frame2.htm.
Before i had everything in one file so there was no problems...
How can i call the zoom function from Frame1.htm and have it zoom-in and zoom-out in Frame2.htm.
Any help will be greatly appreciated.....
==========================================
Here's what i have in Frame1.htm File....
=================
"onMoOver="zoom(1000,900,'myimage','in')" "
"onMouseOut="clearzoom()"<Zoom "
"onMoOver="zoom( 100,900,'myimage','restore')"

==========================================

==========================================
Here's what i have in Frame2.htm File....
=================
function zoomhelper(){
}
function zoom(originalW, originalH, what, state){
}
function clearzoom(){
if (window.beginzoom)
clearInterval(beginzoom)
}

==========================================
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
to call it, you just need to use
parent.FrameName.FunctionName();
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javascript+HTML HELP.....URGENT....
 
Similar Threads
JSP and HTML Frames
Frame as MODAL
returning the result in different frame
Calling Parent window(Very Urgent)
NETSCAPE 6.2 & FRAMES