![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
06/06/2006, 21:20
|
![Avatar de MaBoRaK](http://static.forosdelweb.com/customavatars/avatar33632_10.gif) | | | Fecha de Ingreso: abril-2003 Ubicación: La Paz - Bolivia
Mensajes: 2.003
Antigüedad: 21 años, 9 meses Puntos: 35 | |
loading...........
debes hacerlo asi
Código:
<div id="agregar" class="lap" onmouseup="addProducto(event)"style="position:abs olute;right:0px;top:30px;width:200px;height:140px; background:#CCCCCC;"> <b><br>Arrastra aqui ,para agregar al carrito <br></b> <center><img src="ver.jpg" width="40" /></center> </div>
y tu funcion
Código:
function addProducto(event)
nombre=getEvent(event);
alert(nombre.className);
y mi func
Código:
getEvent:function(event)
{
if (browser.isIE)
{
evid = window.event.srcElement;
}
else if (browser.isNS)
{
evid = event.target;
}
else
{
evid = event.target;
}
return evid;
}
connection closed. |