Forum Moderators: phranque
[sierrahorsesales.com...]
[sierrahorsesales.com...]
I know this is a simple path problem, but am in a muddle and getting nowhere. Any advice would be appreciated.
[sierrahorsesales.com...]
try changing
<script language="JavaScript" src="/header.js">
to
<script language="JavaScript" src="../../header.js">
or if that doesn't work
<script language="JavaScript" src="http://www.sierrahorsesales.com/header.js">
the "header.js" file writes the top of your page (but unfortuniately it is not shown when you view source.) It is designed to be used from a particular level, because it prints out...
<img src="picts/stretchbar.jpg" width="100%" height="28">
It is looking for the image and flash in the cgi-bin folder.
cgi-bin/picts/stretchbar.jpg
now you will have to have these same files in 3 locations but it will work if you put it there. not suggested.
So the solution is to put a slash in front of the links in the "header.js". it will then no longer be relative. It will be from the webroot for that site. This should make it work in both locations. It will be using the same files as your "contact.htm" page is.
change
<PARAM NAME=movie VALUE="logo.swf"> to
<PARAM NAME=movie VALUE="/logo.swf">
change
<img src="picts/stretchbar.jpg" width="100%" height="28"> to
<img src="/picts/stretchbar.jpg" width="100%" height="28">
I am pretty sure this is it. Hard to really check it without actually looking at file structure and files.