Hallo Leute,
ich versuche seit im Bereic ausserhalb des Contents von WP 4.2.2 zwei Skyscraper einzublenden und deren Inhalt mittels jQuerry aus dateien mit überblendung nachzuladen.
Zu sehen unter http://www.test.in-brilon.com
Das hat soweit fast alles geklappt. Die Bilder werden aus bzw. eingeblendet aber die Bildern haben ihre Links verlohren.
Die eingelesenen html Dateien enthalten nur folgenden Inhalt:
<p>Banner - 1</p>
<a href="http://issuu.com/brilon-totallokal/docs/sportpoint_fitness_2014_2015?e=0/13581111"><img src="http://brilon-totallokal.de/wp-content/uploads/2015/06/sportpoint-banner.png" width="161" height="220"></a><br>
<a href="http://www.adiepro.de/menu-header/news/5-volksbank-brilon-firmenlauf-2014.html" target="new"><img src="http://localhost/Webs6/chiefbanner/img/01.07.2015_310-x-465-px_voba_Firmenlauf.jpg" width="160" height="240"></a><br>
Die PHP Dateien sehen so aus:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.3.js"></script>
<script>
$(document).ready(function Bannerwechsel_l(e)
{
$('#skyscraper_l').animate({opacity:"0", filter:"alpha(opacity=0)"}, 6000, function(e)
{
$('#skyscraper_l').load("http://www.test.in-brilon.com/wp-content/themes/colormag/Banner-1.html", function(e)
{
$('#skyscraper_l').animate({opacity:"100", filter:"alpha(opacity=1)"}, 6000, function(e)
{
$('#skyscraper_l').animate({opacity:"0", filter:"alpha(opacity=0)"}, 6000, function(e)
{
$('#skyscraper_l').load("http://www.test.in-brilon.com/wp-content/themes/colormag/Banner-2.html", function(e)
{
$('#skyscraper_l').animate({opacity:"100", filter:"alpha(opacity=1)"}, 6000, function(e)
{
$('#skyscraper_l').animate({opacity:"0", filter:"alpha(opacity=0)"}, 6000, function(e)
{
$('#skyscraper_l').load("http://www.test.in-brilon.com/wp-content/themes/colormag/Banner-3.html", function(e)
{
$('#skyscraper_l').animate({opacity:"100", filter:"alpha(opacity=1)"}, 6000, function(e)
{
$('#skyscraper_l').animate({opacity:"0", filter:"alpha(opacity=0)"}, 6000, function(e)
{
$('#skyscraper_l').load("http://www.test.in-brilon.com/wp-content/themes/colormag/Banner-4.html", function(e)
{
$('#skyscraper_l').animate({opacity:"100", filter:"alpha(opacity=1)"}, 6000);
});
});
});
});
});
});
});
});
});
});
});
});
</script>
<SECTION id="skyscraper_l">
<p>Banner L - Start</p>
<a href="http://www.adiepro.de/menu-header/news/5-volksbank-brilon-firmenlauf-2014.html" target="new"><img src="http://localhost/Webs6/chiefbanner/img/01.07.2015_310-x-465-px_voba_Firmenlauf.jpg" width="160" height="240"></a><br>
<a href="http://issuu.com/brilon-totallokal/docs/sportpoint_fitness_2014_2015?e=0/13581111"><img src="http://brilon-totallokal.de/wp-content/uploads/2015/06/sportpoint-banner.png" width="161" height="220"></a><br>
</SECTION>
Alles anzeigen
Als Standallone funktioniert das spitze. Bilder werden getauscht und haben links.
mit
include ich dann die skyscraper_r.php ins colorMAG Theme
dabei fallen irgend wie die links weg und die einzulesenden Dateien werden anscheinend nicht gefunden.
Ich hoffe jemand hat eine Idee, mir sind die so langsam ausgegangen, oder sehe ich den Wald vor lauter Bäumen nicht? :?::oops::?:
Euer HDJ-Lange