PDA

Volledige versie bekijken : hulp nodig voor drag picture a.u.b.


daniel2909
%Europe/Berlin %390 %2005, 10:22
Beste FF,

kan er iemand mij helpen deze functies goed te krijgen, dank ik je alvast hiervoor:
de chowcontent() functie doet wel goed die laat de camera's + gegevens uit db zien en de eerste gedeelte van showcamera() doet ook goed want die laat de afbeelding(mycam) uit db zien als je op de link (cam) drukt, maar het probleem begint bij de 2de gedeelte want ik wil de afbeeldingen ergens slepen als ze getoond worden...
hoe kan ik dit anders doen?
N.B. dit is niet alles wat ik heb als codes maar wel de kern die ervoor zorgt dat het doet. de rest is maar om de php bestand aan te roepen...

function showcamera(camString) {

var mycam = camString.split();
screen_leftIn.loadMovie(mycam);

// drag en dan drop mijn camera volgens de if conditie
mycam.onPress = function(){
startDrag(mycam);
if (mycam._droptarget == "/screen_main")
stopDrag();

}
// dit is mijn ook niet gelukt ik krijg foutmelding...
//-- hierzo
// this["picFile"+tel].onPress = function(){startDrag();}
}

function showContent() {
var tel;
content.htmlText = "";
for (tel=0; tel < this.n; tel++) {
if (this["picFile"+tel] != "") {
content.htmlText += "<b>" + this["name"+tel] + "</b>" + "<a href='asfunction:showcamera," + this["picFile"+tel] + "'>&nbsp;(<font color='#0000cc'>cam</font>)</a><br>";
} else {
content.htmlText += "<b>" + this["name"+tel] + "</b><br>";
}
content.htmlText += "&nbsp;&nbsp;" + this["details"+tel] + "<br>";

}
}