Скрипт для создания светящихся надписей.

Опубликовано:
Просмотров: 3439
+4
Голосов: 4

Возможно кому нибудь пригодится. Скрипт для создания светящихся надписей, разобраться нетрудно, вставьте в код там все увидите и примените, если нужно на сайте.

Код PHP:
  1. <script>
  2. <!-- Beginning of JavaScript -
  3. var i_strength=0
  4. var max_strength=6
  5. var shadowcolor="red"
  6. var timer
  7. var speed=50
  8. var thisobj
  9. function gotoURL(){
  10. var newWindow=window.open("http://case.nm.ru","newwin","status,
  11. directories,menubar,scrollbars,titlebar, toolbar,resizable,HEIGHT=600,WIDTH=400")
  12. newWindow.focus()
  13. }
  14. function stopfilter(thisdiv){
  15. if (document.all) {
  16. clearTimeout(timer)
  17. thisobj=thisdiv
  18. thisobj.style.filter=" "
  19. }
  20. }
  21. function startfilter(thisdiv){
  22. if (document.all) {
  23. clearTimeout(timer)
  24. thisobj=thisdiv
  25. morefilter()
  26. }
  27. }
  28. function morefilter(){
  29. if (i_strength <=max_strength) {
  30. thisobj.style.filter="glow(color="+shadowcolor+", strength="+i_strength+")"
  31. i_strength++
  32. timer = setTimeout("morefilter()",speed)
  33. }
  34. else {
  35. clearTimeout(timer)
  36. lessfilter()
  37. }
  38. }
  39. function lessfilter(){
  40. if (i_strength >=0) {
  41. thisobj.style.filter="glow(color="+shadowcolor+", strength="+i_strength+")"
  42. i_strength--
  43. timer = setTimeout("lessfilter()",speed)
  44. }
  45. else {
  46. clearTimeout(timer)
  47. morefilter()
  48. }
  49. }
  50. // - End of JavaScript - -->
  51. </SCRIPT>
  52. <STYLE type=text/css>.nav { CURSOR:HAND; COLOR: #ffffff;
  53. FONT-FAMILY: Times; FONT-SIZE: 25pt; LEFT: 40px; POSITION: absolute;
  54. TEXT-DECORATION: none}
  55. </STYLE>
  56. </HEAD>
  57. <BODY aLink=#ffffff bgColor=#000000 link=#ffffff vLink=#ffffff>
  58. <DIV class=nav id=news onclick=gotoURL() onmouseout=stopfilter(this)
  59. onmouseover=startfilter(this) style="TOP: 20px">cmsinstant</DIV>
  60. <DIV class=nav id=contact onclick=gotoURL() onmouseout=stopfilter(this)
  61. onmouseover=startfilter(this) style="TOP: 60px">сайт </DIV>
  62. <DIV class=nav id=chart onclick=gotoURL() onmouseout=stopfilter(this)
  63. onmouseover=startfilter(this) style="TOP: 100px">развития</DIV>
  64. <DIV class=nav id=besteller onclick=gotoURL() onmouseout=stopfilter(this)
  65. onmouseover=startfilter(this) style="TOP: 140px">сайтов</DIV>
  66. <DIV class=nav id=scriptkiller onclick=gotoURL() onmouseout=stopfilter(this)
  67. onmouseover=startfilter(this) style="TOP: 180px">на Instant CMS</DIV>
Комментарии (2)
Gman #
: 0
подробнее можно что куда. Не все могут понять
Вадим Кондаков #
: +1
Спасибо! очень пригадилась +1

Голосуем

Самый нужный компонент