| Neuer User
Registriert seit: Dec 2003
Beiträge: 41
| extern geladene bilder
Hallo, habe eine voll funktionsfähige Bildergallerie die ich nun für meine seite verwenden möchte.
wen ich nun diese swf datei in die hp lade wird alles angezeigt nur die bilder fehlen. viell kann mir eienr helfen in dem er was am script entdeckt. PHP-Code: //IMAGEBOX CONFIGURATION //---------------------- //USE INFO FEATURE? Displays detailed text information configured in info.txt files _global.infomode = "yes" //"no" will disable this feature (it's your choice) //USE THUMBNAIL PICTURES FOR PREVIEW? (Pictures loadad at bottom) _global.thumbnailMode = "yes" //"no" will load big ones //Enable Diashow via Shooting also? (Button) _global.shooting_diashow = "no" //"yes" will enable a button at the bottom to start the diashow // // // // // // // // //DO NOT MODIFY FOLLOWING CODE // //Variables var fotos_array = new Array(); //bilder-container var info_array = new Array(); //stores detailed text information of the info.txt files var polaroid_strecke = 696-93; //breite strecke polaroids (93=polaroid_mc-breite) var bilderordner = "bilder/"; //Pfad zum Bilderordner relativ zur swf _global.picturepath; //Pfad zum Bild ab Bilderordner _global.tiefe = 1; //steuert ebenen _global.indexMeineAuswahl; //referenz auf meineAuswahl_array var pic_index_array = new Array() //stores indexes for referencing in info_array var meinVerlauf_array = new Array; //speichert die reihenfolge der ansicht var meineAuswahl_array = new Array; //speichert gewaehlte Bilder des Nutzers var buttons_array = ["diashow_start_btn", "diashow_stop_btn", "zoomplus_btn", "zoomminus_btn", "drehe_rechts_btn", "drehe_links_btn", "drucke_btn", "speicher_btn", "verlauf_vor_btn", "verlauf_zurueck_btn", "history_btn", "info_btn"]; //speichert buttons, die keinen handcursor haben sollen
//---- //INIT //---- init(); function init(){ Stage.showMenu=false; bildansicht_mc.setMask(maske_mc); versteckeHandCursor(); diashow_stop_mc._alpha = 25; diashow_stop_btn.enabled = false; this.attachMovie("FComboBoxSymbol", "shooting_cb", 10000, {_x:555 , _y:95, _xscale: 150}) this.attachMovie("FScrollPaneSymbol", "verlauf_mc", 2, {_x:552 , _y:200, _xscale: 142, _yscale: 200}) //show info button? if(_global.infomode=="no"){ info_back_mc._visible=false; history_back_mc._visible=false; } if(_global.shooting_diashow=="no"){ shooting_diashow_mc._visible=false; }
}
function manageInfoText(pic_index){ if(_global.infomode=="yes"){ _root.info_mc.removeMovieClip(); //attach info_mc _root.attachMovie("info_mc","info_mc",tiefe++,{_x:552, _y:210}); //insert text _root.info_mc.info_txt.htmlText = info_array[pic_index]; //show scrollbar? _root.info_mc.scrollbar_mc._visible = _root.info_mc.info_txt.maxscroll>1 //set info_back_mc to passive state _root.info_back_mc.gotoAndStop(2); //set history_back_mc to active state _root.history_back_mc.gotoAndStop(1); } }
function disableButtons(buttons){ optionen_icons_mc._alpha=25; var buttons_array = new Array(); buttons_array = buttons.split(","); for (var i=0; i<buttons_array.length; i++){ this[buttons_array[i]].enabled = false; } delete buttons_array; } function enableButtons(buttons){ optionen_icons_mc._alpha=100; var buttons_array = new Array(); buttons_array = buttons.split(","); for (var i=0; i<buttons_array.length; i++){ this[buttons_array[i]].enabled = true; } delete buttons_array; } // function tip(label){ tip_txt.text = label; }
//verstecke mauszeiger function versteckeHandCursor(){ for(var i=0; i<=buttons_array.length-1; i++){ this[buttons_array[i]].useHandCursor = false; } } //diashow var indexDiashow = -1; function diashowVor(diaShowMode){ indexDiashow += 1; //delete mask _root.dia_maske.removeMovieClip(); //load pictures if(diaShowMode[0]=="history"){ info_back_mc.info_btn.enabled=false; info_back_mc.gotoAndStop(3); history_back_mc.gotoAndStop(2); //remove text_mc info_mc.removeMovieClip(); bildansicht_mc.container_mc.loadMovie(meineAuswahl_array[indexDiashow]); if(indexDiashow == meineAuswahl_array.length-1){ indexDiashow = -1; } }else{ manageInfoText(indexDiashow) bildansicht_mc.container_mc.loadMovie(bilderordner+picturepath+"/"+fotos_array[indexDiashow]); if(indexDiashow == fotos_array.length-1){ indexDiashow = -1; } } //attach mask _root.attachMovie("diashow_maske_mc","dia_maske", tiefe++); _root.dia_maske._xscale=220; _root.dia_maske._yscale=180; bildansicht_mc.setMask("dia_maske"); }
//start diashow fromm shooting or from history? (diaShowMode) function diashow(diaShowMode){ indexDiashow = -1 bildgroesse_reset(); bildansicht_mc._rotation = 0; //enable diashow_stop_mc diashow_stop_mc._alpha = 100; diashow_stop_btn.enabled = true; //deactivate other menue items (comma seperated, no spaces) disableButtons("diashow_start_btn,zoomplus_btn,zoomminus_btn,drehe_rechts_btn,drehe_links_btn,drucke_btn,speicher_btn,verlauf_vor_btn,verlauf_vor_btn,verlauf_zurueck_btn"); //call interval function _global.diaShowinterval = setInterval(diashowVor, 5000,[diaShowMode]); } // bildgroesse_reset = function(){ bildansicht_mc._xscale=100; bildansicht_mc._yscale=100; bildansicht_mc._x = 280; bildansicht_mc._y = 265; }
//Funktionen // Funktion, die prüft, ob eine Zahl gerade ist Math.isEven = function(num){ return num%2 == 0 ? true : false; } //Zufallszahl function zufallszahl(minWert, maxWert){ do{ r = Math.random(); }while(r == 1); return minWert + Math.floor(r*(maxWert + 1 - minWert)) } //fuege Bild verlauf_mc hinzu function ergaenzeVerlauf(bild, pic_index){ gewaehlt = bilderordner+picturepath+"/"+bild var meineAuswahl_string = meineAuswahl_array.join(); //picture selected before? if(meineAuswahl_string.indexOf(gewaehlt) == -1){ //no -> go meineAuswahl_array.push(bilderordner+picturepath+"/"+bild); //array zufuegen verlauf_mc.tmp_mc.attachMovie("polaroid_mc", bild, tiefe ,{pic_txt: bild, shooting: picturepath, pic_index: pic_index}); //platzieren verlauf_mc.tmp_mc[bild].ladejpg(bild); //laden meinVerlauf_array.push(bilderordner+picturepath+"/"+bild); indexMeineAuswahl = meinVerlauf_array.length-1; //schicke den pfad zum bilderordner mit verlauf_mc.tmp_mc[bild].selectPolaroidVerlauf(bild, bilderordner+picturepath+"/"); verlauf_mc.tmp_mc[bild]._xscale = 70; //groesse verlauf_mc.tmp_mc[bild]._yscale = 70; //koords 2spaltig (anhand meineAuswahl_array ermitteln) if (Math.isEven(meineAuswahl_array.length)){ //gerade verlauf_mc.tmp_mc[bild]._x = 72; verlauf_mc.tmp_mc[bild]._y = (Math.ceil(meineAuswahl_array.length/2)*60)-60; }else{ //ungerade verlauf_mc.tmp_mc[bild]._x = 4; verlauf_mc.tmp_mc[bild]._y = (Math.ceil(meineAuswahl_array.length/2)*60)-60; } verlauf_mc.refreshPane(); } }
// Klasse Bild bild = function(){ }
Object.registerClass("polaroid_mc", bild); bild.prototype = new MovieClip();
// ordnet preview-polaroids zufaellig an bild.prototype.verteilePolaroid = function(){ //koord this._x = random(polaroid_strecke); this._y = 5 + random(40); //rotation this._rotation = zufallszahl(-5, 5); } // bild.prototype.ladejpg = function(bild){ if(_global.thumbnailMode=="yes"){ this.bild_mc.loadMovie(bilderordner+picturepath+"/"+"Thumb_"+bild); }else{ this.bild_mc.loadMovie(bilderordner+picturepath+"/"+bild); } }
Geändert von persil (08-03-2008 um 21:39 Uhr)
|