2010-07-22 7 views
0

je travaille pour créer un prototype jQTouch et souhaitez utiliser l'image carte, par exemple:jQTouch - Supporte-t-il les cartes-images?

<img src="planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> 

<map name="planetmap"> 
    <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> 
    <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> 
    <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" /> 
</map> 

Pour une raison quelconque, cela ne semble pas fonctionner dans jQTouch - Toute personne a une expérience avec cela?

Répondre

1

Utilisez l'attribut target = "_ webapp", et il devrait fonctionner ...

Alors:

<map name="planetmap"> 
    <area target="_webapp" shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" /> 
    <area target="_webapp" shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" /> 
    <area target="_webapp" shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" /> 
</map>