Единый форум поддержки

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Единый форум поддержки » Проблемы с форумом » Проблема с корректным отображением скрипта


Проблема с корректным отображением скрипта

Сообщений 1 страница 10 из 10

1

Здравствуйте! Не знаю... Правильно ли делаю, что пишу тут. Простите, но я не совсем новичок в делах скрипта.
Я поставила вот этот скрипт, чтобы не пропадали посты:
В низ - НTML низ

<!-- ЧТОБЫ НЕ ПРОПАДАЛИ ПОСТЫ V.2 -->
<script src="http://hostjs-mybb2011.narod.ru/js/functio_Cookie33.js"></script><script>
var Knopa2='<span style="position:absolute;right:-27px;top:-8px;z-index:200;cursor:pointer"><img id="Knopa2-2" src="http://savepic.org/1852486.png" title="Вставка запомненного при последней Отправке"/></span>';if(getCookie33('main-reply')){$("#main-reply").before(Knopa2);}
$(".formsubmit input[type='submit']").click(function (){
var Ll=$("#main-reply").val();Ll=Ll.substring(0,1000);setCookie33('main-reply',Ll,8*60*1000);});
$("#Knopa2-2").click(function (){var L2=getCookie33('main-reply');
var L1=$("#main-reply").val();$("#main-reply").val(L1+L2);});
</script>

Причина простая. Плохой интернет. И из-за этого порой пропадает написанный текст. Просто у многих он работает нормально, а у меня какая-то проблема возникла...

Вместо зеленого значка битая картинка :(

https://i.imgur.com/C8wc8iG.png

Помогите пожалуйста!
http://gotham.rolevaya.com/ форум

0

2

Gotham написал(а):

<!-- ЧТОБЫ НЕ ПРОПАДАЛИ ПОСТЫ V.2 -->
<script src="http://hostjs-mybb2011.narod.ru/js/functio_Cookie33.js"></script><script>
var Knopa2='<span style="position:absolute;right:-27px;top:-8px;z-index:200;cursor:pointer"><img id="Knopa2-2" src="http://savepic.org/1852486.png" title="Вставка запомненного при последней Отправке"/></span>';if(getCookie33('main-reply')){$("#main-reply").before(Knopa2);}
$(".formsubmit input[type='submit']").click(function (){
var Ll=$("#main-reply").val();Ll=Ll.substring(0,1000);setCookie33('main-reply',Ll,8*60*1000);});
$("#Knopa2-2").click(function (){var L2=getCookie33('main-reply');
var L1=$("#main-reply").val();$("#main-reply").val(L1+L2);});
</script>

Картинка битая - надо заменить на свою..

0

3

kolobdur74
Спасибо огромное!!!! Вы меня очень выручили! :love:

Отредактировано Gotham (Пн, 25 Дек 2017 19:27:41)

+1

4

Здравствуйте! Столкнулась с новой проблемой... По дополнительным смайликам.
Вставила код в форму ответа. Дважды. И хотела еще загрузить смайлы.

Код

<div>
<input type="Button" value="Смайлики" onclick="return showhide(this)">
<p style="display:none">
<img src="https://i.imgur.com/F5YA3bL.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/F5YA3bL.gif')"/>
<img src="https://i.imgur.com/aafBJFK.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/aafBJFK.gif')"/>
<img src="https://i.imgur.com/qg6tIOK.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/qg6tIOK.gif')"/>
<img src="https://i.imgur.com/j0vt6NG.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/j0vt6NG.gif')"/>
<img src="https://i.imgur.com/K4tyZVh.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/K4tyZVh.gif')"/>
<img src="https://i.imgur.com/RU32uoW.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/RU32uoW.gif')"/>
<img src="https://i.imgur.com/xU9yerC.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/xU9yerC.gif')"/>
<img src="https://i.imgur.com/uiB7W1U.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/uiB7W1U.gif')"/>
<img src="https://i.imgur.com/NvubVXS.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/NvubVXS.gif')"/>
<img src="https://i.imgur.com/dsq8aj7.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/dsq8aj7.gif')"/>
<img src="https://i.imgur.com/s52SYHc.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/s52SYHc.gif')"/>
<img src="https://i.imgur.com/4Z2vf56.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/4Z2vf56.gif')"/>
<img src="https://i.imgur.com/EFK3eqa.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/EFK3eqa.gif')"/>
<img src="https://i.imgur.com/jtxYxHL.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/jtxYxHL.gif')"/>
<img src="https://i.imgur.com/i6z87KJ.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/i6z87KJ.gif')"/>
<img src="https://i.imgur.com/3vj6DGf.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/3vj6DGf.gif')"/>
<img src="https://i.imgur.com/sUZI9YO.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/sUZI9YO.gif')"/>
<img src="https://i.imgur.com/TgGHIsz.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/TgGHIsz.gif')"/>
<img src="https://i.imgur.com/JHfLixv.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/JHfLixv.gif')"/>
<img src="https://i.imgur.com/rMTdDTc.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/rMTdDTc.gif')"/>
<img src="https://i.imgur.com/VoATWxr.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/VoATWxr.gif')"/>
<img src="https://i.imgur.com/WsLznJm.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/WsLznJm.gif')"/>
<img src="https://i.imgur.com/pjfeQ6X.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/pjfeQ6X.gif')"/>
<img src="https://i.imgur.com/gincGeV.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/gincGeV.gif')"/>
<img src="https://i.imgur.com/yuytUMf.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/yuytUMf.gif')"/>
<img src="https://i.imgur.com/9AiCWRW.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/9AiCWRW.gif')"/>
<img src="https://i.imgur.com/Ad7r3L0.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/Ad7r3L0.gif]')"/>
<img src="https://i.imgur.com/ZLzviQZ.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/ZLzviQZ.gif')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики"){
b.value="Смайлики"
p.style.display="block"}
else{
b.value="Смайлики"
p.style.display="none"}
return false}
</script>

