Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...rotate imagesrotate images
Previous
 
Next
New Post
10/10/2007 1:37 AM
 

hello

I have 3 images and there is a link on each image, i want to rotate these imges. I already have a java script file nd html file for doing that how can I apply this to my content pane.

is there any module could do same functionality. I tried to search and I fond banner module but I am not sure if this module can do the same?

I need ur help.

thaks.

 
New Post
10/10/2007 3:38 AM
 

The banner module will change the image each time you refresh or re-navigate to the page it's located on. It will not change the image while you are on the page.


Lorraine Young
www.dnnangel.com
Author of the DotNetNuke User Manuals
& Co-author "DotNetNuke For Dummies"
 
New Post
10/10/2007 11:50 AM
 

If you want to refresh the image on a page refresh, follow Lorraine's suggestion and use the banner module.  If you want to rotate the images without refreshing the page, check out digRotate.  digRotate can rotate Image/Text/HTML that you specify.  It can also rotate DNN banners.

Thanks,

Mike

 
New Post
11/5/2008 10:09 AM
 

I know this thread is a bit outdated but maybe I can help someone with it

Just make a container in DotNetNuke with some XHTML and this JavaScript-code:

 /*****

Image Cross Fade Redux
Version 1.0
Last revision: 02.15.2006
steve@slayeroffice.com

Please leave this notice intact.

Rewrite of old code found here: http://slayeroffice.com/code/imageCrossFade/index.html


*****/
window.addEventListener?window.addEventListener("load",so_init,false):window.attachEvent("onload",so_init);
var d=document, imgs = new Array(), zInterval = null, current=0, pause=false;

function so_init() {
  if(!d.getElementById || !d.createElement)return;

  // DON'T FORGET TO GRAB THIS FILE AND PLACE IT ON YOUR SERVER IN THE SAME DIRECTORY AS THE JAVASCRIPT!
  // http://slayeroffice.com/code/imageCrossFade/xfade2.css
  css = d.createElement("link");
  css.setAttribute("href","styles/xfade2.css");
  css.setAttribute("rel","stylesheet");
  css.setAttribute("type","text/css");

  d.getElementsByTagName("head")[0].appendChild(css);

  imgs = d.getElementById("picture").getElementsByTagName("img");
  for(i=1;i<imgs.length;i++) imgs[i].xOpacity = 0;
  imgs[0].style.display = "block";
  imgs[0].xOpacity = .99;
 
  setTimeout(so_xfade,2400);
}

function so_xfade() {
  cOpacity = imgs[current].xOpacity;
  nIndex = imgs[current+1]?current+1:0;

  nOpacity = imgs[nIndex].xOpacity;
 
  cOpacity-=.05;
  nOpacity+=.05;
 
  imgs[nIndex].style.display = "block";
  imgs[current].xOpacity = cOpacity;
  imgs[nIndex].xOpacity = nOpacity;
 
  setOpacity(imgs[current]);
  setOpacity(imgs[nIndex]);
 
  if(cOpacity<=0) {
    imgs[current].style.display = "none";
    current = nIndex;
    setTimeout(so_xfade,2400);
  } else {
    setTimeout(so_xfade,50);
  }
 
  function setOpacity(obj) {
    if(obj.xOpacity>.99) {
      obj.xOpacity = .99;
      return;
    }
    obj.style.opacity = obj.xOpacity;
    obj.style.MozOpacity = obj.xOpacity;
    obj.style.filter = "alpha(opacity=" + (obj.xOpacity*100) + ")";
  }
}

Add a Text/HTML module, add your images and add the container-template to this module... And there you go!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...rotate imagesrotate images


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out