On the home page I'm displaying the first article in introtext and fulltext, and three articles - only introtext. When the slideshow will put in the introtext of one of these three articles is ok, but when he will put in the introtext two or three articles is - stack overflow.
In line about 180
Code: Select all
$script .= "if(window.onload) {\n";
$script .= "var temp = window.onload;\n";
$script .= "window.onload=function(e) {\n";
$script .= "temp(e);\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}\n else{\n window.onload=function(e) {\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}";
Code: Select all
$script .= "if(window.onload) {\n";
$script .= "var temp".$c."= window.onload;\n";
$script .= "window.onload=function(e) {\n";
$script .= "temp".$c."(e);\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}\n else{\n window.onload=function(e) {\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}";