JQUERY Image Rotator Issue - Please help!

JQUERY Image Rotator Issue - Please help!

I feel odd visiting this forum as I am not a programmer (and am envious of those of you who are)...

Test site:  www.inkdifferent.biz 

I downloaded and installed a WordPress plugin called Cimy Header Image Rotator.  This jquery-based rotator does not give the option to stop it from looping through the images.  I just want it to go through the images one time, and then stop on the last image.  I made a modification and got it to stop on the last image - but it still shows the second-to-last image below it!  (These are PNG images, so it's an issue).  Any advice?  I'm only posting the code that I think is affected as I don't want to paste hundreds of lines of code in the forum (but will if asked).

Original code:
echo "
<script type=\"text/javascript\" language=\"javascript\">
jQuery(document).ready(function($) {
  $(function() {
    $('#$div_id').crossSlide({
      sleep: $seconds,\n";
    echo "      fade: ".$cimy_hir_curr_options['fade'];
    echo $cimy_hir_curr_options['shuffle'] ? ",\n      shuffle: true" : "";
    echo "\n    }, [";
    // super-silly Internet Explorer can't handle comma at the end of last parameter
    $flag = false;
    foreach ($img_array as $item) {
        if ($flag)
            echo ",";
        else
            $flag = true;
        echo "\n\t{ src: '".$path."/".basename($item)."' }";
    }
    echo "
       ]);

Modified code:

echo "
<script type=\"text/javascript\" language=\"javascript\">
jQuery(document).ready(function($) {
  $(function() {
    $('#$div_id').crossSlide({
      loop: 1, sleep: $seconds,\n";     echo "      fade: ".$cimy_hir_curr_options['fade'];
    echo $cimy_hir_curr_options['shuffle'] ? ",\n      shuffle: true" : "";
    echo "\n    }, [";
    // super-silly Internet Explorer can't handle comma at the end of last parameter
    $flag = false;
    foreach ($img_array as $item) {
        if ($flag)
            echo ",";
        else
            $flag = true;
        echo "\n\t{ src: '".$path."/".basename($item)."' }";
    }
    echo "
       ]);

I appreciate any advice!!!

Tony




















































    • Topic Participants

    • wtw