Foros del Web » Creando para Internet » HTML »

Pasar variables al hacer click en un mapa

Estas en el tema de Pasar variables al hacer click en un mapa en el foro de HTML en Foros del Web. Hola amigos, tengo creado un mapa mundial que dependiendo de la zona donde se haga clic t realiza un tratamiento u otro, el objetivo es ...
  #1 (permalink)  
Antiguo 17/07/2009, 04:25
 
Fecha de Ingreso: junio-2009
Mensajes: 115
Antigüedad: 8 años, 5 meses
Puntos: 0
Pasar variables al hacer click en un mapa

Hola amigos, tengo creado un mapa mundial que dependiendo de la zona donde se haga clic t realiza un tratamiento u otro, el objetivo es buscar dominios geograficamente, esto es, tenemos un formulario que acepta una palabra a buscar y entonces el usuario debe seleccionar el area geografica sobre la cual desea realizar la busqueda, concretamnete, mi codigo es el siguiente:
<body>
<form method="POST" action="busca.php">
<input type="text" name="palabra" />


<h6> Seleccione una o varias extensiones: <h6>

<form name="segundo" method="POST" action="busca.php">
<input type="checkbox" name="dominio[]" value="com">Com
<input type="checkbox" name="dominio[]" value="org">Org
<input type="checkbox" name="dominio[]" value="net">Net
<input type="checkbox" name="dominio[]" value="edu">Edu
<input type="checkbox" name="dominio[]" value="es">Es
<input type="checkbox" name="dominio[]" value="ma">Ma
<p>
<b>
<h4> Busqueda geografica: <h4>
<p>
<p>
<p>
<Input type="Submit" Name="Submit1" Value="Buscar">
</FORM>

<map name="unnamed">
<area shape="poly" title="Oceania" alt="Oceania" href="muestra.php?CONTINENTE=Oceania" target="_self" coords="380,210,381,212,381,215,379,219,379,222,37 8,225,375,231,375,234,376,236,376,242,377,244,377, 247,378,249,378,252,380,256,380,262,381,264,381,27 0,382,272,388,272,392,270,395,270,397,269,400,269, 402,268,405,268,413,272,414,275,416,277,418,278,42 0,282,422,284,424,285,426,287,434,291,437,291,439, 292,442,292,444,293,447,293,453,290,456,290,458,28 9,464,277,463,275,461,274,458,273,452,273,450,274, 438,274,436,275,432,273,431,271,431,265,433,261,43 3,258,427,246,427,240,430,234,430,222,429,220,423, 220,421,221,409,215,405,211,402,209,401,206,399,20 2,397,201,391,201,389,200,387,202,383,210,383,213, 382,215" />
<area shape="poly" title="Asia" alt="Asia" href="muestra.php?CONTINENTE=Asia" target="_self" coords="276,94,276,103,274,107,274,110,273,113,273 ,125,276,131,278,133,279,135,279,138,280,140,284,1 42,285,144,287,146,287,149,285,153,287,155,290,161 ,292,162,293,164,291,168,289,169,286,169,284,170,2 81,170,280,172,278,173,276,177,276,180,280,188,282 ,190,288,202,291,202,293,203,299,203,300,201,304,1 99,308,195,309,192,310,190,322,190,323,192,325,193 ,328,199,328,202,330,203,331,206,333,210,335,211,3 38,211,339,209,342,209,358,217,360,219,361,221,363 ,223,365,224,366,226,370,228,371,226,373,224,374,2 22,374,195,376,193,380,191,383,191,385,189,387,188 ,389,184,391,182,397,179,400,179,402,178,405,178,4 15,173,417,171,419,167,419,164,420,162,420,153,419 ,151,420,149,420,146,421,144,421,138,425,136,431,1 36,432,138,434,139,440,139,441,137,445,135,446,133 ,447,129,447,126,449,124,450,122,452,121,455,120,4 58,120,460,119,463,118,464,116,466,115,467,113,467 ,107,468,105,471,102,473,101,474,103,476,104,478,1 03,480,99,476,97,474,93,471,93,468,92,466,90,464,8 9,449,89,446,88,444,87,441,86,431,81,430,79,428,77 ,427,75,427,72,428,70,432,68,430,64,428,63,425,63, 419,61,413,61,409,63,408,66,407,68,405,69,403,71,4 01,72,389,72,383,69,383,66,380,60,380,57,379,55,37 7,54,374,48,372,46,372,43,371,40,369,36,367,34,365 ,30,363,29,362,27,360,26,351,26,346,36,346,39,347, 41,349,42,350,44,352,45,354,49,355,52,357,54,356,5 7,355,59,353,60,352,62,348,64,346,68,344,69,342,71 ,338,73,335,73,331,75,325,75,323,73,321,69,321,66, 323,62,323,59,322,57,320,55,317,55,316,57,310,60,3 09,62,305,64,304,66,302,67,300,69,298,70,295,76,29 3,78,290,80,289,82,283,85,281,87,279,88,278,90,276 ,91,275,93" />
<area shape="poly" title="Europa" alt="Europa" href="muestra.php?CONTINENTE=Europa" target="_self" coords="222,126,220,130,219,133,218,135,216,136,21 5,139,213,143,213,146,214,148,214,151,215,153,215, 156,216,158,216,167,220,169,226,169,228,167,230,16 6,232,162,236,160,239,160,241,161,241,164,244,164, 246,165,249,165,248,167,250,168,252,167,253,165,25 6,165,257,167,259,168,265,168,267,169,276,169,278, 168,284,168,288,166,288,163,286,162,285,160,283,15 9,282,157,280,156,280,153,282,149,282,143,278,141, 277,139,273,137,272,135,270,134,268,130,268,127,26 6,123,266,120,267,118,269,117,271,113,271,101,270, 99,270,96,269,94,269,88,267,84,265,82,262,82,256,8 5,255,87,253,88,250,94,248,96,247,98,245,99,244,10 2,235,120,232,120,222,125,219,131,217,133,216,135, 216,138,215,140,217,144,217,153,218,155,218,161,21 7,163,217,169" />
<area shape="poly" title="America del Sur" alt="America del Sur" href="muestra.php?CONTINENTE=Sur" target="_self" coords="112,203,114,202,115,200,117,198,119,194,12 1,192,123,191,126,191,134,195,137,195,138,197,137, 199,137,202,139,206,141,207,144,207,148,209,151,20 9,153,211,161,215,162,217,164,218,164,224,166,225, 175,225,181,228,182,230,181,233,180,235,178,236,17 7,238,177,250,173,252,170,252,168,253,166,257,166, 260,162,268,160,269,159,271,153,274,151,276,149,27 7,147,281,145,282,144,284,144,287,141,293,141,296, 140,298,140,304,141,306,142,309,141,311,139,310,13 8,308,136,307,135,305,133,303,132,301,132,298,131, 296,132,293,132,287,133,285,133,273,135,269,135,26 6,136,264,136,261,137,259,137,256,138,254,138,248, 137,246,135,244,134,242,132,241,125,227,123,226,12 2,224,128,212,120,208,117,205,116,203,114,202,112, 203" />
<area shape="poly" title="Africa" alt="Africa" href="muestra.php?CONTINENTE=Africa" target="_self" coords="222,174,225,174,227,175,230,175,234,173,24 0,173,242,172,244,176,252,180,255,180,257,179,258, 177,261,178,264,178,274,183,274,186,278,194,278,19 7,282,205,284,206,287,207,290,207,292,208,295,208, 295,211,293,213,291,214,289,216,287,220,285,222,28 2,228,282,231,281,234,283,235,285,239,287,240,293, 240,295,241,294,243,294,249,295,251,293,255,291,25 6,289,255,288,253,288,250,286,249,283,249,281,248, 275,248,274,250,274,253,275,256,271,264,267,266,26 6,268,263,268,261,269,255,269,254,267,252,266,252, 263,251,261,251,255,248,249,248,243,247,241,248,23 9,248,233,247,231,246,228,246,225,244,221,242,220, 242,217,240,216,239,214,236,214,232,212,223,212,22 1,213,218,213,216,214,210,211,208,207,208,204,207, 202,207,190,209,186,211,185,213,183,215,179,217,17 8,219,176,220,174,223,174" />
<area shape="poly" title="America del Norte" alt="America del Norte" href="muestra.php?CONTINENTE=Norte" target="_self" coords="108,200,110,199,111,197,113,196,112,194,11 0,193,104,193,102,192,102,186,104,182,108,180,114, 180,122,184,123,186,124,184,124,178,125,176,131,17 3,133,169,133,166,137,164,138,162,152,155,153,153, 155,152,158,152,160,151,160,148,159,146,157,144,15 7,138,152,128,152,119,149,113,149,107,150,105,150, 102,149,99,147,97,145,96,143,94,141,93,138,87,138, 84,137,82,135,81,134,79,132,78,129,72,129,66,125,6 4,123,62,121,61,109,61,99,56,93,56,89,54,87,50,84, 50,82,49,80,50,77,50,75,51,73,53,67,56,65,60,63,62 ,61,66,61,72,62,74,62,77,63,79,63,85,62,87,60,89,5 8,90,56,92,41,92,35,89,34,87,31,86,25,86,23,85,19, 87,17,89,15,90,13,92,11,93,9,97,10,99,12,101,13,10 3,9,105,7,109,9,111,12,111,14,112,12,113,11,115,9, 116,8,118,9,120,11,122,15,124,15,127,14,129,12,131 ,11,133,12,136,15,136,18,135,20,134,22,132,23,130, 33,125,36,125,38,124,41,124,43,123,47,125,48,127,5 0,128,51,130,53,132,54,134,56,135,57,137,59,139,60 ,141,62,142,63,144,65,146,67,150,66,152,66,167,68, 171,70,173,71,175,73,176,76,182,78,183,81,189,83,1 90,86,190,92,193,93,195,95,196,96,198,104,202,110, 202,108,201,110,200" />
</map>

<CENTER>
<IMG {border-style: none; src = "mapa-mundi.jpg" usemap = "#unnamed">
</CENTER>
</form>

De momento al recoger la palabra solo puedo leerla en busca.php pero no se como enviarla junto cn el link correspondiente a cada zona geografica, alguien podria ayudarme por favor??
  #2 (permalink)  
Antiguo 17/07/2009, 10:17
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 11 años, 6 meses
Puntos: 2122
Respuesta: Pasar variables al hacer click en un mapa

Tema trasladado desde PHP
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 09:37.