• 04-01-2013, 16:13:36
    #1
    <script type="text/javascript">
    				 
    				 (function() {
    					var wf = document.createElement('script');
    					wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
    						'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    					wf.type = 'text/javascript';
    					wf.async = 'true';
    					var s = document.getElementsByTagName('script')[0];
    					s.parentNode.insertBefore(wf, s);
    				 })();
    				 
    				$(document).ready(function() {
    					$.noConflict();					 									
    					
    					jQuery('#banner-example-1').kenburn(
    						{										
    							width:980,
    							height:736,
    							
    							thumbWidth:210,
    							thumbHeight:122,
    							thumbAmount:4,							
    							thumbSpaces:5,
    							thumbMargin:5,
    							
    							shadow:'false',
    							
    							parallaxX:0,
    							parallaxY:10,
    							captionParallaxX:-40,
    							captionParallaxY:2,
    							
    							touchenabled:'off',
    							pauseOnRollOverThumbs:'off',
    							pauseOnRollOverMain:'off',
    							
    							timer:10
    						});
    						
    						
    					
    						
    			});

    Aşağıdaki değer otomatikmen piksel oluyor, bunu % olarak nasıl yapabiliriz?
    %100 yapmak istiyorum yani sayfayı kaplasın, bu şekilde yarım çıkıyor.
    Yardım edeceklere şimdiden teşekkürler.

    					width:980,
  • 04-01-2013, 16:45:47
    #2
    width:100%,
    yapsan olur bence
  • 04-01-2013, 16:52:11
    #3
    denedim olmadı, yüzde koyunca css den bakınca 100%px oluyor..
  • 04-01-2013, 18:22:10
    #4
    Alıntı
    width: window.screen.width,
    şeklinde yapabilirsiniz.
  • 04-01-2013, 18:27:09
    #5
    çok teşekkürler sitede oldu ama iphone da hala yarım görünüyor
  • 04-01-2013, 18:33:26
    #6
    CooL adlı üyeden alıntı: mesajı görüntüle
    çok teşekkürler sitede oldu ama iphone da hala yarım görünüyor
    hocam iphone için hiç kodlama yapmadım ama böyle dener misin?

    var isiPhone = navigator.userAgent.toLowerCase().indexOf("iphone");
    if(isiPhone > -1) {
    	// eğer sistem iphone ise gerçekleşecek olan koşul.
    } else {
    	var gen = window.screen.width;
    }
    Alıntı
    width: gen,