Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Remember me

Go Back   Tutorialized ForumsWeb Design & DevelopmentJavascript

Add This Thread To:   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
Unread Tutorialized Forums Sponsor:
Old April 3rd, 2013, 10:53 AM
Dreamer180 Dreamer180 is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
Join Date: Apr 2013
Posts: 1 Dreamer180 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 48 sec
Reputation Power: 0
Dreamweaver Java Search bar Help

PHP Code:
<center><p><form name="jksearch" action="" method="get" onSubmit="jksitesearch(this)">   <input id="hiddenquery" type="hidden" name="q" /> <input name="qfront" type="text" style="width: 200px" value="Describe How you Are Feeling" /> <input type="submit" value="Search" /><br /> </div>  <script type="text/javascript">  // All-in-one Internal Site Search script- By ( // For this and over 400+ free scripts, visit JavaScript Kit- // This notice must stay intact for use  //Enter domain of site to search. var domainroot=""  var searchaction=[ //form action for the 3 search engines "", "", "" ]  var queryfieldname=["q","p","q"] //name of hidden query form for the 3 search engines  function switchaction(cur, index){ cur.form.action=searchaction[index] document.getElementById("hiddenquery").name=queryfieldname[index] }  function jksitesearch(curobj){ for (i=0; i<; i++){ //loop through radio to see which is checked if ([i].checked==true) switchaction([i], i) } document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.qfront.value }   </script>  </p></center> </form> 
Hi guys so I am starting a site. But I have ran into a issue with the search bar.

On the Hompage there is an image and a search bar in the middle looks great but does not work! =(

When I type in a word it goes straight to google. But what I want it to do is go to a page on the site that is linked to that word.

For Example.

On the Hompage a person types in "Page2" then presses GO. The search bar takes them to page 2. And if they type in Page5 and press go they go to page 5. Hope that makes sense. but no matter what I do when I press go the Search bar takes me too the google search engine.

Here is the Script(code)

<center><p><form name="jksearch" action="" method="get" onSubmit="jksitesearch(this)">   <input id="hiddenquery" type="hidden" name="q" /> <input name="qfront" type="text" style="width: 200px" value="Describe How you Are Feeling" /> <input type="submit" value="Search" /><br /> </div>  <script type="text/javascript">  // All-in-one Internal Site Search script- By ( // For this and over 400+ free scripts, visit JavaScript Kit- // This notice must stay intact for use  //Enter domain of site to search. var domainroot=""  var searchaction=[ //form action for the 3 search engines "", "", "" ]  var queryfieldname=["q","p","q"] //name of hidden query form for the 3 search engines  function switchaction(cur, index){ cur.form.action=searchaction[index] document.getElementById("hiddenquery").name=queryfieldname[index] }  function jksitesearch(curobj){ for (i=0; i<; i++){ //loop through radio to see which is checked if ([i].checked==true) switchaction([i], i) } document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.qfront.value }   </script>  </p></center> </form>

I should say too, that the site is not online. It is all in a folder on the desktop! =D

I am sorry about the way that the script is displayed I did not know which one to press either the php or code tags so I went with them both.


Reply With Quote

Viewing: Tutorialized ForumsWeb Design & DevelopmentJavascript > Dreamweaver Java Search bar Help

Developer Shed Advertisers and Affiliates

Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.

© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap