Lukket

Slider pt background cu imagini si un video de pe youtube

Salut.

Caut pe cineva care sa ma poata ajuta cu o problema ce tine mai mult de partea "fluida" a unui slider. Sliderul il am si functioneaza - problema e ca nu reusesc sa redimensionez imaginile si video-ul in functie de dimensiunea ferestrei in asa fel incat sa nu existe spatii goale.

Am aici partea de cod care nu-mi iese...

$(document).ready(function(){

var window_width = $(window).width();

var window_height = $(window).height();

$('a.bg_image_container > img').each(function(){

var image_width = $(this).width();

var image_height = $(this).height();

var window_ratio = window_width / window_height;

var image_ratio = image_width / image_height;

if(window_ratio > image_ratio){

var image_new_width = window_width;

var height_ratio = image_new_width / image_width;

var image_new_height = image_height * height_ratio;

var image_new_width = parseInt(image_new_width);

var top_space = (window_height - image_new_height) / 2;

var top_space = parseInt(top_space);

$(this).css({

width : image_new_width,

height : image_new_height,

top : top_space

});

}else{

var image_new_height = window_height;

var width_ratio = image_new_height / image_height;

var image_new_width = image_width * width_ratio;

var image_new_width = parseInt(image_new_width);

var left_space = (window_width - image_new_width) / 2;

var left_space = parseInt(left_space);

$(this).css({

width : image_new_width,

height : image_new_height,

left : left_space

});

}

});

};

Caut pe cineva serios cu care as putea colabora si la alte proiecte.

Astept sa o rezolvam,

Mihai O.

PLEASE BID ONLY IF YOU ARE ROMANIAN. THANKS.

Færdigheder: CSS, HTML, jQuery / Prototype

Se mere: partea 2, partea 1, video youtube, video ma, si, si c, PT, proiecte, mult, mihaio, la video, imagini, Cu, caut, asa, slider background, html img, css video slider, html video css, video background css html, html video background css, youtube top, html video function, css html slider, video background html css

Om arbejdsgiveren:
( 22 bedømmelser ) Vaslui, Romania

Projekt-ID: #6521810

1 freelancer byder i gennemsnit $25 for dette job

abarissoft2

Dear Sir, we are pleased to inform you that we have studied all the requirements and can deliver the same to u .we already have similar work experience and have worked on similar projects in the past and can deliver Mere

$25 USD på 1 dag
(0 bedømmelser)
0.0
contactUnlimited

Din cate imi dau seama, problema ta se poate rezolva mult mai usor in CSS. Un link catre site ar fi foarte util.

$25 USD på 1 dag
(0 bedømmelser)
0.0