Toon posts:

sIFR 2.0.7 transparante achtergrond

Pagina: 1
Acties:

Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Beste mensen,

Ik ben bezig met sIFR 2.0.7. Hierin wil ik een transparante achtergrond kleur gebruiken. Dat lukt maar niet. Dit is een stukje javascript voor het configureren van de sIFR:


JavaScript:
1
2
3
4
5
6
7
if(typeof sIFR == "function"){

// (element, source, sColor, sLinkColor, sHoverColor, sBgColor, nPadding)
    sIFR.replaceElement("h1","./sifr/nyx.swf","#ffd200", null, null, 0, 0, 0, 0, 0, null);
    sIFR.replaceElement("h2","./sifr/nyx.swf","#000000", null, null, null, 0, 0, 0, 0, null);
    sIFR.replaceElement("h3","./sifr/nyx.swf","#ffd200", null, null, null, 0, 0, 0, 0, null);
};


Als je voor de sBgColor "transparant" of "null invult" dan wordt hij groen.

Iemand die de oplossing weet? Alvast bedankt!

Acties:
  • 0 Henk 'm!

  • Copyman
  • Registratie: Januari 2001
  • Laatst online: 24-09 11:52

Copyman

Dode muis

Heb je wel op Google gezocht?

Flash heeft een parameter genaamd wmode (window mode). Door deze op 'transparent' te zetten wordt je achtergrond dus transparant. Afhankelijk van welke sIFR je gebruikt kan dat met:

JavaScript:
1
sWmode: 'transparent'


of

JavaScript:
1
sifr.wmode = 'transparent';


Quote van een andere website:
Just a friendly reminder that when setting sIFR to be transparent, you should still specify a background color (the "sBgColor" argument) for browsers that don't support transparent Flash movies (which would be older versions of Opera, Safari, and Firefox, among others).

Zeer belangrijke informatie: Inventaris


Acties:
  • 0 Henk 'm!

  • koekiemonster
  • Registratie: Maart 2001
  • Laatst online: 13-08 19:58

koekiemonster

want a cookie

Zie copyman, kijk even naar de Flash wmode, deze moet inderdaad op transparant staan.

[webhero.nl]


Acties:
  • 0 Henk 'm!

Verwijderd

Topicstarter
Hartstikke bedankt, het werkt inderdaad! Toptip!