Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //МЕТОД QUEZ ОБЬЕКТА GENERALO КОТОРЫЙ ОТКРЫВАЕТ ФОТКИ
- document.querySelector("#qwww").style.fontSize = '3vw';
- document.querySelector("#qwww").style.right = "0.1%";
- //var _STOP_ = "string";
- var clofe = document.createElement('a'); //ПРОБЛЕМНОЕ МЕСТО ТЕГ А НЕ СОЗДАЕТЬСЯ
- document.body.appendChild(clofe);
- clofe.setAttribute('href', "#");
- clofe.setAttribute('id', "hyper");
- var cloze = document.createElement('span');
- clofe.appendChild(cloze);
- cloze.innerHTML = 'X';
- cloze.setAttribute('id', "close");
- document.querySelector("#close").style.width = "40px";
- function todo(ID_DIV, ID_A, IZOBRAZH, NAMA, ID_IMG, SELEKTOR, RASS, EVE, EVES, EVEZ, P_){ //КОНСТРУКТОР ДЛЯ СОЗДАНИЯ ФОТОК
- this.gado = function(){
- var newLi = document.createElement('div');
- right.appendChild(newLi);
- newLi.setAttribute('id', ID_DIV);
- var newLine = document.createElement('a');
- right.appendChild(newLine);
- newLine.setAttribute('id', ID_A);
- newLine.setAttribute('href', "#");
- newLine.setAttribute('onMouseOver', EVE);
- newLine.setAttribute('onMouseOut', EVES);
- newLine.setAttribute('onclick', EVEZ);
- var ide = document.getElementById(ID_A);
- var newLines = document.createElement('img');
- ide.appendChild(newLines);
- newLines.setAttribute('src', IZOBRAZH);
- newLines.setAttribute('name', NAMA);
- newLines.setAttribute('id', ID_IMG);
- document.querySelector(SELEKTOR).style.width = "15%";
- document.querySelector(SELEKTOR).style.height = "40%";
- document.querySelector(SELEKTOR).style.position = "absolute";
- document.querySelector(SELEKTOR).style.top = P_;
- document.querySelector(SELEKTOR).style.left = RASS;
- }
- }
- var generalo = new genia("Taylor", "Swift", "tay10.jpg", "6a014e87574ac9970d01b7c7024181970b.jpg", "taylor-swift.jpg");
- //GENERALO ЭТО ОБЬЕКТ С СОБЫТИЯИИ
- var kas = new todo("colo", "cali", "tay10.jpg", "marg", "ddd", "#ddd", "36%", "generalo.ew('ddd')", "generalo.rr('ddd')", "generalo.quez()", "2%");
- KAS ОБЬЕКТ ДЛЯ СОЗДАНИЯ ФОТОГРАФИИ
- document.addEventListener("DOMContentLoaded", kas.gado());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement