Справочник функций

Ваш аккаунт

Войти через: 
Забыли пароль?
Регистрация
Информацию о новых материалах можно получать и без регистрации:

Почтовая рассылка

Подписчиков: -1
Последний выпуск: 19.06.2015

проблема с отображением в IE

72K
24 июня 2011 года
anuta88
1 / / 24.06.2011
Здравствуйте! Помогите,пожалуйста! Не могу найти ошибку.Сайт некорректно отображается в Internet Explorer.

Заранее огромное спасибо за помощь!


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JacarandaFloralDesign</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<script language="JavaScript" type="text/JavaScript">
function checkChangeAPIAvaible(img) {
if(!img.changeSrc) img.changeSrc=changeSrcH;
}

function changeSrcH(src) {
if(src==null) {
if(this.backSrc) this.src=this.backSrc;
return;
}
if(this.complete) this.backSrc=this.src;
if(!this.tempLoadImage) {
this.tempLoadImage=new Image();
this.tempLoadImage.onload=changeSrcOL;
this.tempLoadImage.parentImage=this;
this.msg=createMessage("Loading...", this);
}
this.msg.show();
this.tempLoadImage.src=src;
}

function changeSrcOL() {
this.parentImage.src=this.src;
this.parentImage.msg.hidde();
}

function loadphoto(src) {
var im=document.getElementById("photo");
checkChangeAPIAvaible(im);
im.changeSrc(src);
}

function getPosition(obj) {
var x=0, y=0;
while(obj) {
x+=obj.offsetLeft;
y+=obj.offsetTop;
obj=obj.offsetParent;
}
return {x: x, y:y};
}

function createMessage(txt, obj) {
var m=document.createElement("DIV");
m.className="message";
m.innerHTML=txt;
document.body.appendChild(m);
if(m.offsetWidth>obj.width) m.style.width=obj.width;
return {
target:m,
prnt: obj,
hidde:function(){this.target.style.visibility="hidden";},
show:function(){
var pos=getPosition(this.prnt);
this.target.style.left=pos.x;
this.target.style.top=pos.y;
this.target.style.visibility="visible";
}
};
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}

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[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.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))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>

</head>

<body onload="MM_preloadImages('images/menu2off_on.gif','images/menu3off_on.gif','images/menu4off_on.gif','images/menu5off_on.gif','images/menu1off_on.gif','images/menu6off_on.gif')">

<table border="0" cellspacing="0" cellpadding="0" align=center>

<tr>

<td colspan=3><img src="images/images/D-_ЕГУ_Web2-вебдизайн_vegetables_Vegetables_images_sketch_02.png" width="600" height="277" />
</td>
</tr>
<tr>
<td valign=top><img src="images/images/1.jpg" width="55" height="205" align="baseline" valign="top"/><iframe name="photo" src="pics/pic01.jpg" width="491" height="412" frameborder="0" marginheight="0" marginwidth="0" vspace="0" hspace="0" scrolling="no" align="top"></iframe><img src="images/images/2.jpg" width="55" height="205" valign="top"/></td>
</tr>

<tr>
<td align=center><a href="pics/pic01.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('2','','images/menu1off_on.gif',1)"><img src="images/menu1_off.gif" alt="2" name="2" width="81" height="48" border="0" id="2" /></a>
<a href="pics/pic02.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/menu2off_on.gif',1)"><img src="images/menu2_off.gif" name="Image9" width="81" height="48" border="0" id="Image9" /></a>
<a href="pics/pic03.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images/menu3off_on.gif',1)"><img src="images/menu3_off.gif" name="Image10" width="81" height="48" border="0" id="Image10" /></a>

<a href="pics/pic04.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','images/menu4off_on.gif',1)"><img src="images/menu4_off.gif" name="Image11" width="81" height="48" border="0" id="Image11" /></a>
<a href="pics/pic05.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','images/menu5off_on.gif',1)"><img src="images/menu5_off.gif" name="Image12" width="81" height="48" border="0" id="Image12" /></a>

<a href="pics/pic06.jpg" target="photo" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','images/menu6off_on.gif',1)"><img src="images/menu6_off.gif" name="Image13" width="81" height="48" border="0" id="Image13" /></a>
</td>
</tr>

</table>
</body>
</html>
Реклама на сайте | Обмен ссылками | Ссылки | Экспорт (RSS) | Контакты
Добавить статью | Добавить исходник | Добавить хостинг-провайдера | Добавить сайт в каталог