Всё работает, но есть один минус. Я не могу сворачивать смайлы, если открываю. Конечно я искала на форуме ответ на данный вопрос. Даже нашла его тут HTML-спойлер под форму ответа Но! При замене кода, только первые смайлы открываются и сворачиваются на клику. А вторые вообще перестали открываться. Пришлось поставить вариант до. А хотелось найти решение проблемы, чтобы еще несколько вариантов смайлов загрузить.

Вот что имею ввиду.

https://i.imgur.com/48n1wdb.png

Помогите пожалуйста!
http://gotham.rolevaya.com/ форум

0

5

Gotham написал(а):

Всё работает, но есть один минус. Я не могу сворачивать смайлы, если открываю. Конечно я искала на форуме ответ на данный вопрос. Даже нашла его тут HTML-спойлер под форму ответа Но! При замене кода, только первые смайлы открываются и сворачиваются на клику. А вторые вообще перестали открываться. Пришлось поставить вариант до. А хотелось найти решение проблемы, чтобы еще несколько вариантов смайлов загрузить.

Там привязка по атрибуту:

Gotham написал(а):

<input type="Button" value="Смайлики" onclick="return showhide(this)">

Gotham написал(а):

<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики"){
b.value="Смайлики"
p.style.display="block"}
else{
b.value="Смайлики"
p.style.display="none"}
return false}
</script>

Соответственно для второго блока Смайликов меняйте надпись Смайлики и в кнопке и в скрипте на, скажем, Смайлики 2.

0

6

Спасибо за ответ! Попробовала, но тоже самое выходит... Первая группа открывается и закрывается, а вторая нет.  :'( Может я не так делаю?

скрипты

