I fixed boxover!
I've been using boxover.js for the gallery on my wedding website. Those unfortunate enough to be using Internet Explorer (almost everyone) have been reporting that the photos were cut off (in certain versions). I had never seen this myself until today. I figured out by measuring a screen shot that the problem was in the piece of the boxover script show below. This sets the width of the header div for each popup (tooltip, box, whathaveyou). It was set to a width of 150px, so I changed it to the width of my widest image (500 px). Unfortunately, the background color still shows through, but I set it to white (#ffffff;) so that its less noticeable. I've been using the header div for the image and the body div for miscellaneous text, in most cases the year the photo is from. So the function to define the body styles is probably called defBodyStyle or something like that (to lazy to check right now). I'm just made excited that I was finally able to fix this.
function defHdrStyle() {
dvHdr.innerHTML=' '+dvHdr.innerHTML;
dvHdr.style.fontWeight='bold';
dvHdr.style.width='500px';
dvHdr.style.fontFamily='arial';
dvHdr.style.border='none';
dvHdr.style.padding='0';
dvHdr.style.fontSize='11';
dvHdr.style.color='#000000';
dvHdr.style.background='#ffffff';
dvHdr.style.filter='alpha(opacity=100)'; // IE
dvHdr.style.opacity='1.00'; // FF
}
function defHdrStyle() {
dvHdr.innerHTML=' '+dvHdr.innerHTML;
dvHdr.style.fontWeight='bold';
dvHdr.style.width='500px';
dvHdr.style.fontFamily='arial';
dvHdr.style.border='none';
dvHdr.style.padding='0';
dvHdr.style.fontSize='11';
dvHdr.style.color='#000000';
dvHdr.style.background='#ffffff';
dvHdr.style.filter='alpha(opacity=100)'; // IE
dvHdr.style.opacity='1.00'; // FF
}
0 Comments:
Post a Comment
<< Home