LordHelmut
08-19-2002, 02:34 PM
Im trying to make it so when you click on a image (button) in html, it loads two pages. See, my page is in 3 parts with tables, one is a nav menu, the other two parts are Iframe's. When a button in the nav bar is clicked it has to load a page in one iframe and one in the other iframe. Here is the javascript I got...
<script language="javscript">
function loadBothFrames(firstlink,secondlink)
{
iframe1.location=firstlink;
iframe2.location=secondlink;
return 0;
}
</script>
....as we venture further down the page....
<a href="java script:loadBothFrames('hey.html','ohhi.html');">your image</a>
but I need to figure out how to send links to it. So like when one button is clicked, one iframe is loaded with lets say like this...
Button is clicked in navbar called HOME. In the submenu iframe it loads in submenu-home.php and in the main iframe it loads in home.php then for lets say the downloads button, it loads in submenu-downloads.php and downloads.php and so on. How would I recycle that javascript to do it for each button.
<script language="javscript">
function loadBothFrames(firstlink,secondlink)
{
iframe1.location=firstlink;
iframe2.location=secondlink;
return 0;
}
</script>
....as we venture further down the page....
<a href="java script:loadBothFrames('hey.html','ohhi.html');">your image</a>
but I need to figure out how to send links to it. So like when one button is clicked, one iframe is loaded with lets say like this...
Button is clicked in navbar called HOME. In the submenu iframe it loads in submenu-home.php and in the main iframe it loads in home.php then for lets say the downloads button, it loads in submenu-downloads.php and downloads.php and so on. How would I recycle that javascript to do it for each button.