Reputation: 1
I am using the jQuery coinslider, and would like to pass a 100% width argument (rather than the current pixel size arguments). Is there a way to do this?
Thanks!
<script type="text/javascript">// <![CDATA[
(function($) {
$(document).ready(function() {
$('#coin-slider').coinslider({ effect: 'rain',width:680,height:275, delay: 5000,navigation: true, pause:200 });
});
})(j142);
// ]]></script>
<div id="coin-slider"><a href="#" target="_blank"> <img src="img1.jpg" alt="" />
</a> <a href="#"> <img src="#" alt="" />
Rather than pass width 680, I want to pass width 100% (or anything so that it sizes for width of the browser. Does anyone know how to do this?
thanks much in advance!!
Upvotes: 0
Views: 2893
Reputation: 30135
You could do something like that:
$('#coin-slider').coinslider({ effect: 'rain',width:$('#coin-slider').parent().width(),height:275, delay: 5000,navigation: true, pause:200 });
Upvotes: 1