I have a photo slideshow running on a homepage. I would like to assign a different background color to be used for each photo and change in synch with the slideshow. Can anyone help?
I have a photo slideshow running on a homepage. I would like to assign a different background color to be used for each photo and change in synch with the slideshow. Can anyone help?
Thanks
Have it execute this line whenever it changes the image:
Forgive me, for I am a beginner. Will that statement allow me to assign a color that I predetermine for each image in the slideshow? Could you give me an example? Below is the slideshow code that is on the host site. How do I incorporate it into the code? Thanks
---START---
/*=========================*/
/*== SLIDE SHOW ==*/
/*== version 0.57 ==*/
/*== Updated 12 Dec 2006 ==*/
/*=========================*/
var SLIDE_SHOW = 0;
var RANDOM_PHOTO = 1;
var slideshowContainer;
var sSlide;
var sCaption;
var ssSlides;
var ssSlideTotal;
var ssSlideTimer;
var ssOldSlide;
var ssFadeTimer;
var ssFade;
var ssTimerId;
var blank;
function PrepSlideEnvironment() {
tmpCookie = getCookie("Template");
blank = new Image();
blank.src = "/img/spacer.gif";
This script will generate randown colors, so you have no predetermined colors.
If you dont need predetermined colors, all you need to do is run this script as an event, the "onClick" (when you click the next photo button)
If you need predertemined colors, you will need to create an array, each index is a diferent colors. Whenever you click the buttom, you just need to change the index of the array
Forgive me, for I am a beginner. Will that statement allow me to assign a color that I predetermine for each image in the slideshow? Could you give me an example? Below is the slideshow code that is on the host site. How do I incorporate it into the code? Thanks
When you say 'the host site' do you mean that this code is running on a third-party site? If so do they let you modify the code that controls your slideshow? If not then you can forget it, otherwise that code is incomplete with at least one function missing.
Yes, I want predetermined colors. Looks like I am in over my head and need to study up some for I am very new to html, javascript, css, etc. If using an array for the colors, can this be coded so that the background color changes with the slideshow which runs automatically, or do you need to have the user click slideshow buttons which would generate an event each photo change?
Anyone have a good how-to link for javascript basics and arrays? Thanks
Yes, the third-party site lets you customize the code. The slideshow is currently working (code provided by support). I just pasted the javascript section.
I dont think learning flash from zero would be a good idea. Instead, try searching some ready solution. Sure, you will learn a few things until you reach what you want with your slideshow.
Wow, the code is so complex. But it is very easy for those who have no flash knowledge to get the slideshow program. I often share my photos by creating photo slideshows with Kvisoft. I think his website will help you: http://www.kvisoft.com/tutorials/ima...-software.html
Bookmarks