Hello oOWhiteOo,
To my very limited knowledge of Dreamweaver, there is no function that will add password protection or search functions. However, there is hope!
To add search functionality, Google offers a tool which will allow you to do just that. After Google has indexed your site's pages, insert the following code below into the location you want a Google search bar, replacing any instances of YOURSITENAME to the URL of your site.
<!-- SiteSearch Google -->
<FORM method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.com/">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif"
border="0" ALT="Google"></A>
</td>
<td>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=btnG VALUE="Google Search">
<font size=-1>
<input type=hidden name=domains value="YOUR DOMAIN NAME"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> YOUR DOMAIN NAME <br>
</font>
</td></tr></TABLE>
</FORM>
<!-- SiteSearch Google -->
To password protect a page, I have written a little JavaScript that will help you out:
<script type="text/css" language="JavaScript">
var password = "PASSWORD";
var passenter = input('Please enter the password.', 'Password here');
if(+passenter+ != +password+) { history.go(-1); }
</script>
USAGE OF THIS SCRIPT:
Place it immediately after the <head> tag of the page you want to protect. Replace "PASSWORD" with the desired password.
WARNING:
This script is extremely insecure, and should only be used if you don't mind a smart person coming along and easily finding your password or bypassing the if() loop (in this script, neither is hard to do). If you have stuff that needs to be kept private, look into a PHP script to get the job done. Or, get someone to do a custom PHP script to fit your needs. Also, this script hasn't been tested, it may require a little tweaking to get it functioning properly.
I hope this helps you!
