مرجع پارسی MyBB
درخواست كد هاي اين جستجو گر - نسخه‌ی قابل چاپ

+- مرجع پارسی MyBB (https://community.mybbiran.com)
+-- انجمن: ارتباط با شما (https://community.mybbiran.com/forum-44.html)
+--- انجمن: درخواست های شما (https://community.mybbiran.com/forum-54.html)
+---- انجمن: سایر درخواست ها (https://community.mybbiran.com/forum-57.html)
+---- موضوع: درخواست كد هاي اين جستجو گر (/thread-7804.html)

صفحه‌ها: 1 2


درخواست كد هاي اين جستجو گر - محمد - ۱۳۹۰/۸/۲۷

سلام يكي بنده را ياري كنه و كد هاي اين جستجو گر را برام بگذاره

دقيقا ميخوام مثل همين جستجو گر اين صفحه باشه

http://hodhodshop.com


ممنون


RE: درخواست كد هاي اين جستجو گر - ms83 - ۱۳۹۰/۸/۲۷

کد php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head profile="http://gmpg.org/xfn/11">
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
titleترانه سراها </title>
</
head>
<
body>

<
div style="position: absolute; width: 223px; height: 100px; z-index: 1; left: 373px; top: 115px" id="layer1" align="center">
<
img border="0" src="http://tarane-soraha.com/pictures/logo/logou.gif">
</
div>
    
        <
div style="position: absolute; width: 616px; height: 50px; z-index: 2; left:219px; top:240px" id="layer2" align="center">
        <
div id="cse-search-form" style="width: 100%;">Loading</div>
<
script src="http://www.google.com/jsapi" type="text/javascript"></script>

<
script type="text/javascript">
  
google.load('search''1', {language 'en'});
  
google.setOnLoadCallback(function() {
    var 
customSearchControl = new google.search.CustomSearchControl('017747414427080374238:wiajahnnaka');
    
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var 
options = new google.search.DrawOptions();
    
options.setSearchFormRoot('cse-search-form');
    
customSearchControl.draw('cse'options);
  }, 
true);
</
script>
<
link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /></div>

        <
div id="cse" style="position: absolute; width:100%; z-index: 3; left: 1px; top: 289px"></div>

<
div style="position: absolute; top: 400px">

        </
body>
</
html



RE: درخواست كد هاي اين جستجو گر - محمد - ۱۳۹۰/۸/۲۷

اشتباه مي باشد

ممنون


RE: درخواست كد هاي اين جستجو گر - ms83 - ۱۳۹۰/۸/۲۷

ویرایش شد


نمونه
http://www.tarane-soraha.com/forum/misc.php?page=google

این همون اسکریپت هستشWink
شرمنده تازه فهمیدم کجاش و میگی

الان روش کار میکنمBig Grin
به این لینک برید

http://www.google.com/cse/manage/create?hl=en

تنظمات مورد نظر رو انجام بدید

روی next کلیک کنید ، در صفحه بعد قالب مورد نظر رو انتخاب کنید دوباره روی next کلیک کنید

کد ها رو کپی کرده با این قسمت در کد های بالا جایگزین کنید

کد php:
<div id="cse" style="width: 100%;">Loading</div>
<
script src="//www.google.com/jsapi" type="text/javascript"></script>
<
script type="text/javascript"
  
google.load('search''1', {language 'en'});
  
google.setOnLoadCallback(function() {
    var 
customSearchControl = new google.search.CustomSearchControl('004609493291384458331:qdvomyxmzui');
    
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    
customSearchControl.draw('cse');
  }, 
true);
</
script>
<
link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" type="text/css" /> 




RE: درخواست كد هاي اين جستجو گر - محمد - ۱۳۹۰/۹/۱

کد php:
<div id="cse" style="width: 100%;">Loading</div>
<
script src="//www.google.com/jsapi" type="text/javascript"></script>
<
script type="text/javascript"
  
google.load('search''1', {language 'en'style google.loader.themes.GREENSKY});
  
google.setOnLoadCallback(function() {
    var 
customSearchControl = new google.search.CustomSearchControl(
      
'010299741138484882506:k0gt0mklkj8');

    
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    
customSearchControl.draw('cse');
  }, 
true);
</
script

كد صفحه جديد را بايد كدوم قسمت اين كد وارد كنم ؟؟
( باز شدن نتيج جستجو در پنجره جديد )


RE: درخواست كد هاي اين جستجو گر - arianik - ۱۳۹۰/۹/۱

اگه اشتباه نکنم قبل از type باید این کد رو اضافه کنید
target="_blank"

تست کنید .امیدوارم درست گفته باشم


RE: درخواست كد هاي اين جستجو گر - محمد - ۱۳۹۰/۹/۱

(۱۳۹۰/۹/۱، ۰۸:۲۵:۴۸ صبح)arianik نوشته است: اگه اشتباه نکنم قبل از type باید این کد رو اضافه کنید
target="_blank"

تست کنید .امیدوارم درست گفته باشم
شرمنده نشد SadSadSad



RE: درخواست كد هاي اين جستجو گر - arianik - ۱۳۹۰/۹/۱

دقت کنین اون کارکتر ( " ) که اومده سمت چپ target باید سمت راست blank باشه . اینجا کپی میشه بخاطر rtl بودن جابجا شده . ضمنا قبل از target هم باید یه جای خالی space باشه

اگه جواب نداد دیگه شرمنده


RE: درخواست كد هاي اين جستجو گر - محمد - ۱۳۹۰/۹/۱

(۱۳۹۰/۹/۱، ۰۸:۳۶:۰۵ صبح)arianik نوشته است: دقت کنین اون کارکتر ( " ) که اومده سمت چپ target باید سمت راست blank باشه . اینجا کپی میشه بخاطر rtl بودن جابجا شده . ضمنا قبل از target هم باید یه جای خالی space باشه

اگه جواب نداد دیگه شرمنده

نشد فداي سرت حالا يه كلك ديگه بهش ميزنم ممنون گل


RE: درخواست كد هاي اين جستجو گر - ms83 - ۱۳۹۰/۹/۱

میخواید مثله این صفحه درست کنید؟

http://www.tarane-soraha.com/forum/misc.php?page=google


اگه اینطوره

کد php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head profile="http://gmpg.org/xfn/11">
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>جستجو در ترانه سراها</title>
</
head>
<
body>
<
div style="position: absolute; width: 223px; height: 100px; z-index: 1; left: 373px; top: 115px" id="layer1" align="center">
<
img border="0" src="http://tarane-soraha.com/pictures/logo/logou.gif">
</
div>
    
        <
div style="position: absolute; width: 616px; height: 50px; z-index: 2; left:219px; top:240px" id="layer2" align="center">
        <
div id="cse" style="width: 100%;">Loading</div>
<
script src="//www.google.com/jsapi" type="text/javascript"></script>
<
script type="text/javascript"
  
google.load('search''1', {language 'en'style google.loader.themes.GREENSKY});
  
google.setOnLoadCallback(function() {
    var 
customSearchControl = new google.search.CustomSearchControl(
      
'010299741138484882506:k0gt0mklkj8');

    
customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESU​LTSET);
    
customSearchControl.draw('cse');
  }, 
true);
</
script
<
link rel="stylesheet" href="//www.google.com/cse/style/look/default.css" type="text/css" />
      

        <
div id="cse" style="position: absolute; width:100%; z-index: 3; left: 1px; top: 289px"></div>

<
div style="position: absolute; top: 400px">

        </
body>
</
html

کدهاتون جایگزین کردم ، فقط قسمت عنوان و که فارسی نوشتم و تصویر و عوض کنید