http://developer.mozilla.org/en/DOM/window.parent http://msdn.microsoft.com/en-us/libr...26(VS.85).aspx
http://developer.mozilla.org/en/DOM/window.top http://msdn.microsoft.com/en-us/libr...87(VS.85).aspx
Without a framed page's permission, you can only access the frame - not the page itself. Therefore...
in main_content.html:
Code:
window.parent.main = window;
function swap(img){ // or whatever you want to call it
// Do your thing here.
}
in left_nav.html:
Code:
window.onload = function(){
var images = document.getElementsByName('nav');
for(var i = 0; i < images.length; i++){
images[i].onmouseover = mouseover;
}
function mouseover(){
window.parent.main.swap(this); // or whatever you call it
}
};
Bookmarks