Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 07:03:52 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155479 Posts in 21708 Topics by 7734 Members
Latest Member: rofroodoOvego
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Looking for a module, a snippet, a droplet to display changing logos,....  (Read 959 times)
midiweb

Offline Offline

Posts: 178


« on: February 19, 2009, 01:12:28 PM »

hi, I've been looking for a script, a snippet, or droplet  to display different changing logos of firms but at the same place, as small flash animations. I mean, for instance, a logo stays 2 seconds, another one after 4 seconds, and so on,... Cheers

Logged
midiweb

Offline Offline

Posts: 178


« Reply #1 on: February 19, 2009, 01:15:27 PM »

sorry, I've just found the module "Random Image" .I'll try it.
Logged
Hans

Offline Offline

Posts: 564


« Reply #2 on: February 19, 2009, 09:30:05 PM »

There's also a Droplet (http://www.websitebakers.com/pages/admin/admin-tools/droplets.php) in AMASP
http://www.websitebakers.com/pages/droplets/official-library/images/random-images.php
Hans
Logged

Hans - Nijmegen - The Netherlands
midiweb

Offline Offline

Posts: 178


« Reply #3 on: May 19, 2009, 04:39:45 PM »

hi, I tried the dropplet Randomimage but it displays one picture in one time. I would like to display all pictures from the folder in turn, alternately, as one loop.Do you know how to do that?
Logged
Hans

Offline Offline

Posts: 564


« Reply #4 on: May 19, 2009, 08:22:30 PM »

http://www.websitebakers.com/pages/modules/image-galleries/smooth-gallery.php in a certain configuration.
Hans
Logged

Hans - Nijmegen - The Netherlands
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #5 on: May 20, 2009, 12:04:59 AM »

Maybe not quite what you want out of the box, but with some work you might be able to use http://www.websitebakers.com/pages/modules/image-galleries/slideshow.php

Otherwise you have to use a simple third party image rotator script. There are many javascript ones, and also very neat ajax and jquery scripts with nice effects and options. And Flash ones of course.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
midiweb

Offline Offline

Posts: 178


« Reply #6 on: May 20, 2009, 11:33:10 AM »

What have I to change in the dropplet Randomimage to display in a loop without to reload tha page:

Code:
$folder=opendir(WB_PATH.MEDIA_DIRECTORY.'/'.$dir.'/.');
$names = array();
while ($file = readdir($folder))  {
    $ext=strtolower(substr($file,-4));
    if ($ext==".jpg"||$ext==".gif"||$ext==".png"){
        $names[count($names)] = $file;
    }
}
closedir($folder);
shuffle($names);
$image=$names[0];
$name=substr($image,0,-4);
return '<img src="'.WB_URL.MEDIA_DIRECTORY.'/'.$dir.'/'.$image.'" alt="'.$name.'" width="'.$width.'" height="'.$height.'"/>';



I tried in the index.php with the PHP function

Code:
for($i=0;$i < 100;$i++)
     {
                  [[RandomImage?dir=logos]]
';
     }

But it displays 100 times the same logo and not the next logo.

Who can help me?

Logged
Argos
Moderator
**
Offline Offline

Posts: 2156


WWW
« Reply #7 on: May 20, 2009, 11:40:31 AM »

You cannot use that, because you need some script function. A droplet has no script. That's why Hans and I suggested two different modules to look at.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!