Forum'da ara:
Ara


« Önceki başlık :: Sonraki başlık »  
Yazar Mesaj
Mesaj30.12.2011, 15:15 (UTC)    
Mesaj konusu: google arama motoru kodunu sitemdeki arama koduna uyralama

google arama motoru kodunu sitemdeki arama koduna uyralamak istiyorum

sitemdeki arama kodu
Kod:
<div id="searchformana">
   <form method="get" id="searchform" action="http://bidusun.com/tema/">   
   <div><input type="text" value="Site içi arama yap ..." name="s" id="s" onfocus="if (this.value == 'Site içi arama yap ...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Site içi arama yap ...';}" />   <input type="submit" id="searchsubmit" value="Site içi arama yap ..." />   </div>
   </form>
   </div>
   </ul>


googlenin verdiği arama kodu
Kod:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com.tr/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'tr', style : google.loader.themes.GREENSKY});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl(
      '009381951871470275527:vkqunsnxsxa');

    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
 <style type="text/css">
  .gsc-control-cse {
    font-family: "Trebuchet MS", sans-serif;
    border-color: #ffffff;
    background-color: #ffffff;
  }
  input.gsc-input {
    border-color: #000000;
  }
  input.gsc-search-button {
    border-color: #000000;
    background-color: #ff9966;
  }
  .gsc-tabHeader.gsc-tabhInactive {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-tabHeader.gsc-tabhActive {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-tabsArea {
    border-color: #ffff99;
  }
  .gsc-webResult.gsc-result,
  .gsc-results .gsc-imageResult {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-webResult.gsc-result:hover,
  .gsc-imageResult:hover {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gs-webResult.gs-result a.gs-title:link,
  .gs-webResult.gs-result a.gs-title:link b,
  .gs-imageResult a.gs-title:link,
  .gs-imageResult a.gs-title:link b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:visited,
  .gs-webResult.gs-result a.gs-title:visited b,
  .gs-imageResult a.gs-title:visited,
  .gs-imageResult a.gs-title:visited b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:hover,
  .gs-webResult.gs-result a.gs-title:hover b,
  .gs-imageResult a.gs-title:hover,
  .gs-imageResult a.gs-title:hover b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:active,
  .gs-webResult.gs-result a.gs-title:active b,
  .gs-imageResult a.gs-title:active,
  .gs-imageResult a.gs-title:active b {
    color: #0066CC;
  }
  .gsc-cursor-page {
    color: #0066CC;
  }
  a.gsc-trailing-more-results:link {
    color: #0066CC;
  }
  .gs-webResult .gs-snippet,
  .gs-imageResult .gs-snippet,
  .gs-fileFormatType {
    color: #454545;
  }
  .gs-webResult div.gs-visibleUrl,
  .gs-imageResult div.gs-visibleUrl {
    color: #815FA7;
  }
  .gs-webResult div.gs-visibleUrl-short {
    color: #815FA7;
  }
  .gs-webResult div.gs-visibleUrl-short {
    display: none;
  }
  .gs-webResult div.gs-visibleUrl-long {
    display: block;
  }
  .gsc-cursor-box {
    border-color: #ffff99;
  }
  .gsc-results .gsc-cursor-box .gsc-cursor-page {
    border-color: #ffff99;
    background-color: #ffff99;
    color: #0066CC;
  }
  .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    border-color: #ffff99;
    background-color: #ffff99;
    color: #0066CC;
  }
  .gs-promotion {
    border-color: #ffff99;
    background-color: #ffff66;
  }
  .gs-promotion a.gs-title:link,
  .gs-promotion a.gs-title:link *,
  .gs-promotion .gs-snippet a:link {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:visited,
  .gs-promotion a.gs-title:visited *,
  .gs-promotion .gs-snippet a:visited {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:hover,
  .gs-promotion a.gs-title:hover *,
  .gs-promotion .gs-snippet a:hover {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:active,
  .gs-promotion a.gs-title:active *,
  .gs-promotion .gs-snippet a:active {
    color: #0066CC;
  }
  .gs-promotion .gs-snippet,
  .gs-promotion .gs-title .gs-promotion-title-right,
  .gs-promotion .gs-title .gs-promotion-title-right *  {
    color: #454545;
  }
  .gs-promotion .gs-visibleUrl,
  .gs-promotion .gs-visibleUrl-short {
    color: #815FA7;
  }
</style>
     
Mesaj30.12.2011, 15:20 (UTC)    
Mesaj konusu:

buda css kodndaki kod [/code]#searchformana {
float:right;
width:240px;
height:28px;
display:block;
}

#searchform {
height:28px;
width:240px;
}

#searchform #s {
background:url(http://bidusun.com/tema/wp-content/themes/weblebi2/resim/ara.png) no-repeat;
height:23px;
width:137px;
font-size:11px;
color:#999;
border:none;
margin:6px 5px 0 10px;
padding:4px 7px 2px 5px;
}

#searchform #searchsubmit {
cursor:pointer;
background:url(http://bidusun.com/tema/wp-content/themes/weblebi2/resim/ara-dugme.png) no-repeat left top;
height:28px;
width:60px;
border:none;
text-indent:-999%;
line-height:1px;
}
Kod:
Mesaj30.12.2011, 15:21 (UTC)    
Mesaj konusu:

pardon olmadı
Kod:
#searchformana {
float:right;
width:240px;
height:28px;
display:block;
}

#searchform {
height:28px;
width:240px;
}

#searchform #s {
background:url(http://bidusun.com/tema/wp-content/themes/weblebi2/resim/ara.png) no-repeat;
height:23px;
width:137px;
font-size:11px;
color:#999;
border:none;
margin:6px 5px 0 10px;
padding:4px 7px 2px 5px;
}

#searchform #searchsubmit {
cursor:pointer;
background:url(http://bidusun.com/tema/wp-content/themes/weblebi2/resim/ara-dugme.png) no-repeat left top;
height:28px;
width:60px;
border:none;
text-indent:-999%;
line-height:1px;
}
Mesaj30.12.2011, 15:21 (UTC)    
Mesaj konusu: Re: google arama motoru kodunu sitemdeki arama koduna uyrala

mayhann yazmış:
google arama motoru kodunu sitemdeki arama koduna uyralamak istiyorum

sitemdeki arama kodu
Kod:
<div id="searchformana">
   <form method="get" id="searchform" action="http://bidusun.com/tema/">   
   <div><input type="text" value="Site içi arama yap ..." name="s" id="s" onfocus="if (this.value == 'Site içi arama yap ...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Site içi arama yap ...';}" />   <input type="submit" id="searchsubmit" value="Site içi arama yap ..." />   </div>
   </form>
   </div>
   </ul>


googlenin verdiği arama kodu
Kod:
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com.tr/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'tr', style : google.loader.themes.GREENSKY});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl(
      '009381951871470275527:vkqunsnxsxa');

    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    customSearchControl.draw('cse');
  }, true);
