PDA

View Full Version : my picture keep getting cut



linda_tjo4
08-16-2005, 12:38 PM
------------

Script: DD fade-in slideshow
http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm

I tried the fade-in slideshow. It could work but the problem is my pictures keep getting cut. So, instead of the whole picture, only a corner of it showed up. How do i fix it? I've tried re-sizing my picture and still couldn't work. :eek:

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

jscheuer1
08-16-2005, 02:18 PM
Have you set these two variables correctly?

var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHTIf so, and you are still having that problem:

.

linda_tjo4
08-18-2005, 01:49 AM
Is there anyway i can put the whole picture in instead of having to resize it (width and height)? And also how do i get rid of the link in my pictures?

My blog is http://lindatjoa.blogspot.com/
The pictures are in the bottom right corner.

Thank you.. :p

jscheuer1
08-18-2005, 08:48 AM
OK, here is the relevant part of the code:

var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
fadeimages[0]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong002.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/5d8f759a.jpg", "http://www.google.com", ""] //image with link syntax
fadeimages[2]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong016.jpg", "http://www.javascriptkit.com", "_new"] //image with link and target syntaxTo get rid of the links:

var slideshow_width='140px' //SET IMAGE WIDTH
var slideshow_height='225px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
fadeimages[0]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong002.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/5d8f759a.jpg", "", ""] //plain image syntax
fadeimages[2]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong016.jpg", "", ""] //plain image syntaxTo display the whole image(s) without resizing, we need to adjust the 'slideshow_width' and 'slideshow_height' variables, this will make the slideshow take up a great deal more space on the page but, only because bong002.jpg is so huge (1184x918 pixels). If we instead resize it to be in line with the size of the other two images, it will be 256x198 pixels. We will now have three images:

bong002.jpg 256x198
5d8f759a.jpg 256x228
bong016.jpg 256x192

Not ideal for a slideshow but workable, giving us this for our code:

var slideshow_width='256px' //SET IMAGE WIDTH
var slideshow_height='228px' //SET IMAGE HEIGHT
var pause=3000 //SET PAUSE BETWEEN SLIDE (3000=3 seconds)

var fadeimages=new Array()
//SET 1) IMAGE PATHS, 2) optional link, 3), optional link target:
fadeimages[0]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong002.jpg", "", ""] //plain image syntax
fadeimages[1]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/5d8f759a.jpg", "", ""] //plain image syntax
fadeimages[2]=["http://i6.photobucket.com/albums/y226/linda_tjo4/me/bong016.jpg", "", ""] //plain image syntax

linda_tjo4
08-18-2005, 01:42 PM
yay..... it's fine now... u're great!! love ya..