<div>
<input type="button" value="Смайлики" onclick="return changeVisibility('spll')">
<div id="spll" style="display: none;">
<img src="https://i.imgur.com/F5YA3bL.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/F5YA3bL.gif')"/>
<img src="https://i.imgur.com/aafBJFK.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/aafBJFK.gif')"/>
<img src="https://i.imgur.com/qg6tIOK.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/qg6tIOK.gif')"/>
<img src="https://i.imgur.com/j0vt6NG.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/j0vt6NG.gif')"/>
<img src="https://i.imgur.com/K4tyZVh.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/K4tyZVh.gif')"/>
<img src="https://i.imgur.com/RU32uoW.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/RU32uoW.gif')"/>
<img src="https://i.imgur.com/xU9yerC.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/xU9yerC.gif')"/>
<img src="https://i.imgur.com/uiB7W1U.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/uiB7W1U.gif')"/>
<img src="https://i.imgur.com/NvubVXS.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/NvubVXS.gif')"/>
<img src="https://i.imgur.com/dsq8aj7.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/dsq8aj7.gif')"/>
<img src="https://i.imgur.com/s52SYHc.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/s52SYHc.gif')"/>
<img src="https://i.imgur.com/4Z2vf56.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/4Z2vf56.gif')"/>
<img src="https://i.imgur.com/EFK3eqa.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/EFK3eqa.gif')"/>
<img src="https://i.imgur.com/jtxYxHL.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/jtxYxHL.gif')"/>
<img src="https://i.imgur.com/i6z87KJ.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/i6z87KJ.gif')"/>
<img src="https://i.imgur.com/3vj6DGf.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/3vj6DGf.gif')"/>
<img src="https://i.imgur.com/sUZI9YO.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/sUZI9YO.gif')"/>
<img src="https://i.imgur.com/TgGHIsz.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/TgGHIsz.gif')"/>
<img src="https://i.imgur.com/JHfLixv.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/JHfLixv.gif')"/>
<img src="https://i.imgur.com/rMTdDTc.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/rMTdDTc.gif')"/>
<img src="https://i.imgur.com/VoATWxr.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/VoATWxr.gif')"/>
<img src="https://i.imgur.com/WsLznJm.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/WsLznJm.gif')"/>
<img src="https://i.imgur.com/pjfeQ6X.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/pjfeQ6X.gif')"/>
<img src="https://i.imgur.com/gincGeV.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/gincGeV.gif')"/>
<img src="https://i.imgur.com/yuytUMf.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/yuytUMf.gif')"/>
<img src="https://i.imgur.com/9AiCWRW.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/9AiCWRW.gif')"/>
<img src="https://i.imgur.com/Ad7r3L0.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/Ad7r3L0.gif]')"/>
<img src="https://i.imgur.com/ZLzviQZ.gif" style="cursor:pointer"onclick="smile('https://i.imgur.com/ZLzviQZ.gif')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики"){
b.value="Смайлики"
p.style.display="block"}
else{
b.value="Смайлики"
p.style.display="none"}
return false}
</script>

<div>
<input type="button" value="Смайлики2" onclick="return changeVisibility('spll')">
<div id="spll" style="display: none;">
<img src="https://i.imgur.com/awjzAwD.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/awjzAwD.png')"/>
<img src="https://i.imgur.com/nBWjHXM.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/nBWjHXM.png')"/>
<img src="https://i.imgur.com/mxMr2sg.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/mxMr2sg.png')"/>
<img src="https://i.imgur.com/tbwwKxk.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/tbwwKxk.png')"/>
<img src="https://i.imgur.com/LzhTzU6.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/LzhTzU6.png')"/>
<img src="https://i.imgur.com/ae0Ni4c.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/ae0Ni4c.png')"/>
<img src="https://i.imgur.com/z3A0uZC.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/z3A0uZC.png')"/>
<img src="https://i.imgur.com/Xt9NUmo.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/Xt9NUmo.png')"/>
<img src="https://i.imgur.com/kBCRlem.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/kBCRlem.png')"/>
<img src="https://i.imgur.com/UYAFsTr.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/UYAFsTr.png')"/>
<img src="https://i.imgur.com/tN6jJYx.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/tN6jJYx.png')"/>
<img src="https://i.imgur.com/AzuvIiZ.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/AzuvIiZ.png')"/>
<img src="https://i.imgur.com/dwwWvT3.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/dwwWvT3.png')"/>
<img src="https://i.imgur.com/TvWXBD4.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/TvWXBD4.png')"/>
<img src="https://i.imgur.com/t9anHGk.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/t9anHGk.png')"/>
<img src="https://i.imgur.com/d5I73OY.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/d5I73OY.png')"/>
<img src="https://i.imgur.com/uk5DUdC.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/uk5DUdC.png')"/>
<img src="https://i.imgur.com/FXAa7oI.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/FXAa7oI.png')"/>
<img src="https://i.imgur.com/9Tb7X0G.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/9Tb7X0G.png')"/>
<img src="https://i.imgur.com/wgSSfpm.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/wgSSfpm.png')"/>
<img src="https://i.imgur.com/vxciSIj.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/vxciSIj.png')"/>
<img src="https://i.imgur.com/QAaAEGt.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/QAaAEGt.png')"/>
<img src="https://i.imgur.com/Iq3idwB.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/Iq3idwB.png')"/>
<img src="https://i.imgur.com/3hzt5JG.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/3hzt5JG.png')"/>
<img src="https://i.imgur.com/NgoGOKL.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/NgoGOKL.png')"/>
<img src="https://i.imgur.com/L3AI0Qx.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/L3AI0Qx.png')"/>
<img src="https://i.imgur.com/7mapiA4.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/7mapiA4.png')"/>
<img src="https://i.imgur.com/8rv5jrF.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/8rv5jrF.png')"/>
<img src="https://i.imgur.com/1zGgmXu.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/1zGgmXu.png')"/>
<img src="https://i.imgur.com/vQKVvO0.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/vQKVvO0.png')"/>
<img src="https://i.imgur.com/n9uPdwx.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/n9uPdwx.png')"/>
<img src="https://i.imgur.com/6QaamVn.png" style="cursor:pointer"onclick="smile('https://i.imgur.com/6QaamVn.png')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики2"){
b.value="Смайлики2"
p.style.display="block"}
else{
b.value="Смайлики2"
p.style.display="none"}
return false}
</script>

0

7

Gotham написал(а):

Спасибо за ответ! Попробовала, но тоже самое выходит... Первая группа открывается и закрывается, а вторая нет.   Может я не так делаю?

Поставьте скрипт в вв-код Код, Цитата код ломает...

0

8

Извините) Не знала)) Вот)

Код:
<div>
<input type="button" value="Смайлики" onclick="return changeVisibility('spll')">
<div id="spll" style="display: none;">
<img src="https://i.imgur.com/F5YA3bL.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/F5YA3bL.gif[/img]')"/>
<img src="https://i.imgur.com/aafBJFK.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/aafBJFK.gif[/img]')"/>
<img src="https://i.imgur.com/qg6tIOK.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/qg6tIOK.gif[/img]')"/>
<img src="https://i.imgur.com/j0vt6NG.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/j0vt6NG.gif[/img]')"/>
<img src="https://i.imgur.com/K4tyZVh.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/K4tyZVh.gif[/img]')"/>
<img src="https://i.imgur.com/RU32uoW.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/RU32uoW.gif[/img]')"/>
<img src="https://i.imgur.com/xU9yerC.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/xU9yerC.gif[/img]')"/>
<img src="https://i.imgur.com/uiB7W1U.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/uiB7W1U.gif[/img]')"/>
<img src="https://i.imgur.com/NvubVXS.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/NvubVXS.gif[/img]')"/>
<img src="https://i.imgur.com/dsq8aj7.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/dsq8aj7.gif[/img]')"/>
<img src="https://i.imgur.com/s52SYHc.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/s52SYHc.gif[/img]')"/>
<img src="https://i.imgur.com/4Z2vf56.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/4Z2vf56.gif[/img]')"/>
<img src="https://i.imgur.com/EFK3eqa.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/EFK3eqa.gif[/img]')"/>
<img src="https://i.imgur.com/jtxYxHL.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/jtxYxHL.gif[/img]')"/>
<img src="https://i.imgur.com/i6z87KJ.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/i6z87KJ.gif[/img]')"/>
<img src="https://i.imgur.com/3vj6DGf.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/3vj6DGf.gif[/img]')"/>
<img src="https://i.imgur.com/sUZI9YO.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/sUZI9YO.gif[/img]')"/>
<img src="https://i.imgur.com/TgGHIsz.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/TgGHIsz.gif[/img]')"/>
<img src="https://i.imgur.com/JHfLixv.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/JHfLixv.gif[/img]')"/>
<img src="https://i.imgur.com/rMTdDTc.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/rMTdDTc.gif[/img]')"/>
<img src="https://i.imgur.com/VoATWxr.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/VoATWxr.gif[/img]')"/>
<img src="https://i.imgur.com/WsLznJm.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/WsLznJm.gif[/img]')"/>
<img src="https://i.imgur.com/pjfeQ6X.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/pjfeQ6X.gif[/img]')"/>
<img src="https://i.imgur.com/gincGeV.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/gincGeV.gif[/img]')"/>
<img src="https://i.imgur.com/yuytUMf.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/yuytUMf.gif[/img]')"/>
<img src="https://i.imgur.com/9AiCWRW.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/9AiCWRW.gif[/img]')"/>
<img src="https://i.imgur.com/Ad7r3L0.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Ad7r3L0.gif[/img]]')"/>
<img src="https://i.imgur.com/ZLzviQZ.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/ZLzviQZ.gif[/img]')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики"){
b.value="Смайлики"
p.style.display="block"}
else{
b.value="Смайлики"
p.style.display="none"}
return false}
</script>

