onmouseover y onmouseout en div no funciona
Publicado por nacho (14 intervenciones) el 24/07/2014 00:52:08
Hola foreros. tengo el sigueinte error
os muestro el codigo:
//LA CUESTION QUE NO ME SALE NINGUNA ALERTA. NO SE SI SERA PORQUE ESTA DEBAJO DE OTRO DIV.
os muestro el 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
<?php include ('config.php')?>
</head>
<body>
<style>
#acordeon {
width: 200px;
margin: 20px auto auto auto;
}
#acordeon .item {
background: #f2f2f2;
width: 220px;
overflow: hidden;
color: #000000;
border-left: 5px solid #0f0f0f;
border-bottom: 3px solid #090909;
height:15px;
font-size:11px;
font-family: helvetica;
cursor: pointer;
margin-bottom: 3px;
text-align: center;
}
#acordeon .item p {
background: #fbfbfb;
widows: 220px;
font-size:10px;
color: #0f0f0f;
cursor: pointer;
font-family: helvetica;
border-bottom: 1px solid #0f0f0f;
}
#acordeon .item a {
color:#000000;
display: block;
width:220;
cursor: pointer;
}
#acordeon .item:hover{
height: <?php $pus; ?>
}
</style>
<?php
echo "<div id='acordeon'><div id='acordeon'>";
$Lis=mysql_query("SELECT Categoria1,Categoria2 from articulos group by Categoria1,Categoria2");
$x=0;
$z =0;
while($pro = mysql_fetch_array($Lis)) {
if ($ulti==$pro['Categoria1'])
{
$z=$z+1;
echo "<a style='background: #dadada; border-botton: 1px solid #111111; border-top: 1px solid #111111; text-decoration:none; font-family: helvetica; font-size: 10px; text-aling:center; color:#111111;' href='http://opix.es/tienda/".$pro['Categoria1']."/".$pro['Categoria2']."'>".$pro['Categoria2']."</a>";
}
else
{
$pus = 15*$z;
$x = $x+1;
echo "</div><div id='<?php echo $pus ?>' class='item'>".<a onmouseover='javascript:di(this)' onmouseout='javascript:do(this)' style='text-decoration: none;' href='http://opix.es/tienda/".$pro['Categoria1']."'>".$pro['Categoria1']."</a>";
}
$ulti=$pro['Categoria1'];
}
?>
</div>
<script type="text/javascript">
function di ($apa) {
alert ("aqui");
}
function do ($apa) {
alert("aqui2");
}
</script>
<body>
</html>
//LA CUESTION QUE NO ME SALE NINGUNA ALERTA. NO SE SI SERA PORQUE ESTA DEBAJO DE OTRO DIV.
Valora esta pregunta


-1