CSS - menu css con flecha que se mueve sobre los botones

 
Vista:
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por carmen (8 intervenciones) el 19/10/2015 12:32:13
Hola!

Tengo un problema con un menú css que tiene una flecha que se mueve sobre los botones. Al poner el cursor sobre un botón del menú, la flecha te sigue desde el botón de la derecha, a donde vayas; pero al pinchar sobre el botón, la flecha no se queda quieta si no que que te lleva a esa página bien pero la flecha se vuelve a la derecha, al botón derecho donde estaba. ¿Qué debo arreglar para que al pinchar se quede en ese botón?

Si me da alguien que sepa arreglar eso -que seguro que es una tontería pero me está volviendo loca-por favor su e-mail, le paso el link de la página, no la pongo aqui porque es de un cliente.

Muchas gracias!!
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
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por carmen (8 intervenciones) el 19/10/2015 13:19:02
Soy yo otra vez, mejor os dejo mi email:
[email protected]
así no tenéis que poner el vuestro, perdón
gracias
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de xve
Val: 624
Oro
Ha mantenido su posición en CSS (en relación al último mes)
Gráfica de CSS

menu css con flecha que se mueve sobre los botones

Publicado por xve (490 intervenciones) el 19/10/2015 20:34:24
Hola Carmen, entiendo que eso se hace con javascript...

Estaria bien que mostraras el código que utilizas para que te podamos ayudar.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por carmen (8 intervenciones) el 19/10/2015 21:37:16
pero al no meter los css, etc no se ve la web asi

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
<html>
<head>
 
<link rel="stylesheet" href="reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="light.css" type="text/css" media="screen" />
<link rel="stylesheet" href="dark.css" type="text/css" media="screen" />
<script type="text/javascript" src="menu2/js/jquery-1.4.min.js"></script>
<script type="text/javascript" src="menu2/js/jquery.easing.min.js"></script>
<script type="text/javascript" src="menu2/js/jquery.lavalamp.min.js"></script>
<script type="text/javascript" src="menu2/js/cufon.yui.js"></script>
<script type="text/javascript" src="menu2/js/myriad.js"></script>
<script type="text/javascript">
		$(function() {
			 $("#one,#two,#three,#four,#five,#six,#seven,#eight").lavaLamp({
				fx: "backout",
				speed: 700
			 });
		});
</script>
<script type="text/javascript">
 
		Cufon.replace('li a', {hover: true});
 
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<style type="text/css">
body {
	background-color: #FFF;
	margin-left: 0px;
	background-image: url(fondo1.jpg);
	background-repeat: no-repeat;
	margin-right: 0px;
	margin-bottom: 0px;
}
.t {color: #CCC;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.tt {
	color: #FFF;
	font-size: 12px;
}
</style>
 
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="wrapper">
 
<div class="darkmenu">
  <a href="index.html"></a><ul class="lightGreen" id="five" name="five">
    <li><a href="index.html" target="_parent">INICIO</a></li>
    <li><a href="informacion.html" target="_parent">INFORMACION</a></li>
    <li><a href="localizacion.html" target="_parent">LOCALIZACION</a></li>
    <li class="current"><a href="contacto.html" target="_parent">CONTACTO</a></li>
    </ul>
  <p>&nbsp;</p>
  <p align="right"><span class="verde"> <span class="c">...  · </span></span><span class="verde"><span class="c">...</span></span> </p>
</div>
</div>
 
 
</body>
</html>


el reset.css:
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
/* RESET */
 
*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td {
	padding: 0;
	color: #093;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	margin-top: 0px;
}
table {
	background-color: #FFF;
	margin-top: 0px;
}
fieldset, img {
	border: 0;
	margin-bottom: 0px;
}
address, caption, cite, code, dfn, em, strong, th, var {
	font-style:normal;
	font-weight:normal
}
ol, ul, li {
	list-style:none
}
caption, th {
	text-align:left
}
h1, h2, h3, h4, h5, h6 {
	font-size:100%;
	font-weight:normal
}
q:before, q:after {
	content:''
}
/* Global reset-RESET */
 
/* The below restores some sensible defaults */
 
