This is a known IE6 bug, which (as far as I know) is caused pretty
much by what Jennifer already guessed.

-Mika


2009/6/26 Jennifer Whalan <[email protected]>:
> Thanks to all who responded to this. Mika's fix solved the problem, by
> setting the height of the div only in the style-ie css (adding it to the
> other style sheets doubled up the space where the image is placed).
>
> My guess is that IE6 doesn't calculate the size of the div to the size of
> the image in the div, but other browsers do not have this problem.
>
>
>
> Thanks
> Jennifer
>
>
>
>
>
> 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.
>
> ________________________________
> From: Gary Browne [mailto:[email protected]]
> Sent: Friday, 26 June 2009 9:19 AM
> To: [email protected]
> Subject: Re: [Dspace-tech] XMLUI, javascript and IE
>
> Hi Jennifer,
>
> Could this be part of the problem as well?
>
> http://remysharp.com/2007/02/10/ie-7-breaks-getelementbyid/
>
> He says that the bug affects both IE6 and IE7.
>
> I'd be interested to hear whether Mika's fix worked too.
>
> # Mika, if you're fix worked, could you explain why setting the div height
> works?
>
> Thanks
> Gary
>
>
> Gary Browne
> Development Programmer
> Library IT Services
> University of Sydney
> ph: 9351-5946
>
>
> ________________________________
> From: Jennifer Whalan [mailto:[email protected]]
> Sent: Thursday, 25 June 2009 5:04 PM
> To: [email protected]
> Subject: [Dspace-tech] XMLUI, javascript and IE
>
> 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