what.html 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. {{right_sidebar_enabled = True}}
  2. {{extend 'layout.html'}} {{import os}}
  3. {{=get_content('whyweb2py')}}
  4. {{block right_sidebar}}
  5. <center>
  6. <!--
  7. <h3 class="feature-title">SITES POWERED BY WEB2PY</h3>
  8. <a href="http://web2py.com/poweredby"><img class="frame" id="img1" width="200px"/></a>
  9. <a href="http://web2py.com/poweredby"><img class="frame" id="img2" width="200px"/></a>
  10. <a href="http://web2py.com/poweredby"><img class="frame" id="img3" width="200px"/></a>
  11. <a href="http://web2py.com/poweredby"><img class="frame" id="img4" width="200px"/></a>
  12. <a href="http://web2py.com/poweredby"><img class="frame" id="img5" width="200px"/></a>
  13. <a href="http://web2py.com/poweredby"><img class="frame" id="img6" width="200px"/></a>
  14. <a href="http://web2py.com/poweredby"><img class="frame" id="img7" width="200px"/></a>
  15. <a href="http://web2py.com/poweredby"><img class="frame" id="img8" width="200px"/></a>
  16. -->
  17. </center>
  18. <script>
  19. function showimages() {
  20. var images = {{=images}};
  21. rotation = Math.floor(Math.random()*(images.length-8));
  22. for(var i=0; i<8; i++)
  23. jQuery('#img'+(i+1)).attr('src',images[i+rotation]);
  24. }
  25. jQuery(function(){showimages();});
  26. </script>
  27. {{end}}