strong {
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFF;
}
em {
	font-style: italic
}
a img {
	border: none;
	margin-bottom: 0px;
} /* Gets rid of IE's blue borders */
ff {
	color: #FFF;
}
.c {
	text-align: right;
}
#wrapper .darkmenu p .verde .c {
	text-align: right;
}
#wrapper .darkmenu #five {
	color: #FFFFFF;
}
tt {
	font-size: 12px;
}
tt {
	font-size: 12px;
}
t {
	font-size: 12px;
}
gg {
	font-size: 12px;
}
.y {
	color: #FFF;
}
#wrapper div table tr td .tt div strong .y {
	font-size: 12px;
}
tt {
	color: #06C;
}
a {
	color: #06C;
	font-size: 16px;
}
#aa {
	color: #06C;
}
.tn {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	color: #000;
	background-color: #FFF;
	margin-top: 0px;
	font-weight: bold;
}
tn {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #06C;
	background-color: #FFF;
}
.tttt {
	font-size: 16px;
}
ssssssss {
	font-size: 16px;
}
#wrapper .darkmenu p .verde .c {
	font-size: 16px;
}
ttttttttttttteeeeee {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	color: #06C;
}
form {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-style: normal;
	color: #093;
}
form {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-style: normal;
	color: #093;
}
div {
	margin-top: 0px;


}
#div {
	color: #FFF;
}
dddddddd {
	font-size: 14px;
}
#wrapper .darkmenu #five {
	color: #FFF;
}
#wrapper .darkmenu #five {
	font-size: 14;
	border-top-color: #FFFFFF;
	border-right-color: #FFF;
	border-bottom-color: #FFF;
	border-left-color: #FFF;
	overflow: hidden;
	color: #FFFFFF;
}
.b {
	color: #FFF;
}
r {
	text-align: right;
}
rrrrr {
	font-size: 14px;
}
r {
	text-align: right;
}
#wrapper .darkmenu p .verde .c {
	font-size: 9px;
}
#wrapper .darkmenu p .verde .c {
	font-size: 12px;
	color: #FFF;
}
tttyyy {
	text-align: left;
}
#wrapper div div table tr td p .tn {
	text-align: left;
}
tn {
	font-size: 14px;
}
#wrapper div div table tr td p .tn .tn {
	text-align: center;
}
cc {
	font-size: 12px;
}
cc {
	color: #000;
}
cc {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000;
}
#wrapper div div div table tr td div table tr td div p .j .tt .c .c {
	text-align: justify;
}
#wrapper div div div table tr td div table tr td div p .j .tt .c .c {
	text-align: center;
}
a {
	color: #093;
	font-size: 12px;
}
#a {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #000;
}
.tt {
	text-align: justify;
}
.ttnn {
	font-weight: bold;
}
ttn {
	color: #000;
}
.g {
	color: #000;
}
.g {
	font-size: 12px;
	font-weight: bold;
	text-align: justify;
}
g {
	font-weight: bold;
}
#wrapper div div div table {

}
table {
	text-align: center;
	alignment-adjust: central;
	margin-bottom: 0px;
}
rr {
	text-align: left;
}
.r {
	text-align: left;
}

el light.css:
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
body {
	background-image:url(menu2/images/pattern.jpg);
	background-repeat: repeat;
}
 
#wrapper {
	width: 960px;
	margin: 0 auto;
	margin-top: 0px;
	background-color: #FFF;
	color: #000;
	margin-bottom: 0px;
}
 
