Hallo,
ich habe folgendes script aus dem Forum und habe a) keine Ahnung, wie ich es so umbauen kann, daß bei klick auf die kleinen Bilder jeweils das größere in einem Rahmen aufgeht. Ich weiß nicht wie der Lösungsansatz sein kann...Hat jemand Hilfestellung??
Danke und Grüße
PHP-Code:
url1 = "http://www.flashforum..de";
var a = bildanzahl=10;
var i = 1;
var speed = 1;
var wechselpos = -200;
var abstand = 3;
var starty = 50;
laden = function () {
if (i<=a) {
_root.createEmptyMovieClip('pic'+i, i);
_root['pic'+i].loadMovie(i+'.jpg', 0);
_root.onEnterFrame = function() {
if (_root['pic'+i]._width>0) {
_root['pic'+i]._y = starty;
_root['pic'+i]._x = _root['pic'+(i-1)]._x+_root['pic'+(i-1)]._width+abstand;
delete this.onEnterFrame;
i++;
laden();
}
};
} else {
for (var k = 1; k<=a; k++) {
_root['pic'+k].id = k;
_root['pic'+k].move();
_root['pic'+k].onPress = function() {
getURL(_root['url'+this.id], "BLANK");
};
}
}
};
MovieClip.prototype.move = function() {
trace(this.id*40);
this.onEnterFrame = function() {
this._x -= speed;
if (this._x<wechselpos) {
delete this.onEnterFrame;
this.id != 1 ? this._x=_root['pic'+(this.id-1)]._x+_root['pic'+(this.id-1)]._width+abstand : this._x=_root['pic'+a]._x+_root['pic'+a]._width+abstand;
this.move();
}
};
};
laden();