ЙажаСценарий / Говнокод #5956 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
function ChangePhoto(num, photo)
{
    if (photo.className != 'photo_selected')
    {
    var image1 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image1");
    var image2 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image2");
    var image3 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image3");
    var image4 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image4");
    var image5 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image5");
    var image6 = document.getElementById("ctl00_MainContent_ProductInfo1_ctl00_AlternativePictures_Image6");
    
    if (image1 != null) image1.className = 'photo_notselected';
    if (image2 != null) image2.className = 'photo_notselected';
    if (image3 != null) image3.className = 'photo_notselected';
    if (image4 != null) image4.className = 'photo_notselected';
    if (image5 != null) image5.className = 'photo_notselected';
    if (image6 != null) image6.className = 'photo_notselected';
    
    
    photo.className = 'photo_selected';
    Hide(0);
    setTimeout("ChangeSrc("+num+")", 300);
    setTimeout("ShowPhoto()", 400);
    }
}

Чо мне ща сказал? Цыклы мне ща сказал? Какие тенна цыклы, ыдисюданна!

Строчки 22, 23 активируют какое-то хитрожопое многопоточное отображение фоток со взаимными блокировками и ожиданием друг друга по таймеру с интервалами в 10 мс.

Запостил: telnet telnet, (Updated )

Комментарии (8) RSS

    • неужели такие id кто-то сам писал ручками??? копиВпасть доставляет
      Ответить
  • А мне чисто сопроводительный текст очень понравился! :-[
    Все остальное - довольно традиционно
    Ответить

Добавить комментарий

Я, guest, находясь в здравом уме и твердой памяти, торжественно заявляю:

    А не использовать ли нам bbcode?


    8