File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Javascript+HTML HELP.....URGENT...." Watch "Javascript+HTML HELP.....URGENT...." New topic

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

sam patel
Ranch Hand

Joined: Jun 13, 2002
Posts: 103
<!-- 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)

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
to call it, you just need to use
I agree. Here's the link:
subject: Javascript+HTML HELP.....URGENT....
It's not a secret anymore!