.lightmenu {
	width:960px;
	height:62px;
	background: transparent;
	background-image:url(menu2/images/light.png);
	background-repeat: no-repeat;
	background-position: bottom;
	clear:both;
	margin-bottom:60px;
}
.lightBlue, .lightGreen, .lightPink, .lightRed {
	position: relative;
	height: 62px;
	width: 630px;
	overflow: hidden;
	float: left;
}
.lightBlue li, .lightGreen li, .lightPink li, .lightRed li {
	float: left;
	list-style: none;
	width: 130px;
	height: 52px;
	background-image: url(menu2/images/sep.png);
	background-position: right;
	background-repeat: no-repeat;
	position: relative;
	top: 9px;
}
.lightBlue li.back {
	background-image:url(menu2/images/blue.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:5px;
	position: absolute;
}
 
.lightGreen li.back {
	background-image:url(menu2/images/green.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:5px;
	position: absolute;
}
 
.lightPink li.back {
	background-image:url(menu2/images/pink.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:5px;
	position: absolute;
}
 
.lightRed li.back {
	background-image:url(menu2/images/red.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:5px;
	position: absolute;
}
 
.lightBlue li a, .lightGreen li a, .lightPink li a, .lightRed li a {
	font-size: 16px;
	font-family: "Myriad Pro", sans-serif;
	font-weight: normal;
	text-decoration: none;
	width: 106px;
	padding-right: 3px;
	color: #FFFFFF;
	outline: none;
	text-align: center;
	letter-spacing: 0;
	z-index: 10;
	display: block;
	float: left;
	top: 19px;
	height: 30px;
	position: relative;
	overflow: hidden;
	left: 10px;
}
 
.lightBlue li a:hover, .lightGreen li a:hover, .lightPink li a:hover, .lightRed li a:hover {
	color: #000000;
}
 
.searchbox {
	width:197px;
	float:right;
	margin-right:22px;
}
 
.searchbox input.lightsearch {
	background: url(menu2/images/lightsearch.png) no-repeat;
	border: 0;
	width: 170px; /* width of text-display area */
	padding: 2px 5px 2px 24px;
	font-size: 11px;
	color: #FFFFFF;
	margin-top: 24px;
	height: 19px; /* height of text-display area */
}

y el dark.css:
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
.darkmenu {
	width: 960px;
	height: 62px;
	background: transparent;
	background-image: url(menu2/images/dark.png);
	background-repeat: no-repeat;
	background-position: bottom;
	clear: both;
	margin-bottom: 20px;
	color: #FFF;
	font-size: 12px;
	border-bottom-color: #FFF;
	border-color: #FFF;
	margin-top: 0;
}
.darkBlue, .darkGreen, .darkPink, .darkRed {
	position: relative;
	height: 62px;
	width: 700px;
	overflow: hidden;
	float: left;
}
.darkBlue li, .darkGreen li, .darkPink li, .darkRed li {
	float: left;
	list-style: none;
	width: 110px;
	height: 52px;
	background-position: right;
	background-repeat: no-repeat;
	position: relative;
	top: 9px;
	margin-bottom: 1px;
	color: #FFF;
	border-bottom-color: #FFF;
	border-bottom: 1;
	white-space: pre;
}
.darkBlue li.back {
	background-image:url(menu2/images/darkblue.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:6px;
	position: absolute;
}
 
.darkGreen li.back {
	background-image:url(menu2/images/darkgreen.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:6px;
	position: absolute;
}
 
.darkPink li.back {
	background-image:url(menu2/images/darkpink.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:6px;
	position: absolute;
}
 
.darkRed li.back {
	background-image:url(menu2/images/darkred.png);
	background-repeat: no-repeat;
	background-position: center;
	width: 45px;
	margin-left:-3px;
	height: 20px;
	z-index: 8;
	top:6px;
	position: absolute;
}
 
.darkBlue li a, .darkGreen li a, .darkPink li a, .darkRed li a {
	font-size: 16px;
	font-family: "Myriad Pro", sans-serif;
	font-weight: normal;
	text-decoration: none;
	width: 110px;
	color: #FFFFFF;
	outline: none;
	text-align: center;
	letter-spacing: 0;
	z-index: 10;
	display: block;
	float: left;
	top: 18px;
	height: 30px;
	position: relative;
	overflow: hidden;
}
 
.darkBlue li a:hover, .darkGreen li a:hover, .darkPink li a:hover, .darkRed li a:hover {
	color: #000;
	border-bottom-color: #FFF;
}
 
.searchbox {
	width:197px;
	float:right;
	margin-right:20px;
}
 
.searchbox input.darksearch {
	background: url(menu2/images/darksearch.png) no-repeat;
	border: 0;
	width: 170px; /* width of text-display area */
	padding: 2px 5px 2px 24px;
	font-size: 11px;
	color: #FFFFFF;
	margin-top: 23px;
	height: 19px; /* height of text-display area */
}

luego hay varios .js
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por carmen (8 intervenciones) el 20/10/2015 12:27:40
Sin el link no me vais a poder ayudar, os lo pongo
www.
pdelorenzopsicologo
.es
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de Angel Komander
Val: 2
Ha aumentado su posición en 13 puestos en CSS (en relación al último mes)
Gráfica de CSS

menu css con flecha que se mueve sobre los botones

Publicado por Angel Komander (54 intervenciones) el 20/10/2015 18:02:14
para lo de la flechita amigo eso seguira asi porque un item de tu lista tiene asignada la clase de current, si quieres que la flechita se quede donde le apretas y no se regrese, tienes que hacer tu pag ONE PAGE que no te este mandando a otro enlace si no que recargue ahi mismo el contenido ;)

cuando tengas eso mediante JQUERY haces que se remueva la clase current y se le agregue al boton presionado ;)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por Carmen (8 intervenciones) el 20/10/2015 19:54:03
Seguro que has acertado, ha de ser eso, pero me lo puedes explicar mejor??

el menúl original era asi:
1
2
3
4
5
6
7
8
9
10
<body>
<div id="wrapper">
<div class="lightmenu">
  <ul class="lightBlue" id="one">
    <li class="current"><a href="#">Home</a></li>
    <li><a href="#">About</a></li>
    <li><a href="#">Portfolio</a></li>
    <li><a href="#">Contact</a></li>
    <li><a href="#">News</a></li>
  </ul>

también apunta a otros links y funciona
mira el original
http://elemisdesign.com/demos/menu/
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por Carmen (8 intervenciones) el 20/10/2015 22:23:35
Estoy pensando que si en cada uno de esos link pongo current en el botón que le corresponde,ya estaria, no?
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por Carmen (8 intervenciones) el 20/10/2015 22:43:12
Lo he conseguido!!!

Gracias de corazón! AL decirme lo de "current "me has ayudado a darme cuenta del error.
www.
pdelorenzopsicologo
.es
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de Angel Komander
Val: 2
Ha aumentado su posición en 13 puestos en CSS (en relación al último mes)
Gráfica de CSS

menu css con flecha que se mueve sobre los botones

Publicado por Angel Komander (54 intervenciones) el 21/10/2015 01:27:02
de nada amiga, pero si quieres pon la solucion por si alguien llegara a tener el mismo problema, sepa solucionarlo ;)
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

menu css con flecha que se mueve sobre los botones

Publicado por Carmen (8 intervenciones) el 21/10/2015 09:44:36
Lo que os decía antes, he dejado que cada botón te lleve a una página diferente, eso no lo he cambiado porque era modificar todo otra vez. En cambio, he modificado el código y por ejemplo en información, he puesto <li class="current"> en vez de <li> en el botón de información y lo he quitado de contacto, en ese he puesto <li>, y así en cada página.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar