PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Off-topic & sonstige Themen
Archiv
WIP und Entwürfe zu Webseiten
lightbox mit mouseover-effekt
Beitrag
<blockquote data-quote="Macewar" data-source="post: 1996176" data-attributes="member: 513601"><p><strong>AW: lightbox mit mouseover-effekt</strong></p><p></p><p>Hi Alex,</p><p>ich hab so was schon x-mal programmiert:</p><p></p><p>Hier das Mousover Script:</p><p>[CODE]<script type="text/javascript"></p><p>$(document).ready(function(){</p><p> $('#videoContainer IMG').each(function(){</p><p> if ($(this).attr('rel')) {</p><p> </p><p> $(this).mouseenter(function(){</p><p> $(this).stop();</p><p> $('#textblockContainer .'+$(this).attr('rel')).stop();</p><p> //if ($(this).css('opacity') < 1) { return false; }</p><p> $(this).animate({opacity:0},500,function(){});</p><p> //$('#textblockContainer .'+$(this).attr('rel')).css('display','block');</p><p> //$('#textblockContainer .text').css('display','none');</p><p> $('#textblockContainer .'+$(this).attr('rel')).animate({height:'toggle'},500);</p><p> });</p><p> $(this).mouseleave(function(){</p><p> $(this).stop();</p><p> $('#textblockContainer .'+$(this).attr('rel')).stop();</p><p> //if ($(this).css('opacity') > 0) { return false; }</p><p> $(this).animate({opacity:1},500,function(){});</p><p> </p><p> $('#textblockContainer .'+$(this).attr('rel')).animate({height:'toggle'},500,function(){</p><p> $(this).css('height','');</p><p> });</p><p> }); </p><p> }</p><p> });</p><p>});</p><p></script>[/CODE]Nartürlich musst du die Namen der Container anpassen und am besten benutzt du als Lightbox die hier -> <a href="http://fancybox.net/" target="_blank">http://fancybox.net/</a> </p><p></p><p>Hier die HTML Struktur:</p><p></p><p>[HTML]</p><p><div id="videoContainer"></p><p> <a class="fancybox-media" href="http://www.youtube.com /watch?v=C4AQVjwis4o&list=UU1149B-W0eHs_XWBq_8gBzw&index=9&feature=plcp"></p><p><img style="position:relative;top:-80px;" src="Images/video1_farbe.jpg" alt="laub" rel="text1"/></a></p><p> <div id="hover-bottom-con-1"></p><p><a class="fancybox-media" href="http://www.youtube.com/watch?v=C4AQVjwis4o&list=UU1149B-W0eHs_XWBq_8gBzw&index=9&feature=plcp"><img style="position:relative; top:-199px;" src="Images/video1_sw.jpg" alt="sw" rel="text1"/></a></p><p></div>[/HTML]Das währe wen du z.b ein Video einbinden willst, jetzt must du nur noch die Container Stylen und die fancybox auf die Bilder anpassen die Beschreibung dazu findest du auf der Seite.</p><p></p><p>MFG </p><p>Marcel</p></blockquote><p></p>
[QUOTE="Macewar, post: 1996176, member: 513601"] [b]AW: lightbox mit mouseover-effekt[/b] Hi Alex, ich hab so was schon x-mal programmiert: Hier das Mousover Script: [CODE]<script type="text/javascript"> $(document).ready(function(){ $('#videoContainer IMG').each(function(){ if ($(this).attr('rel')) { $(this).mouseenter(function(){ $(this).stop(); $('#textblockContainer .'+$(this).attr('rel')).stop(); //if ($(this).css('opacity') < 1) { return false; } $(this).animate({opacity:0},500,function(){}); //$('#textblockContainer .'+$(this).attr('rel')).css('display','block'); //$('#textblockContainer .text').css('display','none'); $('#textblockContainer .'+$(this).attr('rel')).animate({height:'toggle'},500); }); $(this).mouseleave(function(){ $(this).stop(); $('#textblockContainer .'+$(this).attr('rel')).stop(); //if ($(this).css('opacity') > 0) { return false; } $(this).animate({opacity:1},500,function(){}); $('#textblockContainer .'+$(this).attr('rel')).animate({height:'toggle'},500,function(){ $(this).css('height',''); }); }); } }); }); </script>[/CODE]Nartürlich musst du die Namen der Container anpassen und am besten benutzt du als Lightbox die hier -> [URL]http://fancybox.net/[/URL] Hier die HTML Struktur: [HTML] <div id="videoContainer"> <a class="fancybox-media" href="http://www.youtube.com /watch?v=C4AQVjwis4o&list=UU1149B-W0eHs_XWBq_8gBzw&index=9&feature=plcp"> <img style="position:relative;top:-80px;" src="Images/video1_farbe.jpg" alt="laub" rel="text1"/></a> <div id="hover-bottom-con-1"> <a class="fancybox-media" href="http://www.youtube.com/watch?v=C4AQVjwis4o&list=UU1149B-W0eHs_XWBq_8gBzw&index=9&feature=plcp"><img style="position:relative; top:-199px;" src="Images/video1_sw.jpg" alt="sw" rel="text1"/></a> </div>[/HTML]Das währe wen du z.b ein Video einbinden willst, jetzt must du nur noch die Container Stylen und die fancybox auf die Bilder anpassen die Beschreibung dazu findest du auf der Seite. MFG Marcel [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Off-topic & sonstige Themen
Archiv
WIP und Entwürfe zu Webseiten
lightbox mit mouseover-effekt
Oben