Is it possible to use gifs for all inactive images and a different for the active one displaying?

CommentFileSizeAuthor
#9 825450-breakouts.jpg234.01 KBintyms

Comments

redndahead’s picture

Status: Active » Fixed

In thumbnailhover it's easy by just selecting a different field for your breakout fields. In singleframe there is a way to trick it to show it.

1) Add the thumbnail image you want to show as your top field.
2) In css hide that field from showing

singleFrame will pickup that image as the first image so it will use it as the thumbnail image.

netentropy’s picture

OK , I see what you are saying, let me clarify my support request..

Say there are 5 images in the slideshow

instead of pagination, I want to have 5 gray dots that represent the images, when an Image is active its corresponding dot will be green.

I have been playing with what you said above but cannot get the displayed image to show the active green dot

intyms’s picture

@bjraines
add "Global:Custom" text to breakouts.
add the following html to that field:

  <div class="dots"></div>

add the following code to your CSS file:

div.dots {
  background: url("path to your gray dot image") no-repeat scroll 0 0px transparent;
  height: 10px;
  width: 10px;
}

.activeSlide div.dots {
  background: url("path to your green dot image") no-repeat scroll 0 0px transparent;
}
redndahead’s picture

or you can use the numbered pager and add a background and move the text. Something like

.pager-item {
  background-image: url("path to grey image");
  text-indent: -2000px;
}

.pagerItem .activeSlide {
  background-image: url("path to green image");
}

The activeSlide may have to be attached to pagerItem like .pagerItem.activeSlide

Hope this helps

netentropy’s picture

thanks so much, this is the last thing i need to do for this client, i hope the a click area is big enough!!!

netentropy’s picture

what do you mean by "breakouts"

netentropy’s picture

how do you pull it on top of the image though when top margins collapse?

intyms’s picture

@#5 bjraines

i hope the a click area is big enough!!!

You can change the "click area" in your CSS file.

I suggest you to download Firebug extension for firefox. With Firebug you can inspect HTML and modify style and layout in real-time.

intyms’s picture

StatusFileSize
new234.01 KB

@ #6 bjraines

what do you mean by "breakouts"

see attached file.

intyms’s picture

@ #7 bjraines - June 13, 2010 - 07:47

how do you pull it on top of the image though when top margins collapse?

I don't understand very good your question.
Try searchin google "CSS positioning".
Also you can start learning from here: http://www.w3schools.com/Css/css_positioning.asp

netentropy’s picture

@ #10 intyms

I am pretty good with css, and have researched the positioning just to check to make sure things were correct.

I am trying to pull the pagination links on top of the photo, no manner of position or zindex has helped.

you can see me using the "dots" for the pager but I cannot get it to position over the photo here: http://174.121.159.2/~localp/

thanks again , y'all have been very helpful.

intyms’s picture

@#11 bjraines

add this to your CSS file

.view-front-page-banner .view-content {
  position: relative;
}

.view-front-page-banner .views-slideshow-controls-bottom {
  position: absolute;
  right: 358px;
  top: 402px;
  z-index: 100;
}

netentropy’s picture

This is by far the most helpful support i have ever had since I started using Drupal. I hope this thread helps others because I think this is a useful technique.

The progress:

http://174.121.159.2/~localp/#

I still haven't gotten the activeSlide to work yet, I have tried different combinations, and looking in FireFox Firebox I can see the activeSlide move with images. not sure why it's not picking it up

intyms’s picture

Hello bjraines,
I'm happy that you like the support :)

As to

I still haven't gotten the activeSlide to work yet

try to add this code to your CSS:

.view-front-page-banner .activeSlide a {
  background: url("path to green image") no-repeat scroll right bottom white;
}

Also you have used "display:inline-block" for your "a" tag.
Search in google and you will see that inline-block has some compatibility problems with internet explorer.
I suggest to change it to "display: block" and to use "float: left" to put all images in one raw.

Good luck and Happy debugging!

netentropy’s picture

that worked! I will write it all up so people can see what we did! Nice CSS moving button.

redndahead’s picture

Thanks intyms for providing support it really helps me a lot.

bjraines feel free and add it to the documentation that's the best place to help everyone out.

intyms’s picture

@bjraines
i agree with redndahead, adding this example to documentation will be great!

@redndahead, I am happy to have a possibility to contribute to Drupal community.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.