</script>
 <style type="text/css">
  .gsc-control-cse {
    font-family: "Trebuchet MS", sans-serif;
    border-color: #ffffff;
    background-color: #ffffff;
  }
  input.gsc-input {
    border-color: #000000;
  }
  input.gsc-search-button {
    border-color: #000000;
    background-color: #ff9966;
  }
  .gsc-tabHeader.gsc-tabhInactive {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-tabHeader.gsc-tabhActive {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-tabsArea {
    border-color: #ffff99;
  }
  .gsc-webResult.gsc-result,
  .gsc-results .gsc-imageResult {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gsc-webResult.gsc-result:hover,
  .gsc-imageResult:hover {
    border-color: #ffff99;
    background-color: #ffff99;
  }
  .gs-webResult.gs-result a.gs-title:link,
  .gs-webResult.gs-result a.gs-title:link b,
  .gs-imageResult a.gs-title:link,
  .gs-imageResult a.gs-title:link b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:visited,
  .gs-webResult.gs-result a.gs-title:visited b,
  .gs-imageResult a.gs-title:visited,
  .gs-imageResult a.gs-title:visited b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:hover,
  .gs-webResult.gs-result a.gs-title:hover b,
  .gs-imageResult a.gs-title:hover,
  .gs-imageResult a.gs-title:hover b {
    color: #0066CC;
  }
  .gs-webResult.gs-result a.gs-title:active,
  .gs-webResult.gs-result a.gs-title:active b,
  .gs-imageResult a.gs-title:active,
  .gs-imageResult a.gs-title:active b {
    color: #0066CC;
  }
  .gsc-cursor-page {
    color: #0066CC;
  }
  a.gsc-trailing-more-results:link {
    color: #0066CC;
  }
  .gs-webResult .gs-snippet,
  .gs-imageResult .gs-snippet,
  .gs-fileFormatType {
    color: #454545;
  }
  .gs-webResult div.gs-visibleUrl,
  .gs-imageResult div.gs-visibleUrl {
    color: #815FA7;
  }
  .gs-webResult div.gs-visibleUrl-short {
    color: #815FA7;
  }
  .gs-webResult div.gs-visibleUrl-short {
    display: none;
  }
  .gs-webResult div.gs-visibleUrl-long {
    display: block;
  }
  .gsc-cursor-box {
    border-color: #ffff99;
  }
  .gsc-results .gsc-cursor-box .gsc-cursor-page {
    border-color: #ffff99;
    background-color: #ffff99;
    color: #0066CC;
  }
  .gsc-results .gsc-cursor-box .gsc-cursor-current-page {
    border-color: #ffff99;
    background-color: #ffff99;
    color: #0066CC;
  }
  .gs-promotion {
    border-color: #ffff99;
    background-color: #ffff66;
  }
  .gs-promotion a.gs-title:link,
  .gs-promotion a.gs-title:link *,
  .gs-promotion .gs-snippet a:link {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:visited,
  .gs-promotion a.gs-title:visited *,
  .gs-promotion .gs-snippet a:visited {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:hover,
  .gs-promotion a.gs-title:hover *,
  .gs-promotion .gs-snippet a:hover {
    color: #0066CC;
  }
  .gs-promotion a.gs-title:active,
  .gs-promotion a.gs-title:active *,
  .gs-promotion .gs-snippet a:active {
    color: #0066CC;
  }
  .gs-promotion .gs-snippet,
  .gs-promotion .gs-title .gs-promotion-title-right,
  .gs-promotion .gs-title .gs-promotion-title-right *  {
    color: #454545;
  }
  .gs-promotion .gs-visibleUrl,
  .gs-promotion .gs-visibleUrl-short {
    color: #815FA7;
  }
</style>
     




Verdiğiniz ikinci kod zaten sizin sitenize göre ayarlanmış.
Arama yapıldığında sizin sitenizdeki sayfalardan sonuçlar çıkıyor.

______________
"Ya olduğun gibi görün, ya göründüğün gibi ol."
Hz.Mevlana
Mesaj30.12.2011, 15:24 (UTC)    
Mesaj konusu:

ya tamamda ben sitemdeki gibi olmadını istiyorum sitemdeki menünün yanıda ki arama motorun bakarmısnz onu siteme ayarlamak istiyorum tıklağımda diyelim http://mayhann.tr.gg/arama.htm gibi bir sayafada arama yapmasını istiyorum
Mesaj30.12.2011, 15:26 (UTC)    
Mesaj konusu:

bir önceki başlıgında dediğim gibi arama sayfana içeriklerinin hepsini ekle html kodlarda ancak bu şekil de site içi arama yapabilirsin Wink
______________

Mesaj30.12.2011, 15:31 (UTC)    
Mesaj konusu:

pek anlamadım hepsnini ekle derken linklerinimi
Mesaj30.12.2011, 15:33 (UTC)    
Mesaj konusu:

veya google arama motoru nun kodunu eklediğim yerde ara bıtonuna bastığında yeni bir sayafada aramasını nasıl sağlayabilirim
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu