Forum Moderators: open

Message Too Old, No Replies

Slideshow image size consistency

         

ksmith3

6:55 pm on May 29, 2005 (gmt 0)

10+ Year Member



I am having problems with keeping three image sizes consistent in a slideshow; one, in particular, is distorted while the other two are fine. Each of the two are 170x130, but the other is 130x170 and any variations I attempt distorts the other image. The script has a place for image size for the FIRST item in the slideshow ( see below ) but I can't figure out how to either 1) make them all the same size or 2) identify the image differences in the script so they display properly.

Hope this makes sense. Any ideas?

--------------

<!-- SLIDESHOW SCRIPT -->

<!--PART TWO -->

<a href="javascript:gotoshow()"><img src="http://www.domainname/images/picture1.jpg" name="slide" border=0 style="filter:blendTrans(duration=3)" width =170 height =130></a>

<script language="JavaScript1.1">
<!--

var whichlink=0
var whichimage=0
var blenddelay=(ie)? document.images.slide.filters[0].duration*1000 : 0
function slideit(){
if (!document.images) return
if (ie) document.images.slide.filters[0].apply()
document.images.slide.src=imageholder[whichimage].src
if (ie) document.images.slide.filters[0].play()
whichlink=whichimage
whichimage=(whichimage<slideimages.length-1)? whichimage+1 : 0
setTimeout("slideit()",slidespeed+blenddelay)
}
slideit()

//-->
</script>

Bernard Marx

10:32 pm on May 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The easiest way is to remove the width & height attributes from the image element that is used for the display.

ksmith3

5:02 am on May 30, 2005 (gmt 0)

10+ Year Member



Thanks. I tried that, but the image that is distorted moves from left to right during the slideshow; it's very distracting. I thought it might have something to do with the difference in image size ( 8 - 10k vs 50k ) but I found a more compatible image, installed it, but the movement was still evident.

Sigh.

ksmith3

6:58 am on May 30, 2005 (gmt 0)

10+ Year Member



My son figured out a solution! We removed the attributes, then saved new images for the slideshow, each of which contained defined parameters of 170x170. We reinstalled the new images; no movement, no size problems.

Thanks for listening...........