Ik heb een (variabel aantal) elementen (in DIV) die versleepbaar zijn. Nu wil ik als de div op een andere positie staat de x en y coördinaat uitlezen. Ik heb gezocht en een en ander gevonden maar niets werkt.
Geprobeerd:
<DIV id="tets">Bla</DIV>
in script:
function bla(obj)
document.layers[obj].left
document.layers[obj].posLeft
document.layers[obj].offsetLeft
en ook ipv layers all (document.all[obj].blablabla)
Ik geef in de aanroep WEL het id mee (onclick="bla(tets)")
Maar ik krijg het niet voor elkaar
Wat doe ik fout????
[edit]
DIT IS DUS NIET ZOALS HET SCRIPT STAAT!!! Is wel in de goede syntax
Geprobeerd:
<DIV id="tets">Bla</DIV>
in script:
function bla(obj)
document.layers[obj].left
document.layers[obj].posLeft
document.layers[obj].offsetLeft
en ook ipv layers all (document.all[obj].blablabla)
Ik geef in de aanroep WEL het id mee (onclick="bla(tets)")
Maar ik krijg het niet voor elkaar
Wat doe ik fout????
[edit]
DIT IS DUS NIET ZOALS HET SCRIPT STAAT!!! Is wel in de goede syntax
[ Voor 11% gewijzigd door Roeligan op 27-05-2003 14:28 ]
A real man fears not mortality for it's death, he fears mortality for it's lack of life!
RatPack #814