Wie funktioniert eine Slideshow mit Überblend-Effekt?

Hi,

ich habe mich mit der Lightbox-Komponente noch nicht befasst - welche Methoden werden denn dort zum Anzeigen der Bilder verwendet?

Gruß
.
 
Hi,

also das habe ich in einem anderen Forum gefunden.

Code:
<<Modified by Jeff Garczewski http://www.punkbyte.com 2/28/06
To work with new captions feature and bug fixes>>

<<Original Mod by Kelli Shaver http://www.kellishaver.com>>


This is a very small and simple modification to Lightbox to allow you
to use the script in conjunction with a flash movie (for a sample of
this see www.kellishaver.com).

I've added a new function flashLightBox() that can be called from within
any SWF file. I've left showLightbox() in thre as well, so the script
can still be used normally.


To call a lightbox image from flash, you would simply assign the
following actionscript to your button/movie clip:

<<Added by JG: You can now use the new caption feature of lightbox by sending a second variable along to the flashLightBox function>>

on(release) {
    getURL("javascript:flashLightbox('path/to/imagejpg','Your Caption');");
}


I've also modofied the default CSS to give the lightbox containers and
image a higher z-index than the flash movie.

Finally, to get the images to display on top of the movie, you will need
to add the "wmode" paramater to the mark-up for embedding the SWF movie:

<object type="application/x-shockwave-flash" data="myMovie.swf" width="400" height="400">
    <param name="movie" value="myMovie.swf" />

    <!-- Your MUST add the 'wmode' paramater or your flash will appear
         over top of your lightbox images! -->

    <param name="wmode" value="transparent" />
</object>

This wasn't a difficult mod, but it did take me a few minutes to sort out, 
since there were several files to change, so hopefully this will be of
use to someone.

Keine Ahnung ob du damit was anfangen kannst.
Aber ich weiß ehrlich gesagt nicht mehr weiter.

Dieses Forum ist meine letzte Alternative.
Oder ich muss das ganze anders angehen.

:confused:
 
Hi,

on(release) {
getURL("javascript:flashLightbox('path/to/imagejpg','Your Caption');");
}
Ja, das ist der Aufruf, den Du vorher schon gepostet hast.

Du musst die Funktion "flashLightbox" allerdings in Deinem JS-Code implementieren - die Funktion hast Du nicht zitiert, also kann ich Dir damit nicht weiterhelfenn (die Funktion müsste allerdings auf der Seite, die Du gefunden hast, notiert sein).

Gruß
.
 
Guten Morgen,

Du schläfst wohl nie. ;-)

So hier mal noch das JS.
Wenn Du damit was anfangen kannst?

Gruß und riesigen Dank schon mal.
 

Anhänge

  • lightbox.zip
    3,8 KB · Aufrufe: 101

Neue Beiträge

Zurück