Commit 7b730c8c05dd3b9cae6e46ce8d666ac7c434d587
1 parent
3cb0ebac
Exists in
master
and in
7 other branches
correção na navegação por tabs
Showing
1 changed file
with
16 additions
and
11 deletions
Show diff stats
mobile/mobile.php
| @@ -193,6 +193,7 @@ if(!isset($maparef)){$maparef = "";} | @@ -193,6 +193,7 @@ if(!isset($maparef)){$maparef = "";} | ||
| 193 | <option value='localizar'>localizar lugares</option> | 193 | <option value='localizar'>localizar lugares</option> |
| 194 | <option value='localizarxy'>localizar coordenada</option> | 194 | <option value='localizarxy'>localizar coordenada</option> |
| 195 | </select> | 195 | </select> |
| 196 | + <div id=mensagem >utilize 'tab' para acessar as opções ou clique</div> | ||
| 196 | </div> | 197 | </div> |
| 197 | <form id='f' action='mobile.php?' method='get'> | 198 | <form id='f' action='mobile.php?' method='get'> |
| 198 | <input type='hidden' name='tmpfname' value='<?php echo $tmpfname;?>' /> | 199 | <input type='hidden' name='tmpfname' value='<?php echo $tmpfname;?>' /> |
| @@ -202,18 +203,18 @@ if(!isset($maparef)){$maparef = "";} | @@ -202,18 +203,18 @@ if(!isset($maparef)){$maparef = "";} | ||
| 202 | <input id='referencia' type=hidden name='maparef' value='<?php echo $maparef;?>' /> | 203 | <input id='referencia' type=hidden name='maparef' value='<?php echo $maparef;?>' /> |
| 203 | </form> | 204 | </form> |
| 204 | <map name="sample"> | 205 | <map name="sample"> |
| 205 | -<area shape="rect" coords="0,0,40,23" onclick='zoommais()'> | ||
| 206 | -<area shape="rect" coords="0,24,40,31" onclick='zoommais1()'> | ||
| 207 | -<area shape="rect" coords="0,32,40,38" onclick='zoommais2()'> | ||
| 208 | -<area shape="rect" coords="0,57,40,77" onclick='zoommenos()'> | ||
| 209 | -<area shape="rect" coords="0,43,40,49" onclick='zoommenos2()'> | ||
| 210 | -<area shape="rect" coords="0,50,40,56" onclick='zoommenos1()'> | 206 | +<area tabindex=1 onblur="mensagem('')" onfocus="mensagem('aproxima')" shape="rect" coords="0,0,40,23" onclick='zoommais()'> |
| 207 | +<area tabindex=8 onblur="mensagem('')" onfocus="mensagem('aproxima+')" shape="rect" coords="0,24,40,31" onclick='zoommais1()'> | ||
| 208 | +<area tabindex=9 onblur="mensagem('')" onfocus="mensagem('aproxima++')" shape="rect" coords="0,32,40,38" onclick='zoommais2()'> | ||
| 209 | +<area tabindex=2 onblur="mensagem('')" onfocus="mensagem('afasta')" shape="rect" coords="0,57,40,77" onclick='zoommenos()'> | ||
| 210 | +<area tabindex=10 onblur="mensagem('')" onfocus="mensagem('afasta+')" shape="rect" coords="0,43,40,49" onclick='zoommenos2()'> | ||
| 211 | +<area tabindex=11 onblur="mensagem('')" onfocus="mensagem('afasta++')" shape="rect" coords="0,50,40,56" onclick='zoommenos1()'> | ||
| 211 | 212 | ||
| 212 | -<area shape="rect" coords="0,78,40,90" onclick='norte()'> | ||
| 213 | -<area shape="rect" coords="22,91,40,104" onclick='leste()'> | ||
| 214 | -<area shape="rect" coords="0,106,40,119" onclick='sul()'> | ||
| 215 | -<area shape="rect" coords="0,91,18,105" onclick='oeste()'> | ||
| 216 | -<area shape="rect" coords="0,120,40,150" onclick='identifica()'> | 213 | +<area tabindex=3 onblur="mensagem('')" onfocus="mensagem('norte')" shape="rect" coords="0,78,40,90" onclick='norte()'> |
| 214 | +<area tabindex=4 onblur="mensagem('')" onfocus="mensagem('leste')" shape="rect" coords="22,91,40,104" onclick='leste()'> | ||
| 215 | +<area tabindex=5 onblur="mensagem('')" onfocus="mensagem('sul')" shape="rect" coords="0,106,40,119" onclick='sul()'> | ||
| 216 | +<area tabindex=6 onblur="mensagem('')" onfocus="mensagem('oeste')" shape="rect" coords="0,91,18,105" onclick='oeste()'> | ||
| 217 | +<area tabindex=7 onblur="mensagem('')" onfocus="mensagem('identifica')" shape="rect" coords="0,120,40,150" onclick='identifica()'> | ||
| 217 | </map> | 218 | </map> |
| 218 | <img id='mapa' onclick='autopan(event)' style="position:relative;top:1px;left:1px" src='<?php echo $nomeimagem; ?>' usemap="#sample" /> | 219 | <img id='mapa' onclick='autopan(event)' style="position:relative;top:1px;left:1px" src='<?php echo $nomeimagem; ?>' usemap="#sample" /> |
| 219 | <br> | 220 | <br> |
| @@ -238,6 +239,10 @@ navm = false | @@ -238,6 +239,10 @@ navm = false | ||
| 238 | var app = navigator.appName.substring(0,1); | 239 | var app = navigator.appName.substring(0,1); |
| 239 | if (app=='N') navn=true; else navm=true; | 240 | if (app=='N') navn=true; else navm=true; |
| 240 | pan = "" | 241 | pan = "" |
| 242 | +function mensagem(m) | ||
| 243 | +{ | ||
| 244 | + document.getElementById("mensagem").innerHTML = m | ||
| 245 | +} | ||
| 241 | function zoommais() | 246 | function zoommais() |
| 242 | { | 247 | { |
| 243 | document.getElementById('tipo').value = 'zoommais'; | 248 | document.getElementById('tipo').value = 'zoommais'; |