Topic: Background image still not working

I have tried EVERYTHING, and im going crazy.

here is my code in the files ..... HTML

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
html>
head>
    meta http-equiv="content-type" content="text/html; charset=utf-8">
    title>Sportbikes</title>
/head>

body>


  background-image: url ="a.jpg";
  background-repeat: repeat;>


    !--START SIMPLEVIEWER EMBED -->
    script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    script type="text/javascript">
    jQuery(document).ready(function () {
        SV.simpleviewer.load('sv-container', '100%', '100%', '222222', true );
    });
    /script>
    div id="sv-container"></div>
    !--END SIMPLEVIEWER EMBED -->

/body>
/html>

and the XML ......

?xml version="1.0" encoding="UTF-8"?>
simpleviewergallery

    backgroundURL="a.jpg"
    useFlickr="false"
    resizeOnImport="true"
    cropToFit="false"

>
  image imageURL="images/AAS1153.jpg"
    thumbURL="thumbs/AAS1153.jpg"
    linkURL="images/AAS1153.jpg"
    linkTarget="_blank">

What did I do wrong? I have a copy of the a.jpg in both the httpdocs and images directories???
Im lost.

Re: Background image still not working

and if I change the 222222 to transparent the screen just turns white.....

Last edited by random944 (2011-01-12 23:33:01)

Re: Background image still not working

You'll need to set your background image using CSS in the <head> section of your HTML page.
See here for details: http://www.w3schools.com/css/css_background.asp
eg.

<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Sportbikes</title>
<style type="text/css">
body {
  background-image: url('a.jpg');
  background-repeat: repeat;
}
</style>
</head>

Then use:

SV.simpleviewer.load('sv-container', '100%', '100%', 'transparent', true);

Or, alternatively, use the backgroundURL option as described here: http://simpleviewer.net/simpleviewer/pr … .html#back
If you still encounter difficulties, please post a URL to your gallery.

Steven Speirs
SimpleViewer Support Team.

Re: Background image still not working

Ok I changed the code WORD for WORD what yours is, and now the background is white ?!?!?!?!

Re: Background image still not working

HOLY i figered it out !!!!!!!!!!!!!!1