Thanks for the help John. It is exactly what I was looking for, if I can get it to work
. I went to the above url and saved the html page locally on my d: drive in the "Google Pretty Search Text Box" dir. I also have a sub dir "prettySearchFiles" that contains the following files
_classPrettySearch.js
_jquery-1.js
d.gif
pretty-search.css
search-spinner.gif
The mail html page has the following code and reference files:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><input type="search" /></title>
<link rel="stylesheet" href="/prettySearchFiles/pretty-search.css" type="text/css">
<script src="/prettySearchFiles/_jquery-1.js" type="text/javascript" charset="utf-8"></script>
<script src="/prettySearchFiles/_classPrettySearch.js" type="text/javascript" charset="utf-8"></script>
</head><body>
<form method="get" action="/">
<div style="width: 129px;" class="pretty-search"><div class="ps-left"></div><div class="ps-container"><div class="ps-right"></div><span
style="display: inline;" class="ps-placeholder">Google</span>
<input style="outline-width: 0pt;" class="ps-input" autocomplete="off" name="query" type="text">
<span class="ps-spinner"><img src="/prettySearchFiles/search-spinner.gif" alt="*" width="11" height="11"></span>
<span style="display: none;" class="ps-clear"><img src="/prettySearchFiles/d.gif" alt="x" width="11" height="11"></span></div></div>
</form>
</body></html>
However, I am not still getting the expected results. It could be because the file "pretty-search.css" have reference to some background image files as follows:
background: url(../i/search-input.png) or progid
XImageTransform.Microsoft.AlphaImageLoader(src='./i/search-input.png and I am not sure where to get these from.
BTW, what does have "./" or "../" mean in the path? for example if I have a url as http://www.dynamicdrive.com/forums/, then what would url would be for url(../i/somefilename.css) mean? I am newbie to programing, hence I ask the question.
And one last question, I have noticed that when testing JSctipt or ActiveX code, IE comes up with the security bar at the top, is there a way to avoid this while testing own code locally?
I have attached a file with screen shots of both items I have listed above. Again, many thanks for all your help on this.
Bookmarks