<div>
<input type="button" value="Смайлики2" onclick="return changeVisibility('spll')">
<div id="spll" style="display: none;">
<img src="https://i.imgur.com/awjzAwD.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/awjzAwD.png[/img]')"/>
<img src="https://i.imgur.com/nBWjHXM.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/nBWjHXM.png[/img]')"/>
<img src="https://i.imgur.com/mxMr2sg.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/mxMr2sg.png[/img]')"/>
<img src="https://i.imgur.com/tbwwKxk.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/tbwwKxk.png[/img]')"/>
<img src="https://i.imgur.com/LzhTzU6.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/LzhTzU6.png[/img]')"/>
<img src="https://i.imgur.com/ae0Ni4c.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/ae0Ni4c.png[/img]')"/>
<img src="https://i.imgur.com/z3A0uZC.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/z3A0uZC.png[/img]')"/>
<img src="https://i.imgur.com/Xt9NUmo.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Xt9NUmo.png[/img]')"/>
<img src="https://i.imgur.com/kBCRlem.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/kBCRlem.png[/img]')"/>
<img src="https://i.imgur.com/UYAFsTr.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/UYAFsTr.png[/img]')"/>
<img src="https://i.imgur.com/tN6jJYx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/tN6jJYx.png[/img]')"/>
<img src="https://i.imgur.com/AzuvIiZ.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/AzuvIiZ.png[/img]')"/>
<img src="https://i.imgur.com/dwwWvT3.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/dwwWvT3.png[/img]')"/>
<img src="https://i.imgur.com/TvWXBD4.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/TvWXBD4.png[/img]')"/>
<img src="https://i.imgur.com/t9anHGk.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/t9anHGk.png[/img]')"/>
<img src="https://i.imgur.com/d5I73OY.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/d5I73OY.png[/img]')"/>
<img src="https://i.imgur.com/uk5DUdC.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/uk5DUdC.png[/img]')"/>
<img src="https://i.imgur.com/FXAa7oI.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/FXAa7oI.png[/img]')"/>
<img src="https://i.imgur.com/9Tb7X0G.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/9Tb7X0G.png[/img]')"/>
<img src="https://i.imgur.com/wgSSfpm.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/wgSSfpm.png[/img]')"/>
<img src="https://i.imgur.com/vxciSIj.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/vxciSIj.png[/img]')"/>
<img src="https://i.imgur.com/QAaAEGt.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/QAaAEGt.png[/img]')"/>
<img src="https://i.imgur.com/Iq3idwB.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Iq3idwB.png[/img]')"/>
<img src="https://i.imgur.com/3hzt5JG.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/3hzt5JG.png[/img]')"/>
<img src="https://i.imgur.com/NgoGOKL.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/NgoGOKL.png[/img]')"/>
<img src="https://i.imgur.com/L3AI0Qx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/L3AI0Qx.png[/img]')"/>
<img src="https://i.imgur.com/7mapiA4.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/7mapiA4.png[/img]')"/>
<img src="https://i.imgur.com/8rv5jrF.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/8rv5jrF.png[/img]')"/>
<img src="https://i.imgur.com/1zGgmXu.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/1zGgmXu.png[/img]')"/>
<img src="https://i.imgur.com/vQKVvO0.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/vQKVvO0.png[/img]')"/>
<img src="https://i.imgur.com/n9uPdwx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/n9uPdwx.png[/img]')"/>
<img src="https://i.imgur.com/6QaamVn.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/6QaamVn.png[/img]')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики2"){
b.value="Смайлики2"
p.style.display="block"}
else{
b.value="Смайлики2"
p.style.display="none"}
return false}
</script>

