PDA

View Full Version : Resolved Swiss Army Image Slideshow / buttons



lio
03-28-2009, 12:51 PM
1) Script Title: Swiss Army Image Slideshow

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex14/swissarmy/index.htm

3) Describe problem: I don't find whre the position of the buttons is dedined in order to put them on the side or in another area

Thanks for the help ;)

jscheuer1
03-28-2009, 01:54 PM
See:

http://www.dynamicdrive.com/forums/showthread.php?t=41014

and:

http://www.dynamicdrive.com/forums/showthread.php?t=41046

lio
03-29-2009, 08:04 PM
Thanks John, next time I start with a look in the older posts ;)

I have still an issue : I don't find why I can't adapt the image container height to the image height when I put the buttons in another area :confused:

I put an example based on the original code :



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Document sans nom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<style type="text/css">

#outer0 { left: 0px; }
#show0 {width:200px;}
#controls0 {position: relative; top: -50px; left: 200px; width: 0px; height: 0; overflow: visible; color: #CCCCCC;}
#prev0, #next0 {background-color: #666666; color: #000; border: none;}

</style>

<!--[if IE]>
<style type="text/css">
div#show3 table td, div#show4 table td {
height:21px;
}
</style>
<![endif]-->

<script type="text/javascript">

//If using image buttons as controls, Set image buttons' image preload here true
//(use false for no preloading and for when using no image buttons as controls):
var preload_ctrl_images=true;

//And configure the image buttons' images here:
var previmg='left.gif';
var stopimg='stop.gif';
var playimg='play.gif';
var nextimg='right.gif';


var slides3=[]; //THIRD SLIDESHOW
//configure the below images and descriptions to your own, note optional links, target and window specifications.
slides3[0] = ["1_side.jpg", "", "http://www.google.com", "_new", "top=250, left=300, width=500, height=300, location, resizable, scrollbars"];
slides3[1] = ["2_side.jpg", ""];
slides3[2] = ["3_side.jpg", "", "http://www.dynamicdrive.com"];
slides3[3] = ["5_side.jpg", "", "http://www.msn.com", "_new"];
//optional properties for these images:
slides3.no_descriptions=1; //use for no descriptions displayed
slides3.pause=1; //use for pause onmouseover
slides3.image_controls=1; //use images for controls
slides3.button_highlight='#cccccc'; //onmouseover background-color for image buttons (requires image_controls=1)
slides3.specs='width=300, height=250' //global specifications for this show's new window(s)
slides3.random=1; //set a random slide sequence on each page load
slides3.manual_start=1; //start show in manual mode (stopped)

//Notes:
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.specs will set new window specifications for a slide group, will be overridden by slides#[#][4], if present
//slides#.fadecolor will set fading images background color, defaults to white
//slides#.no_controls will set a slide show with no controls
//slides#.random will set a random slide sequence on each page load
//slides#.delay=3000 will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls

//use below to create a customized onclick event for linked images in a given show:
//slides#.onclick="window.open(this.href,this.target,'top=0, left=0, width='+screen.availWidth+', height='+screen.availHeight);return false;"

</script>

<script src="swiss_2.js" type="text/javascript">

/***********************************************
* Swiss Army Image slide show script - John Davenport Scheuer: http://home.comcast.net/~jscheuer1/
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full original source code
***********************************************/

</script>
</head>

<body>
<table width="600" border="0" align="center" bordercolor="#999999" bgcolor="#666666">
<tr>
<td height="140" align="center" bgcolor="#CCCCCC" style="padding-top:5px;>

<div id="show">
<script type="text/javascript">
new inter_slide(slides3)
</script>
</div></td>
</tr>
</table>
</body>
</html>

jscheuer1
03-30-2009, 01:29 PM
http://home.comcast.net/~jscheuer1/side/files/swiss_h.htm

lio
03-30-2009, 01:38 PM
merci ;)