Web2py Views: Multiple images changing in the background of index?

38 views
Skip to first unread message

Gideon George

unread,
Jun 23, 2014, 5:15:12 PM6/23/14
to web...@googlegroups.com
Please I need a help, this is the first time I am posting here and I am in my journey to be the Africa's number one Web2py enthusiast. I am currently developing my first web2py application and I have less than a week to complete it and head over to a more complex application by next week.

My question to the community is, I want to use two pictures rotating display as my background image in the index. please help me with suggestion on how to go about it.
Thank you.
NB: Example of a similar situation is the index of twitter(i.e before user logged in)

Dave S

unread,
Jul 7, 2014, 1:29:24 PM7/7/14
to web...@googlegroups.com


I don't see a background helper in the chapter on views, so I'd probably play around with the STYLE helper to set the background image.  That should work easily for 1 image, and for changing images I see 2 options: 

1) use a reload timer to refresh the page and load the 2nd image at that time.  Details TBD, and that might not be a smooth transition.

2) use javascript and a timer to rewrite the DOM entry for the background image.  Again, details TBD.

Good luck ... sorry this answer is so late.

 /dps

Reply all
Reply to author
Forward
0 new messages