Ну, думаю по названию всё понятно, этот скрипт меня же раньше стоял, только с другими смайлами, я уже давно этими смайлами не пользовалась так, что не знаю, может и старые смайлы перестали бы работать...по ссылкам я заходила, они рабочее, но когда я нажимаю на смайлы у меня вот такая фигня "--". Не знаю, может код устаревший
Вот такой код у меня стоит:
<style> #button-smiles {background-image:url('http://forumupload.ru/uploads/0005/01/48/75-1.png'); padding:0; line-height:0; background-position:center; background-repeat:no-repeat; height:26px; width:100%} </style> <script language="JavaScript"> function popwnd() { var smiles = new Array smiles.push("http://otkrovenie.net/images/smiley/1.gif") smiles.push("http://otkrovenie.net/images/smiley/2.gif") smiles.push("http://otkrovenie.net/images/smiley/3.gif") smiles.push("http://otkrovenie.net/images/smiley/4.gif") smiles.push("http://otkrovenie.net/images/smiley/5.gif") smiles.push("http://otkrovenie.net/images/smiley/6.gif") smiles.push("http://otkrovenie.net/images/smiley/7.gif") smiles.push("http://otkrovenie.net/images/smiley/8.gif") smiles.push("http://otkrovenie.net/images/smiley/9.gif") smiles.push("http://otkrovenie.net/images/smiley/10.gif") smiles.push("http://otkrovenie.net/images/smiley/11.gif") smiles.push("http://otkrovenie.net/images/smiley/12.gif") smiles.push("http://otkrovenie.net/images/smiley/13.gif") smiles.push("http://otkrovenie.net/images/smiley/14.gif") smiles.push("http://otkrovenie.net/images/smiley/15.gif") smiles.push("http://otkrovenie.net/images/smiley/16.gif") smiles.push("http://otkrovenie.net/images/smiley/17.gif") smiles.push("http://otkrovenie.net/images/smiley/18.gif") smiles.push("http://otkrovenie.net/images/smiley/19.gif") smiles.push("http://otkrovenie.net/images/smiley/20.gif") smiles.push("http://otkrovenie.net/images/smiley/21.gif") smiles.push("http://otkrovenie.net/images/smiley/22.gif") smiles.push("http://otkrovenie.net/images/smiley/23.gif") smiles.push("http://otkrovenie.net/images/smiley/24.gif") smiles.push("http://otkrovenie.net/images/smiley/25.gif") smiles.push("http://otkrovenie.net/images/smiley/26.gif") smiles.push("http://otkrovenie.net/images/smiley/27.gif") smiles.push("http://otkrovenie.net/images/smiley/28.gif") smiles.push("http://otkrovenie.net/images/smiley/29.gif") smiles.push("http://otkrovenie.net/images/smiley/30.gif") smiles.push("http://otkrovenie.net/images/smiley/31.gif") smiles.push("http://otkrovenie.net/images/smiley/32.gif") smiles.push("http://otkrovenie.net/images/smiley/33.gif") smiles.push("http://otkrovenie.net/images/smiley/34.gif") smiles.push("http://otkrovenie.net/images/smiley/35.gif") smiles.push("http://otkrovenie.net/images/smiley/36.gif") smiles.push("http://otkrovenie.net/images/smiley/37.gif") smiles.push("http://otkrovenie.net/images/smiley/38.gif") smiles.push("http://otkrovenie.net/images/smiley/39.gif") smiles.push("http://otkrovenie.net/images/smiley/40.gif") smiles.push("http://otkrovenie.net/images/smiley/41.gif") smiles.push("http://otkrovenie.net/images/smiley/42.gif") smiles.push("http://otkrovenie.net/images/smiley/43.gif") smiles.push("http://otkrovenie.net/images/smiley/44.gif") smiles.push("http://otkrovenie.net/images/smiley/45.gif") smiles.push("http://otkrovenie.net/images/smiley/46.gif") smiles.push("http://otkrovenie.net/images/smiley/47.gif") smiles.push("http://otkrovenie.net/images/smiley/48.gif") smiles.push("http://otkrovenie.net/images/smiley/49.gif") smiles.push("http://otkrovenie.net/images/smiley/50.gif") smiles.push("http://otkrovenie.net/images/smiley/51.gif") smiles.push("http://otkrovenie.net/images/smiley/52.gif") smiles.push("http://otkrovenie.net/images/smiley/53.gif") smiles.push("http://otkrovenie.net/images/smiley/54.gif") smiles.push("http://otkrovenie.net/images/smiley/55.gif") smiles.push("http://otkrovenie.net/images/smiley/56.gif") smiles.push("http://otkrovenie.net/images/smiley/57.gif") smiles.push("http://otkrovenie.net/images/smiley/58.gif") smiles.push("http://otkrovenie.net/images/smiley/59.gif") smiles.push("http://otkrovenie.net/images/smiley/60.gif") smiles.push("http://otkrovenie.net/images/smiley/61.gif") smiles.push("http://otkrovenie.net/images/smiley/62.gif") smiles.push("http://otkrovenie.net/images/smiley/63.gif") smiles.push("http://otkrovenie.net/images/smiley/64.gif") var msg = new String("") msg = "<html><head><TITLE><Дополнительные смайлики></TITLE></head>\r\n" msg += "<body bgcolor=#F5F5F5 >" msg = msg + "<" + "script language=\"JavaScript\">\r\n" msg += "function insert(a){\r\n" msg += "txt = \"-- \";\r\n" msg += "window.opener.smile(txt,'');\r\n" msg += "window.focus()\r\n" msg += "return false}\r\n" msg = msg + "</" + "script>\r\n" i=0 msg += "<div style=\"width: 100%; text-align : justify;\" >" while(smiles[i]) { msg = msg + "<img src=\"" + smiles[i] + "\" onclick=\"return insert(this)\">\r\n" i++ } msg += "</div><a href=\"\" onclick=\"window.close()\">Закрыть окно</a>" msg += "</BODY></html>"; popup = window.open("","popDialog","height=800,width=850,scrollbars=yes") popup.document.write(msg) popup.document.close() return false } </script> <script type="text/javascript"> if(form=document.getElementById("form-buttons")) form.getElementsByTagName("tr")[0].insertCell(17).innerHTML="<a href='' onclick=\"return popwnd()\"> <img title='Дополнительные смайлы' src='/i/blank.gif' id='button-smiles' /></a>" </script>
P. S. я знаю, что надо указывать адрес форума на котором ошибка, но у меня на всех форумах он не работает... (ограничения сняты(вставляю в форму ответа))
Отредактировано Эмили (10 Июн 2009 14:34:30)