i am copying over an existing site for a customer http://www.acrisoils.co.uk/ is the original website which works fine, http://www.applmh.co.uk/ is my version of this, the relevant scripts have been copied over from what i can tell, IE displays my version correctly whilst chrome and firefox throw an error i belive the affending one is that "dtree" is not defined, can anyone point me in the right direction? thanks all
When you say you're copying the site, do you mean that you're downloading the files from the original site, and attempting to adapt them so that they'll work on their new home? I'm having a bit of trouble what's going on here, to be honest. I've had a look at the source code for each site. I see you've got quite a few scripts linked into to the web page, but I'm not sure what purpose they serve.
sorry I was tired and that wasnt very clear ! yes I have grabbed the source code from the original site and now need to adapt this for their intended new host. i thought the JS was outputting the main nav bar but i could be wrong. ok ill try and comment out all scripts and work on the CSS, thanks for your reply.
Hi again. Just been having a play around with the code - downloaded the CSS and images to my computer so that I could work with a local version of the site. Which provided a useful clue. Usually I use wget's recursive download function to easily grab whole websites (http://www.linuxjournal.com/content/...-web-site-wget tells you how to do it). With this website it wouldn't do it, so I had to manually copy and paste the stylesheet & images URLs. Which was when I noticed that the paths in the HTML document used Windows-style backslashes rather than Unix-style forward slashes.
i.e. the stylesheet links were of the form
So - I've never seen this before, but I thought I'd try replacing the backslashes with forward slashes. Which seems to have sorted it out.
The stylesheets section of my version of the site now looks like this: http://pastebin.com/5SUTT26F --
If you just find and replace all of the backslashes with forward slashes that should hopefully resolve your problem.
I don't have IE on my computer - doesn't run on Linux! - but the only browser that would display it correctly with the Windows-style paths was Opera.
Yeah, that seemed to sort it out for me. The only other thing I changed on my local copy of the files was to add a closing </html> tag - which was missing.
Oh, and I've just noticed that there's no <body> tag. But given that you've run it through a validator you'll have noticed that.
If you ensure that your HTML is more or less valid - invalid HTML tends to lead to unpredictable behaviour - and change the \'s to /'s in the paths to your CSS files and images, then try clearing your cache and reloading the page. Hope it works.
thanks all your time here, sadly i still think i got somethign wrong, replaced all index css reference to "/" end html and body tags put in, cleared my cache, still appears the same, if you get chance would you take another look? many thanks.