Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • TomC Moderator
    #127873

    Does anyone know of an “image rotate on refresh” script that will work within JA templates?
    The thing I am concerned about is javascript conflict.

    Does anyone know how this could be integrated into any given JA template so as to not conflict with other javascript functions?

    Further, how to assign it to a particular module position.

    THANKS !!

    Menalto Friend
    #250831

    What you mean with “image rotate on refresh”?
    You want a image to change every time you refresh the page?

    TomC Moderator
    #250871

    <em>@Menalto 55613 wrote:</em><blockquote>What you mean with “image rotate on refresh”?
    You want a image to change every time you refresh the page?</blockquote>
    Yes, that’s exactly what I want. In other words, instead of the image rotating automatically – such as with JA Slideshow – the image would only rotate upon the user clicking “refresh” or upon coming back to the site.

    I know there is a javascript function for this kind of effect, but I wasn’t sure how such could be integrated into a joomla template without all of the javascript confliicts.

    Menalto Friend
    #250886

    Not tested out but if you take create a php file and add this code into it:

    <?php
    $files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
    readfile($files);
    ?>

    save it as rotate.php
    Then you create a folder in your images folder of your site and upload the images and the file you just created to that folder.
    Then create a new custom module and add this link in it:

    <img src="images/stories/rotate/rotate.php"/>

    TomC Moderator
    #250953

    Wow . . . now see, that is something I NEVER would have thought of or been able to figure out.
    I’ll give that a shot and report back as to how it works.

    THANK YOU, MENALTO !!!

    😀

    Menalto Friend
    #250993

    I tested it and it works for me:p
    Just remember to make your images the same size.

    way110 Friend
    #491190

    it’s not gonna be easier to finish the codes. it would be amazing to see everytime you refresh the images , images rotates.

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 3 voices, and was last updated by  way110 11 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum