frames and links

admin

Administrator
Staff member
i have a question about links and frames. Ok in my frameset I have a left frame, a main frame, and a right frame. In my right frame I have pictures of flowers. When you click on one of those flowers in the right frame I want a big flower to show up in my mainframe and in the right frame I want different colors of that flower to show up. Is that possible to do that? Is it possible for me to click on something in the right frame and have something pop up in my mainframe AND leftframe?<br />
If so could you please send me the code to do it?<br />
<br />
chris<!--content-->Assuming your frameset document defines the frame names as left, main and right, you can use a function like this:<br />
<br />
<script type="text/javascript"><br />
function redir(url_main,url_right){<br />
top.main.location = url_main;<br />
top.right.location = url_right;<br />
}<br />
</script><br />
<br />
<br />
Then you can call this from hyperlinks like this:<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:redir('big_flower.html','big_flower_colors.html');">Hyperlink text or image</a><br />
<br />
Good luck<br />
<br />
Adam<!--content-->
 
Back
Top