Monday, 25 January 2016

HOW TO CREATE A SEARCH ENGINE FOR YOUR WEBSITE

01:10

 first of all go to following url:


enter your  gmail id & password & make login

(2)then  click on add  button :

(3)after that   enter your site  url  for   example    
https://www.phpdevelopemnttricks.blogspot.com  and select  language and enter name of search engine  then click on Create ..


(4)then your will  for  following to get your code :

(5)after click on Get code   you will see following code just copy and paste inside your  <div > tag where you want to display search engine box ..

(6)here is the sample  html  code for  example :
<html>
<body>
<div>
<script>
  (function() {
    var cx = '013461944738121217145:ogsz8ox40jm';
    var gcse = document.createElement('script');
    gcse.type = 'text/javascript';
    gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//cse.google.com/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
</div>
</body>
</html>

output :


Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

3 comments:

  1. Good article. great information. Thanks for sharing this article. Really useful for me to understand about PHP create search engine box. Best PHP training in Bangalore

    ReplyDelete
  2. Really very nice article. it is so helpful and informative for student thanks for sharing this nice article..
    PHP training institute in delhi

    ReplyDelete

PHP Training Mumbai, PHP MySQL Training Mumbai, PHP Course Mumbai, PHP Institute Mumbai

 

© 2013 PHP TRAINING IN MUMBAI BY OM SIR . All rights resevered. Designed by OM SIR

Back To Top