Price: US $2,750.00 SOLD OUT
Photo Viewer
1929 Ford Model A Tudor
var photo_list = document.getElementById('photo_list');
var mouse_on = 0;
var photoIndexTracker = 0;
var pictures = new Array();
pictures[0] = "http://s3.amazonaws.com/photos.ecarlist.com/a1/bg/N3/4i/f5/Fu/WL/MI/Ny/7D/OA_800.jpg";
pictures[1] = "http://s3.amazonaws.com/photos.ecarlist.com/XO/Nb/2G/c9/OX/wO/19/b7/SH/n0/hg_800.jpg";
pictures[2] = "http://s3.amazonaws.com/photos.ecarlist.com/p1/eC/6l/4K/WL/7u/l3/C3/yA/yU/wQ_800.jpg";
pictures[3] = "http://s3.amazonaws.com/photos.ecarlist.com/bX/xN/6n/la/tl/d0/fL/gj/Eu/vQ/Nw_800.jpg";
pictures[4] = "http://s3.amazonaws.com/photos.ecarlist.com/Mi/4k/NE/ZZ/Fw/Lz/vE/OF/IM/1O/0g_800.jpg";
function scroll_photo_list_up() {
if (mouse_on == 1) {
if( photo_list.scrollTop > 0 ) {
photo_list.scrollTop -= 2;
setTimeout("scroll_photo_list_up()",1);
} else {
mouse_on = 0;
photo_list.scrollTop = 0;
}
}
}
function scroll_photo_list_down() {
if (mouse_on == 1) {
if( ( photo_list.scrollHeight - photo_list.scrollTop ) > 0 ) {
photo_list.scrollTop += 2;
setTimeout("scroll_photo_list_down()",1);
} else {
mouse_on = 0;
photo_list.scrollTop = photo_list.scrollHeight;
}
}
}
function scroll_photo_list_exit() {
mouse_on = 0;
}
function display_previous_photo() {
var photoIndex = photoIndexTracker - 1;
photoIndex = photoIndex < 0 ? ( pictures.length - 1 ) : photoIndex;
display_photo(photoIndex);
}
function display_next_photo() {
var photoIndex = photoIndexTracker + 1;
photoIndex = photoIndex > ( pictures.length - 1 ) ? 0 : photoIndex;
display_photo(photoIndex);
}
var width;
function display_photo(photoIndex) {
photoIndexTracker = photoIndex;
var img = new Image();
img.onload = function(){
var main_picture = document.getElementById('main_picture');
if( !(main_picture) || main_picture.tagName == 'IMG' ){
var aspect = this.width / this.height;
width = width || document.getElementById('main_picture_img').getAttribute('width');
var height = width / aspect;
main_picture = document.createElement('div');
main_picture.setAttribute('id', 'main_picture');
main_picture.style.height = height + 'px';
main_picture.style.width = width + 'px';
main_picture.style.border = '1px solid #999';
document.getElementById('main_picture_img').parentNode.replaceChild(main_picture,document.getElementById('main_picture_img'));
var photo_list = document.getElementById('photo_list');
var photo_list_up = document.getElementById('photo_list_up');
if( photo_list ){
photo_list.style.height = height - photo_list_up.offsetHeight + 3 + 'px';
}
}
//set img height
main_picture.style.background = 'url(' + this.src + ') no-repeat center center';
};
img.src = pictures[photoIndex];
}
function imageholderclass(){
this.over=new Array();
this.down=new Array();
this.src=new Array();
this.store=store;
function store(src, down, over){
var AL=this.src.length;
this.src[AL]=new Image(); this.src[AL].src=src;
this.over[AL]=new Image(); this.over[AL].src=over;
this.down[AL]=new Image(); this.down[AL].src=down;
}
}
var ih = new imageholderclass();
var mouseisdown=0;
function preloader(t){
for(i=0;iCondition: Used Year: 1929 VIN (Vehicle Identification Number): 220 Mileage: 0 Exterior Color: Brown Make: Ford Vehicle Title: Rebuilt, Rebuildable & Reconstructed Model: Model A For Sale By: Dealer Doors: 2 Sub Model: Tudor