0

9

Gotham написал(а):

Извините) Не знала)) Вот)

Поправил, там еще привязка по ИД дива была - не заметил:

Скрипт
Код:
<div>
<input type="button" value="Смайлики" onclick="return changeVisibility('spll')">
<div id="spll" style="display: none;">
<img src="https://i.imgur.com/F5YA3bL.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/F5YA3bL.gif[/img]')"/>
<img src="https://i.imgur.com/aafBJFK.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/aafBJFK.gif[/img]')"/>
<img src="https://i.imgur.com/qg6tIOK.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/qg6tIOK.gif[/img]')"/>
<img src="https://i.imgur.com/j0vt6NG.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/j0vt6NG.gif[/img]')"/>
<img src="https://i.imgur.com/K4tyZVh.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/K4tyZVh.gif[/img]')"/>
<img src="https://i.imgur.com/RU32uoW.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/RU32uoW.gif[/img]')"/>
<img src="https://i.imgur.com/xU9yerC.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/xU9yerC.gif[/img]')"/>
<img src="https://i.imgur.com/uiB7W1U.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/uiB7W1U.gif[/img]')"/>
<img src="https://i.imgur.com/NvubVXS.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/NvubVXS.gif[/img]')"/>
<img src="https://i.imgur.com/dsq8aj7.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/dsq8aj7.gif[/img]')"/>
<img src="https://i.imgur.com/s52SYHc.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/s52SYHc.gif[/img]')"/>
<img src="https://i.imgur.com/4Z2vf56.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/4Z2vf56.gif[/img]')"/>
<img src="https://i.imgur.com/EFK3eqa.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/EFK3eqa.gif[/img]')"/>
<img src="https://i.imgur.com/jtxYxHL.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/jtxYxHL.gif[/img]')"/>
<img src="https://i.imgur.com/i6z87KJ.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/i6z87KJ.gif[/img]')"/>
<img src="https://i.imgur.com/3vj6DGf.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/3vj6DGf.gif[/img]')"/>
<img src="https://i.imgur.com/sUZI9YO.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/sUZI9YO.gif[/img]')"/>
<img src="https://i.imgur.com/TgGHIsz.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/TgGHIsz.gif[/img]')"/>
<img src="https://i.imgur.com/JHfLixv.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/JHfLixv.gif[/img]')"/>
<img src="https://i.imgur.com/rMTdDTc.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/rMTdDTc.gif[/img]')"/>
<img src="https://i.imgur.com/VoATWxr.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/VoATWxr.gif[/img]')"/>
<img src="https://i.imgur.com/WsLznJm.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/WsLznJm.gif[/img]')"/>
<img src="https://i.imgur.com/pjfeQ6X.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/pjfeQ6X.gif[/img]')"/>
<img src="https://i.imgur.com/gincGeV.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/gincGeV.gif[/img]')"/>
<img src="https://i.imgur.com/yuytUMf.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/yuytUMf.gif[/img]')"/>
<img src="https://i.imgur.com/9AiCWRW.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/9AiCWRW.gif[/img]')"/>
<img src="https://i.imgur.com/Ad7r3L0.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Ad7r3L0.gif[/img]]')"/>
<img src="https://i.imgur.com/ZLzviQZ.gif" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/ZLzviQZ.gif[/img]')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики"){
b.value="Смайлики"
p.style.display="block"}
else{
b.value="Смайлики"
p.style.display="none"}
return false}
</script>
 
