Advertisement
Guest User

Untitled

a guest
Oct 18th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. //МЕТОД QUEZ ОБЬЕКТА GENERALO КОТОРЫЙ ОТКРЫВАЕТ ФОТКИ
  2.  
  3.  
  4. document.querySelector("#qwww").style.fontSize = '3vw';
  5. document.querySelector("#qwww").style.right = "0.1%";
  6. //var _STOP_ = "string";
  7. var clofe = document.createElement('a'); //ПРОБЛЕМНОЕ МЕСТО ТЕГ А НЕ СОЗДАЕТЬСЯ
  8. document.body.appendChild(clofe);
  9. clofe.setAttribute('href', "#");
  10. clofe.setAttribute('id', "hyper");
  11. var cloze = document.createElement('span');
  12. clofe.appendChild(cloze);
  13. cloze.innerHTML = 'X';
  14. cloze.setAttribute('id', "close");
  15. document.querySelector("#close").style.width = "40px";
  16.  
  17.  
  18.  
  19. function todo(ID_DIV, ID_A, IZOBRAZH, NAMA, ID_IMG, SELEKTOR, RASS, EVE, EVES, EVEZ, P_){ //КОНСТРУКТОР ДЛЯ СОЗДАНИЯ ФОТОК
  20.  
  21. this.gado = function(){
  22. var newLi = document.createElement('div');
  23. right.appendChild(newLi);
  24. newLi.setAttribute('id', ID_DIV);
  25. var newLine = document.createElement('a');
  26. right.appendChild(newLine);
  27. newLine.setAttribute('id', ID_A);
  28. newLine.setAttribute('href', "#");
  29. newLine.setAttribute('onMouseOver', EVE);
  30. newLine.setAttribute('onMouseOut', EVES);
  31. newLine.setAttribute('onclick', EVEZ);
  32. var ide = document.getElementById(ID_A);
  33. var newLines = document.createElement('img');
  34. ide.appendChild(newLines);
  35. newLines.setAttribute('src', IZOBRAZH);
  36. newLines.setAttribute('name', NAMA);
  37. newLines.setAttribute('id', ID_IMG);
  38. document.querySelector(SELEKTOR).style.width = "15%";
  39. document.querySelector(SELEKTOR).style.height = "40%";
  40. document.querySelector(SELEKTOR).style.position = "absolute";
  41. document.querySelector(SELEKTOR).style.top = P_;
  42. document.querySelector(SELEKTOR).style.left = RASS;
  43. }
  44. }
  45.  
  46.  
  47.  
  48. var generalo = new genia("Taylor", "Swift", "tay10.jpg", "6a014e87574ac9970d01b7c7024181970b.jpg", "taylor-swift.jpg");
  49. //GENERALO ЭТО ОБЬЕКТ С СОБЫТИЯИИ
  50. var kas = new todo("colo", "cali", "tay10.jpg", "marg", "ddd", "#ddd", "36%", "generalo.ew('ddd')", "generalo.rr('ddd')", "generalo.quez()", "2%");
  51.  
  52. KAS ОБЬЕКТ ДЛЯ СОЗДАНИЯ ФОТОГРАФИИ
  53. document.addEventListener("DOMContentLoaded", kas.gado());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement