Layer 4 copy
doc
tut
blog
forum
doc
tut
blog
forum
home

Upload your PSD file...

Take a quick look at the Guidelines to see how to prepare your PSD file


 

Please wait - we are now uploading and converting your file...

 

Wait! You can upload your PSD, but you aren't logged in! If you submit now, you won't get any of the cool Unlimited features. You'll just get plain XHTML and CSS DIVs. Create a new account to use all the great Unlimited features free for 2 weeks.

Vertical Picture Scrolling

I was trying to figure out if you can make pictures scroll vertically instead of from left to right.
Can anyone help?

Hi Graphicsteam - If you

Hi Graphicsteam -

If you look in the psd2css.js file generated for the regular horizontal scroll, there is a section that looks something like this:

// Scroll vertically by changing 'left' to 'top' and 'width' to 'height
// in the following lines
$('#Layer-7').css( 'left', scrollOffset7 );
$('.Copy-Layer-7').css( 'left', scrollOffset7 - $('.Copy-Layer-7').width() + 1 );
if( scrollOffset7 > $('.Copy-Layer-7').width() )
scrollOffset7 -= $('.Copy-Layer-7').width();

If you follow the instructions there and change the words 'left' to 'top' and the words 'width' to 'height' you'll get vertical scrolling instead of horizontal.

--
Shaun

apply it on photoshop

is there a code where we can put it on the layer? instead of opening the psd2css.js and rewrite that code. thank you..

just send it to my email..
raphadiao@ymail.com

copyright (c) 2009 psd2css Online, Inc.

 

 

User login

Become a Fan of our Facebook Page

Need help or have a question?
support@psd2cssonline.com

| Privacy | Terms of Use |

copyright (c) 2008, 2009, 2010, 2011 psd2css Online, Inc.
Patent Pending

Syndicate content