A quick script:
Code:
function linkr(){
document.frames["iframe1"].location.href = "./something.html"
document.frames["iframe2"].location.href = "./somethingelse.html"
}
A quick example:
Code:
<img src="myImage.jpg" alt="My PICTURE!" onClick="linkr()"/>
Keep in mind that depending on the names of the pages you are redirecting to, that one function could become a lot more powerful with a few modifications. For instance, let's say you have a picture of a hotdog. Iframe1 goes to hotdog.html, iframe2 goes to hotdogInfo.html.
Code:
function linkr(whereTo){
document.frames["iframe1"].location.href = "./" + whereTo + ".html"
document.frames["iframe2"].location.href = "./" + whereTo + "info.html"
}
Code:
<img src="myImage.jpg" alt="My PICTURE!" onClick="linkr('hotdog')"/>
Then, you could add a picture of a hamburger, and link to "hamburger.html" and "hamburgerinfo.html" by only changing that image's "linkr('hamburger')". Just depends what your overall goal is.
Bookmarks