...

View Full Version : corbis.com has a slideshow, how did they do it?



bradyj
06-03-2003, 05:57 PM
corbis (http://www.corbis.com) has a conveyor belt style sideshow that they use on their site, and I have yet to figure out how they did it to fit 100% of the page.

Dynamic Drives conveyor belt system is similiar, yet requires a pixel width in it's variable such as:
var sliderwidth="800px"

Should I:
1) use that script and just make the size extremely large?
2) attempt to use a percentage for the width, if so, will that cause some script problems?

I am not sure If I'm in the right forum here, move me if needed -- thanks everyone!!:thumbsup:

beetle
06-03-2003, 06:50 PM
it's a frame

http://www.corbis.com/UHP_middle.asp

I've done something like this before. Basically - you just animate the DIV, and when an image dissappears from the left, you remove it and add it to the right.

bradyj
06-03-2003, 07:29 PM
Excellent!! Much simpler indeed -- now I will tweek see how it works. Shouldn't be too hard to have a similiar show frameless...

Thanks again beetle :thumbsup:

Kor
06-04-2003, 10:12 AM
On the other hand, generally speaking, you can use the screen.availHeight and screen.availWidth methods to build "liquid" web design, for sizing any element on the page, frames, iframes, tables, whichever..., according to the user's resolution.

screen.availHeight - the height of the screen in pixels minus any GUI stuff such as the windows taskbar
screen.availWidth - the width of the screen in pixels minus any GUI stuff such as the windows taskbar

bradyj
06-04-2003, 04:39 PM
Would that cause the animation to reloop everytime a screen was resized?

Kor
06-05-2003, 09:08 AM
I suppose so, as both functions, the size one and the slide one should be called on onload.

But is it so bad, after all?

:-)

bradyj
06-06-2003, 12:17 AM
Not necessarily -- I was just hoping to avoid more javascript :D



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum