I am building a iPhoto like (Read rip-off) interface for thumbnails and I am having a couple problems that I thought some one on the list might be able to assist me on ... 

first off here is the page: http://v4.incontrolsolutions.com/galltest/

I am no _javascript_ whizz and I am sure there is a FAR more efficient way to do what I am trying. Having said that, the 2 things I was looking for advise are :

1) The Slider... I must be missing something as I cant for the life of me figure out how to get the range to be from .25 - 1. Setting the minimum and maximum dont seem to have the effect I would expect. 

<div id="track" style="position:absolute; left:25px; top:10px; width:150px; height:10px;">
     <div id="scaller" style=" width:10px; height:15px; background-image: url(slidder2.png)"></div>
</div>

var scalebar = new Control.Slider('scaller', 'track',{
  sliderValue:1,
  minimum:.25,
      onSlide:function(v){doscale(v)},
      onChange:function(v){doscale(v)}
});


2) I am using getElementsByClassName to get all the images to scale, and then running a "for" loop and then resizing each image's containing div 

even with only 25 images in there now, it is a little choppy. There must be a better/more efficient way to scale all elements of a given class... 

Oh ya, I have only tested this on Firefox, so I have no idea what will happen in IE!!! 

Thanks!!! 

______________________________________________________________________

Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com 




_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to