HTML - Efecto en area map HTML

   
Vista:

Efecto en area map HTML

Publicado por Edgar Medina (1 intervención) el 15/12/2015 00:34:50
Hola que tal colegas , espero y me puedan ayudar , tengo un problema lo que pasa es que quiero que en un mapa el area pueda darle diseno en este caso solo quiero ponerle la propiedad de css, border y opasitive , espero sus comentarios al respecto...Este es mi codigo


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/new 2.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
 
 
 
 
</head>
 
<body onload="showonlyone(thechosenone);showonlyone1(thechose);muestraDiv(id);";/>
    <div id="principal">
 
	<div id="DivLogTit" style="DivLogTit">
	<header><img src="img/logonegro.jpg" style=width="100" height="100">
	<p>OTAY CONF ROOMS E-MAP</p></div>
	<div id="DivNomLog">
		<table>
			<tr>
				<td>
				</td>
				<td>  <img src="img/Flex_Medical.png" style= "width=15%"; height="20"; float=right;>  </td>
				<td>  <img src="img/bandera.png"      style= "width=15%"; height="20"; float=right;>  </td>
				<td>  <img src="img/screenshot.jpg"   style= "width=15%"; height="20"; float=right;>  </td>
			</tr>
		</table>
	</div>
 
	<div id="DivMeePho">
	<a href="#" onclick=showonlyone1("pp1")><span>MEETINGS ROOMS </span></a>
    <a href="#" onclick=showonlyone1("pp2")><span>BOOTHS PHONE   </span></a>
	</div>
 
	<div id="DivImg">
	<div class="mapa" style="position:absolute;display:none;color:white;" id="PA">   <img src="img/planos/1.jpg" style="width:100%;height:100%;" usemap="#testing"/></div>
	<div class="mapa" style="position:absolute;display:none;color:white;" id="PB">   <img src="img/planos/2.jpg" style="width:100%;height:100%;" usemap="#testing"/></div>
	<div class="mapa" style="position:absolute;display:none;color:white;" id="PPB">  <img src="img/planos/3.jpg" style="width:100%;height:100%;" usemap="#testing"/></div>
	<div class="mapa" style="position:absolute;display:none;color:white;" id="PBPA"> <img src="img/planos/4.jpg" style="width:100%;height:100%;" usemap="#testing"/></div>
 
		<map name="testing">
			<!--Meeting Rooms Planta Alta-->
			<area shape="rect" coords="70,0,320,91"  href="#" id="pag1" class="area">
			<area shape="rect" coords="320,0,560,91" href="#" id="pag2" class="area">
			<area shape="rect" coords="  "           href="#" id="pag3" class="area">
			<area shape="rect" coords=""             href="#" id="pag4" class="area">
			<area shape="rect" coords=""             href="#" id="pag5" class="area">
			<area shape="rect" coords=""  			 href="#" id="pag6" class="area">
			<area shape="rect" coords=""  			 href="#" id="pag7" class="area">
			<area shape="rect" coords=""  			 href="#" id="pag8" class="area">
			<area shape="rect" coords=""  			 href="#" id="pag9" class="area">
			<!--Meeting Rooms Planta Baja-->
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<!--Meeting Room Produccion Planta Alta-->
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<!--Phone Booths Oficinas Planta Alta-->
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
			<area shape="rect" coords="" href="#" >
	</map>
	<!--TERMINA EL DIV DEL MAPA-->
	</div>
 
	<div class="container" id='pp1' style="display:none;">
    <div class="header" id="myHeader1" style="color:#F9C20A" onclick= "showonlyone('newboxes1'); showonlyone1('pp1'); muestraDiv('PA');"><span>Meeting Rooms Planta Alta</span></div>
    <div id = 'newboxes1' class="content">
		<ul>
            <li><a onmouseover="myFunction(a)" onmouseout="myFunction(a)">James D. Watson    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Severo Ochoa       </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Charles Drew       </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Alexander Fleming  </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Friedrich Miescher </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Gregory Pincus     </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Jonas Salk         </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">James Parkinson    </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Luois Pasteur      </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Alois Alzheimer    </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">William Harvey     </a> </li>
        </ul>
     </div>
    <div class="header" id="myHeader2" style="color:#82BC00" onclick= "showonlyone('newboxes2'); showonlyone1('pp1'); muestraDiv('PB');"><span>Meeting Rooms Planta Baja</span></div>
    <div id = 'newboxes2'class="content">
    <ul>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Richard Axel    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Percy Julian    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Robert Koch     </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Rudolf Virchow  </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Jan Ingenhousz  </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Training Room 1 </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Training Room 2 </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Joseph Lister   </a> </li>
        </ul>
     </div>
    <div class="header" id="myHeader3" style="color:#9E1B64" onclick= "showonlyone('newboxes3'); showonlyone1('pp1'); muestraDiv('PPB');"><span>Meeting Rooms Produccion Planta Baja</span></div>
    <div id = 'newboxes3' class="content">
    <ul>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Norman Shumway   </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Walter Reed      </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Ernest Lawrence  </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Rudolf Virchow   </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Michael DeBakey  </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Edward Jenner    </a> </li>
        </ul>
     </div>
	</div>
 
	<div class="container" id='pp2' style="display:none;">
	<div class="header" id="myHeader4" style="color:#6A478D" onclick="showonlyone('newboxes4'); showonlyone1('pp2'); muestraDiv('PBPA');"><span>Phone Booths Planta Alta</span></div>
    <div id = 'newboxes4' class="content">
	<ul>
 
        	<li><a onmouseover="myFunction()" onmouseout="myFunction()">Mozart    </a> </li>
        	<li><a onmouseover="myFunction()" onmouseout="myFunction()">Pachelbel </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Wagner    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Debussy   </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Schubert  </a> </li>
	        <li><a onmouseover="myFunction()" onmouseout="myFunction()">Vivaldi   </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Strauss   </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Holst     </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Barber    </a> </li>
         	<li><a onmouseover="myFunction()" onmouseout="myFunction()">Brahms    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Handel    </a> </li>
            <li><a onmouseover="myFunction()" onmouseout="myFunction()">Beethoven </a> </li>
			<li><a onmouseover="myFunction()" onmouseout="myFunction()">Verdi     </a> </li>
 
	 </ul>
	</div>
	<!--TERMINA DIV CONTEINER-->
	</div>
 
	<!-- FUNCION DE DIVS COLLAGE -->
	<script type="text/javascript">
     function showonlyone(thechosenone)     {
	      $('.content').each(function(index) {
          if ($(this).attr("id") == thechosenone) {
               $(this).show(500); }
          else { $(this).hide(500); } });
      }
	</script>
 
	<!-- FUNCION DE TIPOS DE SALA -->
	<script type="text/javascript">
     function showonlyone1(thechose)     {
	      $('.container').each(function(index) {
          if ($(this).attr("id") == thechose) {
               $(this).show(500); }
          else { $(this).hide(500); } });
      }
	</script>
 
	<!-- FUNCION DE MUESTRA PLANOS PHONE BOOTHS -->
	<script type="text/javascript">
	    function muestraDiv(id1) {
	      $('.mapa').each(function(index) {
          if ($(this).attr("id") == id1) {
               $(this).show(); }
          else { $(this).hide(); } });      }
	</script>
 
	<!-- FUNCION QUE MUESTRA EL AREA EN PLANO -->
	<script type="text/javascript">
     function myFunction(a)     {
	      $('.area').each(function(index) {
          if ($(this).attr("id") == a) {
               $(this).location.href="id".show(); }
          else { $(this).location.href="id".hide(); } });    }
	</script>
 
  <!--TERMINA DIV PRINCIPAL-->
	</div>
  </body>
 </html>
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder