|
|
|
Затемнение экрана
|
|||
|---|---|---|---|
|
#18+
Добр Всем! Подсккажите пожалуйста! Как сделать чтобы при всплывающем окне на сайте WordPress затухал экран (сайт). Код всплывающего окна простой: <a onmouseover='this.style.cursor="pointer" ' onfocus='this.blur();' onclick="document.getElementById('PopUp').style.display='block'"> <span style="text-decoration: underline;">Текст ссылки для открытия окна</span></a> <div id='PopUp' style='display: none; position: absolute; overflow: auto; overflow-x: hidden; right: 400px; top: 50px; border: solid black 1px; padding: 10px; background-color: rgb(255,255,225); text-align: justify; font-size: 12px; height: 300px; width: 635px;'> Кнопка закрытия окна <br /><div style='text-align: right;'><a onmouseover='this.style.cursor="pointer" ' style='font-size: 12px; top: 5px;' onfocus='this.blur();' onclick="document.getElementById('PopUp').style.display = 'none' " > <span style="text-decoration: underline;">закрыть</span></a></div> Текст окна Есть блок: <style> #opPopUp { background: #000; height: 100%; opacity: 0.5; position: fixed; width: 100%; z-index: 100; top: 0; left: 0; } </style> Так вот вопрос??? как вписать в функцию открытия окна opPopUp Заранее спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.05.2015, 21:43 |
|
||
|
Затемнение экрана
|
|||
|---|---|---|---|
|
#18+
tstas2004, что-то вроде: Код: html 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.05.2015, 23:49 |
|
||
|
|

start [/forum/topic.php?fid=22&tid=1446010]: |
0ms |
get settings: |
8ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
41ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
29ms |
get tp. blocked users: |
1ms |
| others: | 241ms |
| total: | 350ms |

| 0 / 0 |
