PDA

View Full Version : multiple targeted iframes


meerah
02-13-2006, 06:25 PM
Hi,
anybody knows how to target multiple iframes by one hotspot.?

Thanks in advance

davidj
02-14-2006, 08:31 AM
javascript

what do you want to do to each IFRAME

meerah
02-14-2006, 10:20 AM
I want each iframe to display different page... I have one main iframe which displays overall info and then one on left which should display download links for brochures......I want to do it somehow simple...I do not want the user to be annoyed by downloading javascript plugins or whatever to view it ...
????

davidj
02-14-2006, 10:38 AM
check out the function...

frames['iframe1'] // replace the name of your iframe (iframe1) (iframe2)
and the page location (page1.htm) (page2.htm)


<head ...
<script ...
function loader(){

window.frames['iframe1'].location.href="page1.htm";
window.frames['iframe2'].location.href="page2.htm";
window.frames['iframe3'].location.href="page3.htm";

}
</script>..
</head>...



<map name="Map" id="Map"><area shape="rect" coords="15,12,87,94" href="#" onClick="loader()"/></map>