Не работает вот этот скрипт.
Код:
function images() {
var count = 0;
loadVariablesNum("http://www.ra-slon.ru/"+_root["movie"]+"/Amount.php", 0, "POST");
_root.onData = function() {
for (p=0; p<amount; p++) {
count<=amount;
count++;
var c = _root.loader_mc.images_mc.createEmptyMovieClip("cell_"+count, _root.loader_mc.images_mc.getNextHighestDepth());
_root.loader_mc.images_mc["cell_"+count].attachMovie("frame_mc", "frame_mc", 1);
if (count<10) {
_root.loads_image.loadClip("http://www.ra-slon.ru/Resize.php?f="+_root["movie"]+"/00"+count+".jpg&type=0", _root.loader_mc.images_mc["cell_"+count+""].frame_mc.loader_mc); } if (count>9) {
_root.loads_image.loadClip("http://www.ra-slon.ru/Resize.php?f="+_root["movie"]+"/0"+count+".jpg&type=0", _root.loader_mc.images_mc["cell_"+count+""].frame_mc.loader_mc);
}
c._x = c._width*p;
for (v=0; v<=count; v++) {
_root.loader_mc.images_mc["cell_"+v].v = v; _root.loader_mc.images_mc["cell_"+v].onRollOver = function() {
new Tween(this, '_width', mx.transitions.easing.Elastic.easeOut, this._width, 120, 30);
new Tween(this, '_height', mx.transitions.easing.Elastic.easeOut, this._height, 120, 30);
this.getNextHighestDepth(); }; _root.loader_mc.images_mc["cell_"+v].onRollOut = function() {
new Tween(this, '_width', mx.transitions.easing.Elastic.easeOut, this._width, 105, 30);
new Tween(this, '_height', mx.transitions.easing.Elastic.easeOut, this._height, 105, 30);
};
_root.loader_mc.images_mc["cell_"+v].onPress = function() { if (this.v<=9) {
getURL("javascript:var win= window.open('http://www.ra-slon.ru/Resize.php?f="+_root["movie"]+"/00"+this.v+".jpg&type="+quality+"', 'Preview', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=700, height=500, left=0, top=0');"); } if (this.v>9) {
getURL("javascript:var win= window.open('http://www.ra-slon.ru/Resize.php?f="+_root["movie"]+"/0"+this.v+".jpg&type="+quality+"', 'Preview', 'toolbar=0, scrollbars=0, location=0, statusbar=0, menubar=0, resizable=1, width=700, height=500, left=0, top=0');");
}
};
}
}
};
}
|