Jump to content

refresh after a click


katarra

Recommended Posts

Good afternoon!

 

I'm trying to make it so that when someone clicks on one of the direction arrows, it refreshes not only the top frame, but the bottom frame as well. The top frame refreshes with each click, but the problem is that the bottom frame does not update. Is there a way to make the bottom frame update as well? Here is the coding around the directional arrows.

 

Thanks!

 

<div id="compass">
            <center>
            <table align="center">
            	<tr>
            		<td>
                        <? if (getlevel(get("plane"),coords(),"n")) $linx[0] = "<a href=main.php?username=$username&password=$password&action=n target=\"TOP\"><img src=images/northa.jpg border=0 alt=North title=North></a>";
else $linx[0] = "<img src=images/northb.jpg border=0 alt=North title=North>"; ?>
                        <? if (getlevel(get("plane"),coords(),"u")) $linx[4] = "<a href=main.php?username=$username&password=$password&action=u target=\"TOP\"><img src=images/upa.jpg border=0 alt=Up title=Up></a>";
else $linx[4] = "<img src=images/upb.jpg border=0 alt=Up title=Up>";?>
                        <br />
<img src="/images/blank.jpg" border="0" alt="none" />
                        <? if (getlevel(get("plane"),coords(),"w")) $linx[3] = "<a href=main.php?username=$username&password=$password&action=w target=\"TOP\"><img src=images/westa.jpg border=0 alt=West title=West></a>";
else $linx[3] = "<img src=images/westb.jpg border=0 alt=West title=West>"; ?>
                       <? if (getlevel(get("plane"),coords(),"e")) $linx[2] = "<a href=main.php?username=$username&password=$password&action=e target=\"TOP\"><img src=images/easta.jpg border=0 alt=East title=East></a>";
else $linx[2] = "<img src=images/eastb.jpg border=0 alt=East title=East>"; ?>
<img src="/images/blank.jpg" border="0" alt="none" />
                        <br />
					<? if (getlevel(get("plane"),coords(),"d")) $linx[5] = "<a href=main.php?username=$username&password=$password&action=d target=\"TOP\"><img src=images/downa.jpg border=0 alt=Down title=Down></a>"; 
					else $linx[5] = "<img src=images/downb.jpg border=0 alt=Down title=Down>";?>
                        <? if (getlevel(get("plane"),coords(),"s")) $linx[1] = "<a href=main.php?username=$username&password=$password&action=s target=\"TOP\"><img src=images/southa.jpg border=0 alt=South title=South></a>";
else $linx[1] = "<img src=images/southb.jpg border=0 alt=South title=South>"; ?><br />
<? if (strpos(get("flags"),"(blind)") === false) echo "<img src=images/blank.jpg border=0 alt=\"\">$linx[0]$linx[4]<br>\n<img src=images/blank.jpg border=0 alt=\"\">$linx[3]$linx[2]<img src=images/blank.jpg border=0 alt=\"\"><br>\n$linx[5]$linx[1]<img src=images/blank.jpg border=0 alt=\"\"><br>"; ?>
<img src="/images/blank.jpg" border="0" alt="none" />
                   </td>
                   </tr>
                </table>
                <? if (getlevel(get("plane"),coords(),"u")) echo "<a href=main.php?username=$username&password=$password&action=u target=\"TOP\">up</a> "; ?>
			<? if (getlevel(get("plane"),coords(),"n")) echo "<a href=main.php?username=$username&password=$password&action=n target=\"TOP\">north</a> "; ?> 
                <? if (getlevel(get("plane"),coords(),"s")) echo "<a href=main.php?username=$username&password=$password&action=s target=\"TOP\">south</a> "; ?>
                <? if (getlevel(get("plane"),coords(),"w")) echo "<a href=main.php?username=$username&password=$password&action=w target=\"TOP\">west</a> "; ?>
                <? if (getlevel(get("plane"),coords(),"e")) echo "<a href=main.php?username=$username&password=$password&action=e target=\"TOP\">east</a> "; ?>
               <? if (getlevel(get("plane"),coords(),"d")) echo "<a href=main.php?username=$username&password=$password&action=d target=\"TOP\">down</a>"; ?>
                </center>
            </div>

Link to comment
https://forums.phpfreaks.com/topic/197141-refresh-after-a-click/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.