PDA

View Full Version : Life, The Universe, and the SlideShow borders...


davidweaver
May-15-2007, 11:01 AM
I'm a buddist so there may not be an answer.

4 posts (at least)
http://www.dgrin.com/showthread.php?t=61131
http://www.dgrin.com/showthread.php?p=548513#post548513
http://www.dgrin.com/showthread.php?p=549635#post549635
http://www.dgrin.com/showthread.php?p=549507#post549507
Lot's of reading, and lots of learning.

The posts where Allen was helping PartyinPictureGuy seemed to be the best place to write this:

"What I'm trying to do is limit only the height of the image in the slide show and letting the width to simply be proportional to the image. Hence a '5h x 7w' might be '500px high x 700px wide' and an '10h x 8w' image would become 500px high and 400px wide.

This sounds like what you are trying to do.

Once I get this figured out I want to then work on the CSS and some additional javascript to create a border/frame around the image and to generate a javascript based dropshadow.

That way I don't have to create a bunch of seperate framed images nor do I have to make my images all the same size and then place a frame above or below the image. Let me know if you get this fixed and I'll pass along anything I find out."

Ahhh...most excellent pros and well-knowledged smuggers. I and others seek the answer to this.

:help

Allen
May-15-2007, 11:38 AM
I'm a buddist so there may not be an answer.

4 posts (at least)
http://www.dgrin.com/showthread.php?t=61131
http://www.dgrin.com/showthread.php?p=548513#post548513
http://www.dgrin.com/showthread.php?p=549635#post549635
http://www.dgrin.com/showthread.php?p=549507#post549507
Lot's of reading, and lots of learning.

The posts where Allen was helping PartyinPictureGuy seemed to be the best place to write this:

"What I'm trying to do is limit only the height of the image in the slide show and letting the width to simply be proportional to the image. Hence a '5h x 7w' might be '500px high x 700px wide' and an '10h x 8w' image would become 500px high and 400px wide.

This sounds like what you are trying to do.

Once I get this figured out I want to then work on the CSS and some additional javascript to create a border/frame around the image and to generate a javascript based dropshadow.

That way I don't have to create a bunch of seperate framed images nor do I have to make my images all the same size and then place a frame above or below the image. Let me know if you get this fixed and I'll pass along anything I find out."

Ahhh...most excellent pros and well-knowledged smuggers. I and others seek the answer to this.

:help
What happens when you designate a #ssSlide height and also have in the
show footer code resizeToPhoto = true;

#ssSlide {height: 400px;}

davidweaver
May-15-2007, 03:34 PM
What happens when you designate a #ssSlide height and also have in the
show footer code resizeToPhoto = true;

#ssSlide {height: 400px;}

That is helpful but doesn't yet get what I'm looking for here. If I make slideHeight (Optional Slideshow variable) = ssSlide {height: XXXpx;}

Then I get behavior:

When Height of Image >= 400 AND the ratio recalculation in the JS causes the Width to be >=300 then the spacer.gif x and y dimensions = the dimensions of the photo. This is GOOD :D

When this condition is met I can create a border or picture frame around the image using CSS/ JS or both as it would be tied to ssSlide.

When this condition is not met I will get a spacer.gif image that is NOT the same size as the displayed image.

If I tie the dimensions of ssSlide to a border I will ge the behavior that PartyinPictureGuy and gdp are discussing in this thread you helped on here:

http://www.dgrin.com/showthread.php?p=549635


Thoughts?

Thanks!
David

Dna
May-15-2007, 10:10 PM
An alternative is to set up a private gallery with the photos you want in the slide show all set to the correct size. You can then easily do the border with CSS.
See www.andrewmurdoch.net for an example.

Andrew

davidweaver
May-16-2007, 05:38 AM
An alternative is to set up a private gallery with the photos you want in the slide show all set to the correct size. You can then easily do the border with CSS.
See www.andrewmurdoch.net (http://www.andrewmurdoch.net) for an example.

Andrew

That's exactly what I don't want to do. :-)