 | |  |
 |

Stphnwrt
Novice
Dec 9, 2007, 12:39 AM
Post #1 of 3
(1324 views)
Shortcut
|
|
customising templates
|
Can't Post
|
|
Hi, I've been playing around with search engine here and am trying to change the look of the search form. I am trying to get an image tiled for background. I made the changes in Dreamweaver and all looked fine locally, but once the template search_form.html was uploaded the background doesn't show up. I am pretty sure the code is probably wrong but I don't know html. What am I doing wrong? Any help,please? <html> <head> <title>$_search_title$ Search Results</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"> <!-- body { background-image: url(../../public_html/cgi-bin/backgrounds/background.gif); } --> </style></head> <body bgcolor="#FFFFFF" marginwidth="15" marginheight="15" topmargin="15" leftmargin="15"> <style> <!-- .maintext {font-family:arial,sans-serif} .f,.f:link,.f a:link {font-family:arial,sans-serif; color:#6f6f6f} //--> </style>
(This post was edited by Stphnwrt on Dec 9, 2007, 12:41 AM)
|
|
|  |
 |

Dave
Staff
/ Moderator

Dec 9, 2007, 9:38 AM
Post #2 of 3
(1299 views)
Shortcut
|
|
Re: [Stphnwrt] customising templates
[In reply to]
|
Can't Post
|
|
The image url works on your local machine but not your server because the paths are different. Also, images often don't display in the cgi-bin. Try find the image by itself on your website with your browser. eg: http://www.example.com/cgi-bin/backgrounds/background.gif If it's there but you get an error, try moving it out of the cgi-bin. eg: http://www.example.com/backgrounds/background.gif Then use a absolute url or absolute path instead. Either: http://www.example.com/backgrounds/background.gif or /backgrounds/background.gif Let me know if that works. :) Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Stphnwrt
Novice
Dec 9, 2007, 12:33 PM
Post #3 of 3
(1296 views)
Shortcut
|
|
Re: [Dave] customising templates
[In reply to]
|
Can't Post
|
|
Cool, thanks. That worked great. created a new directory under main search directory called background, added the bg image and directed the url to it and it works.
|
|
|  |
|