开发者

Image rotator for the drupal web page

开发者 https://www.devze.com 2023-01-26 18:32 出处:网络
I see few plugins for slidshow/rotator in drupal. http://drupal.org/project/slideshow http://drupal.org/project/views_rotator

I see few plugins for slidshow/rotator in drupal.

  1. http://drupal.org/project/slideshow
  2. http://drupal.org/project/views_rotator
  3. http://www.bywombats.com/blog/06-08-2010/building-rotating-image-banner-views
  4. http://ddblock.myalbums.biz/node/885
  5. /http://drupal.org/project/rotor

I am 开发者_如何学JAVAtrying to have an image rotator, similar to http://www.oracle.com/index.html

Thanks ins advance.


There are another cool and crossbrowsing module: http://drupal.org/project/views_slideshow

Main benefit of it is very good customization by css and tpl files. Also it has a good and easy video-guide (link on the module page).

Also this module has some dependenies modules those may be very useful. Check it!


In my experience if you really want full control, you need to build the slideshow yourself. At first this may seem difficult, but it's actually fairly "simple" (depending on your background offcourse).

Drupal uses jQuery and by using the jQuery cycle plugin, you can create pretty much any slideshow.

The jQuery cycle plugin is easy to use:

  • add the plugin to your drupal installation (download the .js and add it to your theme)
  • in your template make sure your banner/slideshow-items are all in 1 div or container
  • write your own js-file with following code (where container stands for ID of the container div):
$('#container')
.before('<div id="nav">') 
.cycle({
    fx:    'fade', 
    speed:  2500, 
    pager: #nav
 });

This will create a slideshow on the container div and will create a navigation div before the slideshow with the page-elements. (you will get all kinds of selectors such as .active to get full control over the navigation)


Using a module is ok, but you will need to make changes specific to what you want and sometimes this could take longer then just making it yourself.

If you still would want to use a module, I'd say rotor banner (last update date 25th of may) or slideshow (last update date 5th of april). However I believe slideshow will be too light for what you want to achieve, and rotor banner a bit too heavy...

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号