Hi,
The while loop seems to work for me, but I think that your issue is in your css rules.
Some elements are hidden with the opacity parameter.
Without knowing exactly what you want to get, it's hard to give you a fix.
Feel free to contact me, if you need more help to debug your code.
Regards,
Dominique VINCENT
http://www.toitl.com/