Log in

View Full Version : unrolling news on main site



saif3r
01-29-2009, 11:20 PM
Hello, im looking for a script to make news on my site like this:
http://www.pg.gda.pl/bks/ (click więcej>> to unroll)

i would like to make the same on my site, so i could unroll my news. does any one know the script?
i will be gratefull for any help, cheers.

Medyman
01-29-2009, 11:49 PM
http://www.dynamicdrive.com/dynamicindex17/animatedcollapse.htm

saif3r
01-29-2009, 11:54 PM
kewl thanks. but how do i have to make if i wanna see first 3 lines of the news, and slide down the rest? i mean if i want those 3 lines always visible.

oh and btw, i need it for php site

Medyman
01-30-2009, 12:05 AM
<div id="intro">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent at sem. Donec dictum placerat enim. Donec eget pede. Donec dignissim velit vestibulum nibh bibendum venenatis. Aliquam condimentum. In pretium purus sit amet leo. Nullam justo dui, imperdiet a, congue et, dapibus at, felis.
<a href="javascript:animatedcollapse.show('more')"">Read more...</a>
</div>

<div id="more">
Maecenas sed nisl eget felis condimentum lacinia. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque tristique est ac tortor. Sed sagittis. Nullam enim erat, porta ac, mattis ac, accumsan non, libero. Aliquam vel elit id lacus malesuada molestie. Curabitur nibh ligula, gravida a, mollis ac, sagittis ac, felis. Quisque sed odio dapibus mi accumsan porta. Suspendisse fermentum interdum sapien. Nunc ac dolor ac purus pretium euismod.
</div>

I forgot to mention that you should also hide the "more" div at the start with CSS. Something like #more { display:none; }

saif3r
01-30-2009, 01:11 AM
could u explain me step by step how to make it on php site?

saif3r
02-06-2009, 09:10 PM
im trying to do this, but it wont work... i got it on my site, but it dont want to expand...