• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
}

==========================================
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
to call it, you just need to use
parent.FrameName.FunctionName();
Eric
 
reply
    Bookmark Topic Watch Topic
  • New Topic