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
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
iFrame in Javascript Slider
Beitrag
<blockquote data-quote="ddjjmm" data-source="post: 1889038" data-attributes="member: 472728"><p>Hallo zusammen <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>ich habe einen Slider der mittels Javascript verschiedene Teaserbilder bei MouseOver anzeigt. Soweit so gut. Allerdings soll in einem der Slides ein Video und kein Bild dargestellt werden.</p><p></p><p>Ich dachte, ich kann es mittels iframe lösen, aber irgendwie klappt das nicht so wie ich mir das vorgestellt habe. Wird einfach nicht angezeigt bzw. er bricht den Code irgendwie komisch um und gibt HTML Code aus.</p><p></p><p>Hat jemand eine Idee ob das überhaupt geht oder was ich falsch mache?</p><p></p><p>Vielen Dank im Voraus</p><p></p><p><strong>HTML Code</strong></p><p>[PHP]<div class="teaserbox"></p><p><img src="./img/teaser-01.jpg" class="item" style="padding-left: 25px;" id="teaserpic" name="teaserpic"/></p><p><ul class="home_top_boxes boxes page_text"></p><p><li class="box"><a onmouseover="changeImages('teaserpic','<?php echo '<iframe src="http://85.214.227.43/dev/teaser.html" width="1000" height="364" name="teaser iframe" border="0" frameborder="0" scrolling="no" align="left" />'; ?>','button_01','img/button-01b.png','button_02','img/button-02.png','button_03','img/button-03.png','button_04','img/button-04.png');return true" href="#"><img id="button_01" src="./img/button-01b.png" name="button_01" /></a></li></p><p><li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-02.jpg','button_01','img/button-01.png','button_02','img/button-02b.png','button_03','img/button-03.png','button_04','img/button-04.png');return true" href="videoproduktion.html"><img id="button_02" src="./img/button-02.png" name="button_02" /></a></li></p><p><li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-03.jpg','button_01','img/button-01.png','button_02','img/button-02.png','button_03','img/button-03b.png','button_04','img/button-04.png');return true" href="videomarketingsystem.html"><img id="button_03" src="./img/button-03.png" name="button_03" /></a></li></p><p><li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-04.jpg','button_01','img/button-01.png','button_02','img/button-02.png','button_03','img/button-03.png','button_04','img/button-04b.png');return true" href="sonderaktion2012"><img id="button_04" src="./img/button-04.png" name="button_04" /></a></li></p><p></ul></p><p></div>[/PHP]<strong>Javascript</strong></p><p>[PHP]function newImage(arg) {</p><p> if (document.images) {</p><p> rslt = new Image();</p><p> rslt.src = arg;</p><p> return rslt;</p><p> }</p><p>}</p><p></p><p></p><p>function changeImagesArray(array) {</p><p> if (preloadFlag == true) {</p><p> var d = document; var img;</p><p> for (var i=0; i<array.length; i+=2) {</p><p> img = null; var n = array[i];</p><p> if (d.images) {img = d.images[n];}</p><p> if (!img && d.getElementById) {img = d.getElementById(n);}</p><p> if (img) {img.src = array[i+1];}</p><p> }</p><p> }</p><p>}</p><p></p><p></p><p>function changeImages() {</p><p> changeImagesArray(changeImages.arguments);</p><p>}</p><p></p><p></p><p>var preloadFlag = false;</p><p>function preloadImages() {</p><p> if (document.images) {</p><p> pre_button_01b = newImage('img/button-01b.png');</p><p> pre_button_02b = newImage('img/button-02b.png');</p><p> pre_button_03b = newImage('img/button-03b.png');</p><p> pre_button_04b = newImage('img/button-04b.png');</p><p> pre_button_04b = newImage('img/teaser-01.jpg');</p><p> pre_button_04b = newImage('img/teaser-02.jpg');</p><p> pre_button_04b = newImage('img/teaser-03.jpg');</p><p> preloadFlag = true;</p><p> }</p><p>}</p><p>[/PHP]Jemand eine Idee? <img src="/styles/default/xenforo/smilies/uhm.gif" class="smilie" loading="lazy" alt=":(" title="Frown :(" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="ddjjmm, post: 1889038, member: 472728"] Hallo zusammen :) ich habe einen Slider der mittels Javascript verschiedene Teaserbilder bei MouseOver anzeigt. Soweit so gut. Allerdings soll in einem der Slides ein Video und kein Bild dargestellt werden. Ich dachte, ich kann es mittels iframe lösen, aber irgendwie klappt das nicht so wie ich mir das vorgestellt habe. Wird einfach nicht angezeigt bzw. er bricht den Code irgendwie komisch um und gibt HTML Code aus. Hat jemand eine Idee ob das überhaupt geht oder was ich falsch mache? Vielen Dank im Voraus [B]HTML Code[/B] [PHP]<div class="teaserbox"> <img src="./img/teaser-01.jpg" class="item" style="padding-left: 25px;" id="teaserpic" name="teaserpic"/> <ul class="home_top_boxes boxes page_text"> <li class="box"><a onmouseover="changeImages('teaserpic','<?php echo '<iframe src="http://85.214.227.43/dev/teaser.html" width="1000" height="364" name="teaser iframe" border="0" frameborder="0" scrolling="no" align="left" />'; ?>','button_01','img/button-01b.png','button_02','img/button-02.png','button_03','img/button-03.png','button_04','img/button-04.png');return true" href="#"><img id="button_01" src="./img/button-01b.png" name="button_01" /></a></li> <li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-02.jpg','button_01','img/button-01.png','button_02','img/button-02b.png','button_03','img/button-03.png','button_04','img/button-04.png');return true" href="videoproduktion.html"><img id="button_02" src="./img/button-02.png" name="button_02" /></a></li> <li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-03.jpg','button_01','img/button-01.png','button_02','img/button-02.png','button_03','img/button-03b.png','button_04','img/button-04.png');return true" href="videomarketingsystem.html"><img id="button_03" src="./img/button-03.png" name="button_03" /></a></li> <li class="box"><a onmouseover="changeImages('teaserpic','img/teaser-04.jpg','button_01','img/button-01.png','button_02','img/button-02.png','button_03','img/button-03.png','button_04','img/button-04b.png');return true" href="sonderaktion2012"><img id="button_04" src="./img/button-04.png" name="button_04" /></a></li> </ul> </div>[/PHP][B]Javascript[/B] [PHP]function newImage(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImagesArray(array) { if (preloadFlag == true) { var d = document; var img; for (var i=0; i<array.length; i+=2) { img = null; var n = array[i]; if (d.images) {img = d.images[n];} if (!img && d.getElementById) {img = d.getElementById(n);} if (img) {img.src = array[i+1];} } } } function changeImages() { changeImagesArray(changeImages.arguments); } var preloadFlag = false; function preloadImages() { if (document.images) { pre_button_01b = newImage('img/button-01b.png'); pre_button_02b = newImage('img/button-02b.png'); pre_button_03b = newImage('img/button-03b.png'); pre_button_04b = newImage('img/button-04b.png'); pre_button_04b = newImage('img/teaser-01.jpg'); pre_button_04b = newImage('img/teaser-02.jpg'); pre_button_04b = newImage('img/teaser-03.jpg'); preloadFlag = true; } } [/PHP]Jemand eine Idee? :( [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
iFrame in Javascript Slider
Oben