Click to See Complete Forum and Search --> : IE issue...


sylenceone
07-13-2006, 12:07 PM
Hi,

New to the place as well as being a newbie in general. Got a question that I'm hoping someone can help me with. I have a set of icons that I'm trying to get to look like the Mac OS X icons. It's floating vertically to the right of my page, and when you hover over it, it gets bigger (like i said, similar to the Mac OS X). The problem is, it works fine in firefox; it expands to left like I want it to. But in IE, it expands to the right, which sometimes causes a scroll bar on the bottom to appear. Any ideas/thoughts/fixes? Thanks...

skilled1
07-13-2006, 01:07 PM
<body style="overflow:hidden;">

try that

sylenceone
07-13-2006, 01:30 PM
That works, but all it does it just takes away the bottom scroll. Want I want to do is have the image resize to the left like firefox, and not to the right. Maybe some pics will help.

toicontien
07-13-2006, 01:59 PM
In the block level element that contains the icon, try setting the text-align CSS property to right (text-align: right;). I'd like to help you more, but we need to see the HTML, CSS and any applicable JavaScript.

skilled1
07-13-2006, 02:41 PM
well the issue was the scrolled was a problem that you described in the first post, if you provide a link to the working site, and the code, i am sure some of us here would be able to look over it and show you what can be fixed

sylenceone
07-13-2006, 02:59 PM
Here's the HTML and inline CSS in question (bear in mind that I am still new to this and learning, so it probably looks ugly :p )...there's no external css

<td width="7%" valign="top" style="position:relative;margin:0;padding:0;float:right;">
<div style="height:auto;width:35px;position:absolute;left:0;z-index:5;">
<a id="1a" style="display:block;width:35px;height:35px;" href="http://intranet.dac-group.com/sales/optrack/"><img id="image1" src="/steve/satellite-sm.gif" alt="Opportunity Tracking" onmouseover="d('1')" onmouseout="e('1')" border="0" height="35" width="35" align="right" ></a>
(repeat anchor tag and link...)
.
.
.


and here's the Javascript function (which was sent to me by a coworker so I can't verify where he got it from) that does the resizing...sorry if it's kinda long...
k=document;
v=Date;
x=false;
z=Array;
af=Math.floor;
ag=RegExp;
b=new z(12);
s=new z("null","satellite","training","email","phone","shopping","pc","folder","vendor","suggest","truck","more");
aa=new z(11);
ab=10;
t=0;
u=0;
n=0;
o=new v();
h=5;
m=385;
c=0;
w=x;
var title;
var firstHoverOccurred=x;
m=385;
p=0;

function d(ac) {
c=ac;
o=new v();
setTimeout("gidle()",20);
}

function e(ac) {
c=0;
w=x;
o=new v();
setTimeout("gidle()",20);
}

function ae() {
for(var j=1; j<b.length; j++) {
b[j]=35;
}
title=k.getElementById('imageTitle');
for(i=0; i<b.length; i++) {
aa[i]=new Image();
aa[i].src="/steve/"+s[i+1]+".gif"
}
setTimeout("gidle()",20);
}

function gidle() {
var l=0;
for(var i=1; i<b.length; i++) {
var imagename="image"+i;
var imageElem=k.getElementById(imagename);
if(c!=i){
if(b[i]>35){
b[i]-=h;
if(b[i]<=35){
b[i]=35;
imageElem.src="/steve/"+s[i]+"-sm.gif"
}
imageElem.width=b[i];
imageElem.height=b[i];
if(c==0){
var g=af(255-255*(b[i]-35)/35);
title.style.color="rgb("+g+","+g+","+g+")"
}
p=1;
}l+=b[i]
}
}
if(c!=0&&b[c]<70){
imagename="image"+c;
imageElem=k.getElementById(imagename);
if(w==x){
w=true;
if(c<6){
var y=360-(c-1)*70;
//title.innerHTML=k.getElementById(imagename).alt+'<img src="cleardot.gif" width="'+y+'" height="1"/>'
title.innerHTML=k.getElementById(imagename).alt+'<img src="/steve/cleardot.gif" width="'+1+'" height="1"/>'
} else {
var y=(c-7)*70+70;
//title.innerHTML='<img src="cleardot.gif" width="'+y+'" height="1"/>'+k.getElementById(imagename).alt
title.innerHTML='<img src="/steve/cleardot.gif" width="'+1+'" height="1"/>'+k.getElementById(imagename).alt
}
}
b[c]+=h;
p=1;
if(b[c]>70){
b[c]=70;
}
l+=b[c];
if(l<m){
b[c]+=m-l;
if(b[c]>70) {
b[c]=70;
}
l=m;
}
var g=af(255-255*(b[c]-35)/35);
title.style.color="rgb("+g+","+g+","+g+")";
imageElem.width=b[c];
imageElem.height=b[c];
k.getElementById(imagename).src="/steve/"+s[c]+".gif"
}
m=l;
var ad=new v();
ab=ad.getTime()-o.getTime();
o=ad;
t+=ab;
u++;
n=t/u;
h=5;
if(u>4){
if(n>30){
h=10;
}
if(n>60){
h=15;
}
if(n>90){
h=20;
}
}
if(p) {
setTimeout("gidle()",20);
p=0;
}
}

sylenceone
07-13-2006, 03:32 PM
Sorry, but I'm working on this on my company's intranet at work, so I can't provide the link...