<div>
<input type="button" value="Смайлики2" onclick="return changeVisibility('spll2')">
<div id="spll2" style="display: none;">
<img src="https://i.imgur.com/awjzAwD.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/awjzAwD.png[/img]')"/>
<img src="https://i.imgur.com/nBWjHXM.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/nBWjHXM.png[/img]')"/>
<img src="https://i.imgur.com/mxMr2sg.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/mxMr2sg.png[/img]')"/>
<img src="https://i.imgur.com/tbwwKxk.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/tbwwKxk.png[/img]')"/>
<img src="https://i.imgur.com/LzhTzU6.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/LzhTzU6.png[/img]')"/>
<img src="https://i.imgur.com/ae0Ni4c.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/ae0Ni4c.png[/img]')"/>
<img src="https://i.imgur.com/z3A0uZC.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/z3A0uZC.png[/img]')"/>
<img src="https://i.imgur.com/Xt9NUmo.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Xt9NUmo.png[/img]')"/>
<img src="https://i.imgur.com/kBCRlem.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/kBCRlem.png[/img]')"/>
<img src="https://i.imgur.com/UYAFsTr.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/UYAFsTr.png[/img]')"/>
<img src="https://i.imgur.com/tN6jJYx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/tN6jJYx.png[/img]')"/>
<img src="https://i.imgur.com/AzuvIiZ.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/AzuvIiZ.png[/img]')"/>
<img src="https://i.imgur.com/dwwWvT3.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/dwwWvT3.png[/img]')"/>
<img src="https://i.imgur.com/TvWXBD4.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/TvWXBD4.png[/img]')"/>
<img src="https://i.imgur.com/t9anHGk.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/t9anHGk.png[/img]')"/>
<img src="https://i.imgur.com/d5I73OY.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/d5I73OY.png[/img]')"/>
<img src="https://i.imgur.com/uk5DUdC.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/uk5DUdC.png[/img]')"/>
<img src="https://i.imgur.com/FXAa7oI.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/FXAa7oI.png[/img]')"/>
<img src="https://i.imgur.com/9Tb7X0G.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/9Tb7X0G.png[/img]')"/>
<img src="https://i.imgur.com/wgSSfpm.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/wgSSfpm.png[/img]')"/>
<img src="https://i.imgur.com/vxciSIj.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/vxciSIj.png[/img]')"/>
<img src="https://i.imgur.com/QAaAEGt.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/QAaAEGt.png[/img]')"/>
<img src="https://i.imgur.com/Iq3idwB.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/Iq3idwB.png[/img]')"/>
<img src="https://i.imgur.com/3hzt5JG.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/3hzt5JG.png[/img]')"/>
<img src="https://i.imgur.com/NgoGOKL.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/NgoGOKL.png[/img]')"/>
<img src="https://i.imgur.com/L3AI0Qx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/L3AI0Qx.png[/img]')"/>
<img src="https://i.imgur.com/7mapiA4.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/7mapiA4.png[/img]')"/>
<img src="https://i.imgur.com/8rv5jrF.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/8rv5jrF.png[/img]')"/>
<img src="https://i.imgur.com/1zGgmXu.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/1zGgmXu.png[/img]')"/>
<img src="https://i.imgur.com/vQKVvO0.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/vQKVvO0.png[/img]')"/>
<img src="https://i.imgur.com/n9uPdwx.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/n9uPdwx.png[/img]')"/>
<img src="https://i.imgur.com/6QaamVn.png" style="cursor:pointer"onclick="smile('[img]https://i.imgur.com/6QaamVn.png[/img]')"/>
</div>
<script>
function showhide(b){
p = b.parentNode.getElementsByTagName("p")[0]
if(b.value=="Смайлики2"){
b.value="Смайлики2"
p.style.display="block"}
else{
b.value="Смайлики2"
p.style.display="none"}
return false}
</script>

Отредактировано kolobdur74 (Чт, 28 Дек 2017 14:27:23)

+1

10

Вау! Так быстро! Теперь всё отлично работает)) Огромнейшее спасибо Вам! Вы очень помогли!  :love:  :love:  :love:

+1


Вы здесь » Единый форум поддержки » Проблемы с форумом » Проблема с корректным отображением скрипта