Page 1 of 1

Only Background shows in browser

Posted: Thu Jan 03, 2013 11:27 am
by grantic
Hi,
I used the Highslide Editor to create a zipped style sheet, copied and pasted the JS and CSS lines into the <head> and amended the <a> as instructed. The intention was to link some text to a small jpg image. On a test site it worked well but whenever I do the same to my main site the browser will not display anything but the background. No text, no images nothing but the background.

Having done a lot of testing and comparing I have realised the test site is HTML 4.01 while the main site is XHTML 1.0. Being a novice at this game I have searched the help and FAQs but cannot find any advice on how best to address the issue. Please can you help?

Regards

grantic

PS I have also sent this message directly to Torstein

Re: Only Background shows in browser

Posted: Thu Jan 03, 2013 12:08 pm
by EarlyOut
The problem is almost certainly not with the DOCTYPE. We need to see your live page.

(Torstein generally doesn't provide this kind of help.)

Re: Only Background shows in browser

Posted: Thu Jan 03, 2013 12:56 pm
by grantic
Here it is...
http://www.jenniegrantmusic.com/g1.html

Within it you'll find a link to g1srex1.jpg which should open using Highslide.

Thanks

Re: Only Background shows in browser

Posted: Thu Jan 03, 2013 1:09 pm
by EarlyOut
No matter what DOCTYPE you're using, <script> tags are not self-closing. Try replacing your first few lines with this:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Grade 1</title>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
<script type="text/javascript" src="highslide/highslide-full.js"></script>
<script type="text/javascript" src="highslide/highslide.config.js"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
You're also using a very old version of Highslide JS, which isn't going to work in all browsers (especially not IE9). Download version 4.1.13.

Re: Only Background shows in browser

Posted: Thu Jan 03, 2013 1:21 pm
by grantic
That is great thank you.
I am using Kompozer and for some reason it deletes the </script> tag if it appears on the same line as the opening tag. If I put it on a new line below it works.
Not sure what to do about your last comment. I used the Highslide Editor yesterday. How should I go about downloading version 4.1.13?

Re: Only Background shows in browser

Posted: Thu Jan 03, 2013 1:37 pm
by grantic
OK, I've downloaded 4.1.13. I am sure I can get the effect I want now.
Thanks for all your help.
grantic