Jump to content
  • 0

Пропадает изображение в IE


ksonline
 Share

Question

Привет!

Подскажите в чем дело, сделал менюшку на css (не выпадающая,с замещающимся изображением использовал a:hover), в opere, mozille? хроме все норм,в ie 8 пропадает одно изображение (крайнее), а все другие отображаются нормально... Переделал менюшку сделал в DW cs5, редактор сдеалал менюшку на JS? и проблема опять та же.Кто сталкивался с подобным, и как это лечить.?

Такой код написал DW


<script type="text/javascript">
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];}
}
</script>

и html разметка меню


<div class="container">
<div class="header"><img src="images/upper_banner.gif" alt="Место для логотипа" name="Insert_logo" width="1148" height="188" id="Insert_logo" style="background" />
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><a href="index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/bt_h_on_main.gif',1)"><img src="images/bt_h_main.gif" alt="Главная" name="Image2" width="111" height="48" border="0" id="Image2" /></a></td><td><a href="arhierey.htm " onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/bt_h_on_arhierey.gif',1)"><img src="images/bt_h_arhierey.gif" alt=" " name="Image3" width="110" height="48" border="0" id="Image3" /></a></td><td><a href="eparhia.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/bt_h_on_eparhiya.gif',1)"><img src="images/bt_h_eparhiya.gif" alt=" " name="Image4" width="94" height="48" border="0" id="Image4" /></a></td><td><a href="struktura_otd.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/bt_h_on_struktura.gif',1)"><img src="images/bt_h_struktura.gif" alt="Структура отдела" name="Image5" width="175" height="48" border="0" id="Image5" /></a></td><td><a href="katehiz.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/bt_h_on_katehiz.gif',1)"><img src="images/bt_h_katehiz.gif" alt=" " name="Image6" width="135" height="48" border="0" id="Image6" /></a></td><td><a href="konferenz.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/bt_h_on_konferen.gif',1)"><img src="images/bt_h_konferen.gif" alt="Конференции" name="Image7" width="145" height="48" border="0" id="Image7" /></a></td><td><a href="konkursy.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/bt_h_on_konkursy.gif',1)"><img src="images/bt_h_konkursy.gif" alt="Конкурсы" name="Image8" width="110" height="48" border="0" id="Image8" /></a></td><td><a href="video.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/bt_h_on_video.gif',1)"><img src="images/bt_h_video.gif" alt="Видео" name="Image9" width="80" height="48" border="0" id="Image9" /></a></td><td><img src="images/h_vstavka.gif" width="41" height="48" /></td><td><a href="voprosy.html " onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image20','','images/bt_h_on_voprosy.gif',1)"><img src="images/bt_h_voprosy.gif" alt="Вопрос-ответ" name="Image20" width="145" height="48" border="0" id="Image20" /></a></td></tr></table>
<!-- end .header --></div>


а это мое детише (((

фрагмент css


a.link_main
{
background: url(images/bt_h_main.gif);
display: block;
width: 111px;
height: 48px;
}
a.link_main:hover {
background: url(images/bt_h_on_main.gif);
}

a.link_arhierey
{
background: url(images/bt_h_arhierey.gif);
display: block;
width: 111px;
height: 48px;
}
a.link_arhierey:hover {
background: url(images/bt_h_on_arhierey.gif);
}


a.link_eparhiya
{
background: url(images/bt_h_eparhiya.gif);
display: block;
width: 94px;
height: 48px;
}
a.link_eparhiya:hover {
background: url(images/bt_h_on_eparhiya.gif);
}

a.link_struktura
{
background: url(images/bt_h_struktura.gif);
display: block;
width: 175px;
height: 48px;
}
a.link_struktura:hover {
background: url(images/bt_h_on_struktura.gif);
}

a.link_katehiz
{
background: url(images/bt_h_katehiz.gif);
display: block;
width: 135px;
height: 48px;
}
a.link_katehiz:hover {
background: url(images/bt_h_on_katehiz.gif);
}

a.link_konferen
{
background: url(images/bt_h_konferen.gif);
display: block;
width: 145px;
height: 48px;
}
a.link_konferen:hover {
background: url(images/bt_h_on_konferen.gif);
}



a.link_konkursy
{
background: url(images/bt_h_konkursy.gif);
display: block;
width: 110px;
height: 48px;
}
a.link_konkursy:hover {
background: url(images/bt_h_on_konkursy.gif);
}

a.link_video
{
background: url(images/bt_h_video.gif);
display: block;
width: 80px;
height: 48px;
}
a.link_video:hover {
background: url(images/bt_h_on_video.gif);
}

a.link_voprosy
{
background: url(images/bt_h_voprosy.gif);
display: block;
width: 145px;
height: 48px;
}
a.link_voprosy:hover {
background: url(images/bt_h_on_voprosy.gif);
}

фрагмент разметки...


<body background="images/background.gif" topmargin="0" onLoad="MM_preloadImages('images/bt_on_prav_obrz.gif','images/bt_on_vosk_ school.gif','images/bt_on_eparh_kurs.gif','images/bt_on_prav_gimn.gif','images/bt_on_osn_kultury.gif','images/bt_on_vyshee_obrz.gif','images/bt_on_shcool_obrz.gif','images/bt_on_do_shcool_obrz.gif')">
<div class="box" id="box">
<div class="banner" id="banner"><img src="images/upper_banner.gif" width="1148" height="188">
<table border="0" cellspacing="0" cellpadding="0" >
<tr>
<td><a href="index.html" class="link_main"></a> </td>
<td><a href="arhierey.html" class="link_arhierey"></a> </td>
<td><a href="/eparhiya.htm" class="link_eparhiya"></a> </td>
<td><a href="/struktura_otdela.htm" class="link_struktura"></a> </td>
<td><a href="/katehizacia.htm" class="link_katehiz"></a> </td>
<td><a href="/konferen.htm" class="link_konferen"></a> </td>
<td><a href="/konkursy.htm" class="link_konkursy"></a> </td>
<td><a href="/video.htm" class="link_video"></a> </td>
<td><img src="images/h_vstavka.gif" width="42" height="48"></td><td><a href="/voprosy.htm" class="link_voprosy"></a></td></tr>
</table>

Edited by ksonline
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy