YourWBB


yourWBB » yourWBB Misc * » Das Proggen » Skripte » Slide für Showit » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 2.126 Views | | Thema zu Favoriten hinzufügen

Neues Thema erstellen Antwort erstellen

Zum Ende der Seite springen Slide für Showit
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
|Nemo| |Nemo| ist männlich
Mitglied


images/avatars/avatar-3150.jpg

Dabei seit: 04.12.05
Beiträge: 530
Herkunft: Düren
Forenversion: WBB Lite 1.02

 Slide für Showit Antworten Zitieren Editieren Melden       UP

Könnte mir jemand für die Galerie "Showit" etwas coden, sodass die Bilder so "eingeslidet" werden wie auf http://allianz-arena.de/galleries/20060402_1457/gallery1.php ?
Der Code dafür müsste doch irgendwie so lauten, oder?
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
<td class="image"><a href="?current=23"><img ID="SLIDESIMG" src="22.jpg" BORDER="0" ALT=""/></a>
  <SCRIPT type="text/javascript">
  shiftOpacity('SLIDESIMG',1000)
  
function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
}


function shiftOpacity(id, millisec) {
    //if an element is invisible, make it visible, else make it ivisible
    if(document.getElementById(id).style.opacity == 0) {
        opacity(id, 0, 100, millisec);
    } else {
        opacity(id, 0, 100, millisec);
    }
} 
 
  </script>

Also am besten wäre es natürlich, wenn mir jemand auch eine genaue Anleitung geben könntet, wie man es in der Galerie einbauen muss.

__________________
FUSSBALL - ARTIKELVERZEICHNIS

Social Bookmarking - Düren - Fußball-Forum
18.06.06 20:44 |Nemo| ist offline E-Mail WWW Finden Als Freund hinzufügen
Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » yourWBB Misc * » Das Proggen » Skripte » Slide für Showit