Realising that this is outside the scope of dspace, we have a problem
related to a javascript for our xmlui on ie. The following code we find
works perfectly in firefox, but does not display the background image in
ie (specifically IE6, just tested in IE7 and 8 and it works fine). This
is a script to display a random background image on the load of the
page.
 
The code is:
 
   <div class="TSbannerImg" id="TSbannerImg">
    <script>
     maximumBannerImages = 12;
     bannerNumber = Math.floor(Math.random()*maximumBannerImages);
     document.getElementById('TSbannerImg').style.backgroundImage =
'url("/themes/TerritoryStories/images/random/ts_MidImg'+bannerNumber+'.j
pg")';
    </script>
   </div>
 
and in the css:
 
.TSbannerImg {
 background-image: url("../images/random/ts_MidImg1.jpg");
 background-repeat: no-repeat;
 padding-top: 150px;
}

 
If anybody would be able to give a hint about this, it would be greatly
appreciated.
 
 
Thanks
Jennifer Whalan
 

Jennifer Whalan
Territory Stories Administrator
Innovation & Access, Northern Territory Library
Department of Natural Resources, Environment, The Arts and Sport
Northern Territory Government 

Phone:  (08) 8922 0757
Fax:    (08) 8922 0722
Email:  [email protected] <mailto:[email protected]> 
Web:    www.ntl.nt.gov.au <http://www.ntl.nt.gov.au/> 

The information contained in this message and any attachments may be
confidential information and may be subject to legal privilege, public
interest or legal profession privilege. If you are not the intended
recipient, any use, disclosure or copying of this message or any
attachments is unauthorised. If you have received this document in
error, please advise the sender. No representation or warranty is given
that attached files are free from viruses or other defects. The
recipient assumes all responsibility for any loss or damage resulting
directly or indirectly from the use of any attached files.

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to