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
Solved

slideshow images are distorted

Posted on 2015-01-03
9
87 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
  • 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

839 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