index.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Carousel-Slideshow</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  6. <link rel="stylesheet" href="css/base_s40.css" type="text/css" />
  7. <style type="text/css">
  8. .container {
  9. width: 152px;
  10. height: 95px;
  11. overflow: hidden;
  12. border: solid;
  13. }
  14. .strip {
  15. width: 608px;
  16. -webkit-transition: margin-left 1.0s linear;
  17. }
  18. .im0 {
  19. margin-left: 0px;
  20. }
  21. .im1 {
  22. margin-left: -152px;
  23. }
  24. .im2 {
  25. margin-left: -304px;
  26. }
  27. .im3 {
  28. margin-left: -456px;
  29. }
  30. .hide {
  31. display: none;
  32. }
  33. .show {
  34. display: block;
  35. }
  36. .hlight{
  37. font-size: 1.3em;
  38. margin-top: 10px;
  39. }
  40. .navi{
  41. width: 65px;
  42. height: 30px;
  43. margin-bottom: 5px;
  44. margin-top: 5px;
  45. }
  46. .mgin{
  47. margin-left: 5px;
  48. }
  49. </style>
  50. <meta name="Generator" content="Nokia WDE 3.2.0" />
  51. </head>
  52. <body>
  53. <div class="header_background">
  54. <table summary="" class="header_table" cellpadding="0" cellspacing="0">
  55. <tr>
  56. <td class="app_name">Slideshow</td>
  57. <td class="header_search"><img alt="Home" src="img/header_home.png"/></td>
  58. </tr>
  59. </table>
  60. </div>
  61. <div id="content" class="mgin">
  62. <div id="carousel">
  63. <div class="hlight">
  64. Carousel
  65. </div>
  66. <div id="btns">
  67. <button class="navi" onclick="mwl.iterateClass('#images', 'im', 'prev', 4, false, null);">Prev</button>
  68. <button class="navi mgin" onclick="mwl.iterateClass('#images', 'im', 'next', 4, false, null);">Next</button>
  69. </div>
  70. <div class="container">
  71. <div class="strip im0" id="images">
  72. <table cellspacing="0" cellpadding="0" border="0" summary="Images Table">
  73. <tr>
  74. <td id="t2">
  75. <img src="img/ClownFish_sm.jpg" alt="Clown Fish"/>
  76. </td>
  77. <td id="t1">
  78. <img src="img/Cirques_sm.jpg" alt="Cirques"/>
  79. </td>
  80. <td id="t3">
  81. <img src="img/Stones_sm.jpg" alt="Stones"/>
  82. </td>
  83. <td id="t4">
  84. <img src="img/Summit_sm.jpg" alt="Summit"/>
  85. </td>
  86. </tr>
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. <!--<div id="hidden" class="hide"></div>-->
  92. <div class="hlight">Slideshow - 2 sec interval</div>
  93. <div id="slideshow">
  94. <button class="navi" onclick="mwl.setGroupNext('#images_forward_no_animation', 'show', 'hide', 'next');mwl.timer('timer1', 2000, 0, 'mwl.setGroupNext(\'#images_forward_no_animation\', \'show\', \'hide\', \'next\');');">Start</button>
  95. <button class="navi mgin" onclick="mwl.stopTimer('timer1');">Stop</button>
  96. <div id="images_forward_no_animation">
  97. <div id="img1_next" class="hide">
  98. <img src="img/chic1.jpg" alt="Chick 1"/>
  99. </div>
  100. <div id="img2_next" class="show">
  101. <img src="img/chic2.jpg" alt="Chick 2"/>
  102. </div>
  103. <div id="img3_next" class="hide">
  104. <img src="img/chic3.jpg" alt="Chick 3"/>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </body>
  110. </html>