感觉你像是在做地图查询的功能?估计要applet才行

解决方案 »

  1.   

    frm.htm
    <FRAMESET name="fstMain" cols="20%,*" framespacing="0" frameborder="1" border="1">
          <FRAME name="fraLeftFrame" src="left.htm" TOPMARGIN="0" frameborder="0" border="0" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0"></FRAME>
          <FRAME name="fraRightFrame" src="main.htm" TOPMARGIN="0" frameborder="0" border="0" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" topmargin="0"></FRAME>
    </FRAMESET>left.htm
    <script>
    function showimg()
    {
    if(document.all.show.style.height/document.body.clientHeight>document.all.show.style.width/document.body.clientWidth)
    document.all.show.style.height=document.body.clientHeight;
    else
    document.all.show.style.width=document.body.clientWidth;
    }
    function showright()
    {
    top.fraRightFrame.document.all.show.style.display="block";
    top.fraRightFrame.document.body.scrollLeft=event.clientX/document.all.show.clientWidth*top.fraRightFrame.document.body.scrollWidth;
    top.fraRightFrame.document.body.scrollTop=event.clientY/document.all.show.clientHeight*top.fraRightFrame.document.body.scrollHeight;
    }
    </script>
    <body onload=showimg()>
    <img src=show.jpg id=show onclick=showright()>main.htm
    <img src=show.jpg id=show style="display:none">