۱۳۹۰/۸/۲۷، ۰۷:۱۲:۴۳ صبح
صفحهها: 1 2
۱۳۹۰/۸/۲۷، ۰۸:۰۵:۳۰ صبح
کد 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>
۱۳۹۰/۸/۲۷، ۰۸:۲۲:۳۹ صبح
اشتباه مي باشد
ممنون
ممنون
۱۳۹۰/۸/۲۷، ۰۸:۵۰:۲۷ صبح
ویرایش شد
نمونه
http://www.tarane-soraha.com/forum/misc.php?page=google
این همون اسکریپت هستش
شرمنده تازه فهمیدم کجاش و میگی
الان روش کار میکنم
به این لینک برید
http://www.google.com/cse/manage/create?hl=en
تنظمات مورد نظر رو انجام بدید
روی next کلیک کنید ، در صفحه بعد قالب مورد نظر رو انتخاب کنید دوباره روی next کلیک کنید
کد ها رو کپی کرده با این قسمت در کد های بالا جایگزین کنید
نمونه
http://www.tarane-soraha.com/forum/misc.php?page=google
این همون اسکریپت هستش
شرمنده تازه فهمیدم کجاش و میگی
الان روش کار میکنم
به این لینک برید
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" />
۱۳۹۰/۹/۱، ۰۸:۰۳:۵۰ صبح
کد 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>
كد صفحه جديد را بايد كدوم قسمت اين كد وارد كنم ؟؟
( باز شدن نتيج جستجو در پنجره جديد )
۱۳۹۰/۹/۱، ۰۸:۲۵:۴۸ صبح
اگه اشتباه نکنم قبل از type باید این کد رو اضافه کنید
target="_blank"
تست کنید .امیدوارم درست گفته باشم
target="_blank"
تست کنید .امیدوارم درست گفته باشم
۱۳۹۰/۹/۱، ۰۸:۲۹:۴۹ صبح
(۱۳۹۰/۹/۱، ۰۸:۲۵:۴۸ صبح)arianik نوشته است: [ -> ]اگه اشتباه نکنم قبل از type باید این کد رو اضافه کنیدشرمنده نشد
target="_blank"
تست کنید .امیدوارم درست گفته باشم
۱۳۹۰/۹/۱، ۰۸:۳۶:۰۵ صبح
دقت کنین اون کارکتر ( " ) که اومده سمت چپ target باید سمت راست blank باشه . اینجا کپی میشه بخاطر rtl بودن جابجا شده . ضمنا قبل از target هم باید یه جای خالی space باشه
اگه جواب نداد دیگه شرمنده
اگه جواب نداد دیگه شرمنده
۱۳۹۰/۹/۱، ۰۸:۴۸:۰۹ صبح
(۱۳۹۰/۹/۱، ۰۸:۳۶:۰۵ صبح)arianik نوشته است: [ -> ]دقت کنین اون کارکتر ( " ) که اومده سمت چپ target باید سمت راست blank باشه . اینجا کپی میشه بخاطر rtl بودن جابجا شده . ضمنا قبل از target هم باید یه جای خالی space باشه
اگه جواب نداد دیگه شرمنده
نشد فداي سرت حالا يه كلك ديگه بهش ميزنم ممنون گل
۱۳۹۰/۹/۱، ۱۳:۲۵:۲۵ عصر
میخواید مثله این صفحه درست کنید؟
http://www.tarane-soraha.com/forum/misc.php?page=google
اگه اینطوره
کدهاتون جایگزین کردم ، فقط قسمت عنوان و که فارسی نوشتم و تصویر و عوض کنید
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_RESULTSET);
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>
کدهاتون جایگزین کردم ، فقط قسمت عنوان و که فارسی نوشتم و تصویر و عوض کنید
صفحهها: 1 2