User:Jeremy/sandbox: Difference between revisions

From WikiMSK
No edit summary
No edit summary
Line 3: Line 3:
    
    
</div>
</div>
</html>
<script>
<html>
// how to use the funciton on line 94
<script type="text/javascript">
// for questions email felix@demont.is
 
var images10 = [
var images10 = [
   "https://c1.staticflickr.com/5/4408/36911638800_7f554b122f_o.jpg",
   "https://c1.staticflickr.com/5/4408/36911638800_7f554b122f_o.jpg",
Line 18: Line 19:
   "https://c1.staticflickr.com/5/4348/36911638180_551e1c2257_o.jpg"
   "https://c1.staticflickr.com/5/4348/36911638180_551e1c2257_o.jpg"
];
];
var images19 = [
var images19 = [
   "https://images.radiopaedia.org/images/6091552/38c51920dfab2057b870c5ee2689c9_big_gallery.jpg",
   "https://images.radiopaedia.org/images/6091552/38c51920dfab2057b870c5ee2689c9_big_gallery.jpg",
Line 74: Line 74:
   "https://images.radiopaedia.org/images/2717473/2064ff162a283de5891104202d2790_big_gallery.jpg"
   "https://images.radiopaedia.org/images/2717473/2064ff162a283de5891104202d2790_big_gallery.jpg"
];
];


images = images10;
images = images10;
Line 122: Line 123:
   self.scrollobject.style.position = 'absolute';
   self.scrollobject.style.position = 'absolute';
   self.scrollobject.style.zIndex = '2';
   self.scrollobject.style.zIndex = '2';
   self.img_count = (self.img_array.length > 15) ? self.img_array.length : 15;
   if (self.img_array.length > 15){
  self.img_count = self.img_array.length;
  } else {
  self.img_count = 15;
  }
   self.scrollobject_height = Math.floor( 0.1 * self.img_count * self.height_number );
   self.scrollobject_height = Math.floor( 0.1 * self.img_count * self.height_number );
    
    

Revision as of 19:01, 20 October 2022