| 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: 15357
|
|
to call it, you just need to use parent.FrameName.FunctionName(); Eric
|
 |
 |
|
|
subject: Javascript+HTML HELP.....URGENT....
|
|
|