Solved

slideshow images are distorted

Posted on 2015-01-03
9
95 Views
Last Modified: 2015-01-08
See the slideshow on this page?

http://leafyhead.com/pages/Home.cfm

Notice the images in the slideshow are quite distorted -- increased in size so that they overfill the allotted parameters of the slideshow.

Why is that happening? I've been staring at this for hours. Thank you for any advice.

Eric
0
Comment
Question by:Eric Bourland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
9 Comments
 
LVL 1

Assisted Solution

by:Deniz Dursun
Deniz Dursun earned 375 total points
ID: 40529847
Hello;

I think adaptiveHeight parameter of slideshow can solve your problem. If you can edit kickstart.js, you can change adaptiveHeight parameter false to true.

If you can't edit kickstart.js, please try to put this code any row after than body tag (Home.cfm) for reload slider with new settings:

<script type="text/javascript">
$(document).ready(function(){
	var slider=$('.slideshow').bxSlider();
	e.preventDefault();
	slider.reloadSlider({
		mode: 'horizontal',
		video: true,
		useCSS: true,
		pager: true,
		speed: 500,
		startSlide: 0,
		infiniteLoop: true,
		captions: true,
		adaptiveHeight: true,
		touchEnabled: true,
		pause: 4000,
		autoControls: false,
		controls: false,
		autoStart: true,
		auto: true
	});
});
</script>

Open in new window

0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 40529850
Deniz,

Thank you for your kind and helpful reply.

I will try the script that you suggest.

However, I am not sure where to place this script. I have tried the script inside the <HEAD></HEAD> tag, and after the </BODY> tag. Neither place seemed to have any effect.

What do you suggest?

Thank you for your help. =)

Eric
0
 
LVL 1

Accepted Solution

by:
Deniz Dursun earned 375 total points
ID: 40529853
You are welcome. I hope this code can solve your problem.

You can put that code after than <body> tag or before than </body> tag.

Kind Regards
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Author Comment

by:Eric Bourland
ID: 40529859
Got it!

Hmm ... I tried after the <BODY> tag: http://leafyhead.com/pages/Home.cfm

Looks like the images are still distorted.

Any idea what I could be missing? =)

Thank you again, Deniz.

best from Eric
0
 
LVL 1

Assisted Solution

by:Deniz Dursun
Deniz Dursun earned 375 total points
ID: 40529870
I downloaded your codes and i tried. My code working but first slideshow still running with parameters from kickstart.js.
Kickstart.js catching slideshow class. So, if you change your slideshow class to slideshow2, it will work.

This is your solution:
1.)  Change your slideshow class to slideshow2 (<ul class="slideshow2">)

2.) Put this code after <body> tag:
<script type="text/javascript">
$(document).ready(function(){
	var slider=$('.slideshow2').bxSlider({
		mode: 'horizontal',
		video: true,
		useCSS: true,
		pager: true,
		speed: 500,
		startSlide: 0,
		infiniteLoop: true,
		captions: true,
		adaptiveHeight: true,
		touchEnabled: true,
		pause: 4000,
		autoControls: false,
		controls: false,
		autoStart: true,
		auto: true
	});
});
</script>

Open in new window

0
 
LVL 10

Assisted Solution

by:aboo_s
aboo_s earned 125 total points
ID: 40529873
By distorted do you mean they are stretched by width and height?
if that is the case ,then you should just delete the width and height option you added to your images code:
<li><img src="https://lh5.go...d1.jpg" alt="" width="550" height="350" /></li>

Open in new window

should become:
<li><img src="https://lh5.go...d1.jpg" alt="" /></li>

Open in new window

0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 40529895
Dear aboo_s,

Thanks for your note.

>>>>then you should just delete the width and height option you added to your images code:
Indeed, I tried that already.

These are the correct dimensions for the images: width="550" height="350"

The images are very big ... or, at least, they are magnified.

I think something is going on with the javascript and / or the CSS. The BX Slider has gone a little crazy.

Thank you for the idea, though.

Eric
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 40537820
Friends, I really appreciate your helpful notes. I have simplified code as much as I can; the weird behavior in the slideshow persists. I am going to use another slideshow script -- maybe I can find an all-CSS slideshow.

Thank you again for your thoughtful replies.

best from Eric
0
 
LVL 3

Author Closing Comment

by:Eric Bourland
ID: 40538777
Thank you again, friends, for your help.

Eric
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question