Try setting the height of the div in css.  This should do the trick in IE6.

-Mika


2009/6/25 Jennifer Whalan <[email protected]>:
> 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+'.jpg")';
>     </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]
> Web:    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
>
>

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

Reply via email to