Jump to content
  • 0

ПРоблема с галереей


Spidey
 Share

Question

						   <script type="text/javascript">				   
MIN_PICTERS=1;
MAX_PICTERS=7;
count=1;
function gallery(){
switch(count)
{
case 1:image1=1;image2=2;image3=3;image4=4;image5=5;image6=6;break;
case 2:image1=2;image2=3;image3=4;image4=5;image5=6;image6=1;break;
case 3:image1=3;image2=4;image3=5;image4=6;image5=1;image6=2;break;
case 4:image1=4;image2=5;image3=6;image4=1;image5=2;image6=3;break;
case 5:image1=5;image2=6;image3=1;image4=2;image5=3;image6=4;break;
case 6:image1=6;image2=1;image3=2;image4=3;image5=4;image6=5;break;
case 7:image1=7;image2=2;image3=4;image4=5;image5=6;image6=7;break;
}
src1='images/img'.concat(image1).concat('.jpg');
src2='images/img'.concat(image2).concat('.jpg');
src3='images/img'.concat(image3).concat('.jpg');
document.getElementById('main_pic1').src=src1;
document.getElementById('main_pic2').src=src2;
document.getElementById('main_pic3').src=src3;

}
function left(){
count--;
if (count<(MIN_PICTERS)){count=MAX_PICTERS}
gallery();
}
function right(){
count++;
if (count>MAX_PICTERS){count=MIN_PICTERS}
gallery();
}
</script>




<img alt="img" id="main_pic1" src="images/img1.jpg" />

<a href="java script::void(0)" onclick="left()" class="left">«</a>
<a href="java script::void(0)" onclick="count=2;left()" class="numbers">1</a>
<a href="java script::void(0)" onclick="count=3;left()" class="numbers">2</a>
<a href="java script::void(0)" onclick="count=4;left()" class="numbers">3</a>
<a href="java script::void(0)" onclick="count=5;left()" class="numbers">4</a>
<a href="java script::void(0)" onclick="count=6;left()" class="numbers">5</a>
<a href="java script::void(0)" onclick="count=7;left()" class="numbers">6</a>
<a href="java script::void(0)" onclick="count=8;left()" class="numbers">7</a>
<a href="java script::void(0)" onclick="right()" class="right" >»</a>

Есть вот такая галерея, но в ие6 картинки, некоторые, отображаються неполностью или ваще не отображаються, но если нажимаешь на нужную цыфру к соответствующей картике дважды, то катинка отображаеться полностью как надо! Как этот дефект можно исправить?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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