Page 1 of 1

Bug into slideshow plugin

Posted: 19 Oct 2009, 12:21
by kindUp
Hi,
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}";
change two lines: 1 and 3 (added ".$c."), solution:

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}";
kindUp

Re: Bug into slideshow plugin

Posted: 31 Oct 2009, 14:44
by Jan
Hi, yes the javascript of the slideshow has some limitation, you can display only two on the site :-(