Jump to content

How do i add a search?


MadFly

Recommended Posts

How do i add a search thingy that will search for documents?for example i want to make a small website about tutorials. Then each tutorial is written in a seperate html file or in a word2003 document.How do i make the search button only search a certain directory...and does anyone know why notepad removes all spaces and stuff after i try to edit and save a certain html file? just as i click on save it remove all spaces in the html file, then all the text is bottled up and its hard to make out what is where and who is who when all spaces is removed.

Link to comment
Share on other sites

If you want to add spaces, I suggest you go to XML and see their tutorials. When I was bad at making webpages, I would try to add spaces and it would never show up, and I had to put a word in there which matched the background so noone could see it. But XML will allow spaces. Go to w3schools.com and learn XML.

Link to comment
Share on other sites

no i actually ment that the spaces in notepad is gone. the web page in firefox and iexplorer looks normal.I am using templates mostly for anything web related. and only that certain template does that.the spaces is removed in notepad, and then when i open index.html in notepad again, its just one continuous paragraph.but its ok now. I tried using Frontpage after that happened and frontpage does not screw up the code.

Link to comment
Share on other sites

I don't use Notepad, but check to see what format is being used on the default 'save'.There might be an option to save in Linux or Mac formst that is messing your page up.The difference is in the control characters for a 'new line'.

windows uses "\n\r"Linux or Mac uses "\r" (or "\n" only???) I forget...

Or some such thing like that.

Link to comment
Share on other sites

this is my menu navbar thingy...

<div class="navbg"><div id="navcontainer"><ul id="navlist"><li id="active"><a href="index.html">Home</a></li><li><a href="tutorials/tutorials.html">Tutorials</a></li><li><a href="http://www.webmaster-files.com">Contact</a></li><li><a href="http://www.webmaster-files.com">About</a></li></div>

Now how do i add this next to one of those navbar menu things?

</td><td valign="top" width="140"><table class="right" width="100%" cellpadding="0" cellspacing="0"><tr><th class="right">SEARCH</th></tr><tr><td class="right" valign="top" align="center"><form style="margin-top:4px;margin-bottom:4px" method="get" name="searchform" action="/" target="_blank"><input type="hidden" name="sitesearch" value="websiteNAME" /><input alt="search" type="text" style="width:125px" name="as_q" size="20" /> <input style="width:100px;font-weight:bold" type="submit" value="Press Button"/></form></td></tr></table>

Link to comment
Share on other sites

Well you can get rid of all the table code, and just plonk the form under your menu

<div class="navbg"><div id="navcontainer"><ul id="navlist"><li id="active"><a href="index.html">Home</a></li><li><a href="tutorials/tutorials.html">Tutorials</a></li><li><a href="http://www.webmaster-files.com">Contact</a></li><li><a href="http://www.webmaster-files.com">About</a></li></ul><form style="margin-top:4px;margin-bottom:4px" method="get" name="searchform" action="/" target="_blank"><input type="hidden" name="sitesearch" value="websiteNAME" /><input alt="search" type="text" style="width:125px" name="as_q" size="20" /> <input style="width:100px;font-weight:bold" type="submit" value="Press Button"/></form></div></div>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...