Well here I give you more details after dealing a little bit (I’m new so I really don’t have a lot of Idea):
- Problem positioning “boxes” on the web one on the top of another:
I created two div into the css file trying two put one box bellow another:
This is the css :
#pag1title1 {
position: absolute;
margin-top:10px;
margin-left:0px;
#background:#35241D;
border:0px solid black;
width:280px;
height:36px;
float:left;
z-index:1;
}
#pag1sec1 {
position: absolute;
margin-top:58px;
margin-left:0px;
border:0px solid black;
width:490px;
height:90px;
float:left;
z-index:1;
}
An this is the html file :
<div id="main">
<div id="pag1title1">
<img src="img/pag1title1.png" border="0">
</div>
<div id="pag2sec1sep">
</div>
</div>
I happens that instead of appear vertically the second it’s move to the right, that only happens with internet explorer
This is the main css , just in case:
#main {
margin: 0 auto;
margin-top:0px;
background:#F0EEE7;
#background:#D2C1A6;
#background:#b7af9f;
border:1px #000000;
width: 766px;
#height: 355px;
height:694px;
z-index:0;
}
2 problem javascript onMouseOver effect for changing images:
Pretty much the same, it works on any browser excep in internet explorer:
This is the html
<a href="2.html">
<img src="img/2w.png" alt"test" name="menu2" width="57" height ="25" border="0" id="menu2" onMouseOver="MM_swapImage('menu2','','img/2y.png',1)" onMouseOut="MM_swapImgRestore()">
</a>
This is how I call the javascript:
<link rel="stylesheet" href="styles.css" type="text/css" media="all" / <script type="text/javascript" src="menu.js"></script>
This is the javascript code:
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
Any sugestions? many thanks
I getting mad with the internet explorer…