Web Design Forum  
 
Go Back   Web Design Forum > Web and Graphic Design > Web Design

Reply
 
LinkBack Thread Tools Display Modes
Old 05-31-2009, 08:03 AM   #1
New Member
 
Join Date: May 2009
Posts: 2
Question Simple Manual Slide Show?

Hello all - I'm looking to create, with CSS and HTML, a simple manually controlled slide show. It should be quite straightforward to program. I have a two buttons, "next" and "previous," and I just want them to cycle through a few pictures that will display above - and I want it to take place on a single HTML page. I'm not sure if the best way is to show/hide the pictures, or use z-index, or use variables (if picture n is displayed, display picture n+1)... or what.

I'm pretty much trying to do this: http://www.ericharshbarger.org/cgi-b...how/index.html

Thanks for any help you can give me!
Markaholic is offline   Reply With Quote


Old 05-31-2009, 02:59 PM   #2
Gold Member
 
Join Date: Oct 2008
Location: Yonkers, NY
Posts: 495
Default

Any knowledge of javascript? I'm sure you can just get the code for this type of thing from anywhere.
LouTheDesigner is offline   Reply With Quote
Old 06-02-2009, 06:51 PM   #3
Silver Member
 
wetgravy's Avatar
 
Join Date: Sep 2008
Posts: 176
Send a message via AIM to wetgravy
Default

Pretty much what you are after can not be done with just html and css. Too simple of a language. Javascript is your best bet and there are probably some existing scripts that will do you just fine.
wetgravy is offline   Reply With Quote
Old 06-02-2009, 08:17 PM   #4
Silver Member
 
Join Date: Aug 2008
Location: Atlanta, Georgia
Posts: 140
Send a message via MSN to constanthosting
Default

I stumbled across this pretty neat site a few days ago and it has two or three neat little ajax javascript slideshows on it that shouldn't be too hard to implement, http://miniajax.com/
__________________
http://constant-hosting.com Webhosting Improved. You'll love our shared hosting.
constanthosting is offline   Reply With Quote
Old 06-03-2009, 01:07 AM   #5
Gold Member
 
Join Date: Mar 2009
Posts: 367
Default

Here's a JavaScript to run the manual slideshow:

// Manual Slide-Show script. With image cross fade effect for those browsers
// that support it.
// Script copyright (C) 2004-08 www.cryer.co.uk.
// Script is free to use provided this copyright header is included.
var manualPictures = new Array();
function NextImageSlide(pictureName,imageFiles)
{
// Ensure picture list primed.
if (manualPictures[pictureName] == null) {
manualPictures[pictureName] = imageFiles;
} else {
imageFiles = manualPictures[pictureName];
}
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
var picture = document.getElementById(pictureName);
if (picture.filters)
{
picture.style.filter="blendTrans(duration=2)";
picture.filters.blendTrans.Apply();
}
picture.src = nextImage;
if (picture.filters)
{
picture.filters.blendTrans.Play();
}
manualPictures[pictureName] =
imageFiles.substring(imageSeparator+1,imageFiles.l ength)
+ ';' + nextImage;
}

Good luck!
__________________
Celebrity Addresses
mrandrei is offline   Reply With Quote


Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:16 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.