
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
28.05.2009, 12:48
|
|||
|---|---|---|---|
|
|||
Не работает JavaScript в FireFox |
|||
|
#18+
Скрипт смены эффектов с тестом работает в IE. В Firefox - пустая страница. Полный код: <html> <head> <HTML> <HEAD> <script LANGUAGE="JavaScript1.1"> <!-- messages = new Array() messages[0] = "23 разных эффекта дл\я страницы" messages[1] = "Размер шрифта и цвет фона" messages[2] = "выбираются случайным образом" messages[3] = "и эффект тоже..." messages[4] = "В Netscape Navigator работает." messages[5] = "Выбирайте другие скрипты на http://dweb.ru/" messages[6] = "enhance the impact of your pages" messages[7] = "without wasting bandwidth and space." messages[8] = "What a pity that" messages[9] = "Netscape Navigator users can't see it." messages[10] = "Transition effects are great if you want to" messages[11] = "draw the attention of your visitors" messages[12] = "without prolonging the loading time." messages[13] = "What a pity that" messages[14] = "Netscape Navigator users can't see it." messages[15] = "Transition effects are great if you want to" messages[16] = "attract new visitors" messages[17] = "without wasting bandwidth and space." messages[18] = "Now it's time to say goodbye." messages[19] = "Thank you for visiting case.nm.ru" messages[20] = "We hope seeing you soon again." messages[21] = "Have a nice trip into the next century." mescolor = new Array() mescolor[0] = "000000" mescolor[1] = "FF0000" mescolor[2] = "226622" mescolor[3] = "0000FF" mescolor[4] = "FFFF00" textfont = new Array() textfont[0] = "Verdana" textfont[1] = "Times" textfont[2] = "Arial" bagcolor = new Array() bagcolor[0] = "CCCCCC" bagcolor[1] = "Yellow" bagcolor[2] = "CCFFFF" bagcolor[3] = "AAEEFF" bagcolor[4] = "CCFF88" bagcolor[5] = "orange" bagcolor[6] = "99AAFF" var i_messages = 0 var timer function randomposition(range) { return Math.floor(range*Math.random()) } function dotransition() { if (document.all) { content.filters[i_messages].apply() content.innerHTML = "<table width=320 height=180 border=2><tr><td bgcolor="+bagcolor[randomposition(6)]+" style='color:"+mescolor[randomposition(4)]+";font-family:"+textfont[randomposition(2)]+";font-size:28pt' align=center valign=middle>"+messages[i_messages]+"</td></tr></table>" content.filters[i_messages].play() if (i_messages >= messages.length-1) { i_messages = 0 } else { i_messages++ } } if (document.layers) { document.nn.document.write("<table width=320 height=180 border=2><tr><td bgcolor="+bagcolor[randomposition(6)]+" align=center valign=middle>") document.nn.document.write("<font face="+textfont[randomposition(2)]+" size=7 color="+mescolor[randomposition(4)]+">"+messages[i_messages]+"</font></td></tr></table>") document.close() if (i_messages >= messages.length-1) { i_messages = 0 } else { i_messages++ } } timer = setTimeout("dotransition()",3000) } // - End of JavaScript - --> </script> </HEAD> <BODY BGCOLOR="#FFFFFF" onload="dotransition()"> <DIV id=content style="position: absolute; top:20px; left:20px; width:560px; height:200px; text-align:center; filter: revealTrans(Transition=1, Duration=3) revealTrans(Transition=2, Duration=3) revealTrans(Transition=3, Duration=2) revealTrans(Transition=4, Duration=2) revealTrans(Transition=5, Duration=1) revealTrans(Transition=6, Duration=3) revealTrans(Transition=7, Duration=2) revealTrans(Transition=8, Duration=1) revealTrans(Transition=9, Duration=3) revealTrans(Transition=10, Duration=1) revealTrans(Transition=11, Duration=2) revealTrans(Transition=12, Duration=3) revealTrans(Transition=13, Duration=1) revealTrans(Transition=14, Duration=2) revealTrans(Transition=15, Duration=3) revealTrans(Transition=16 Duration=1) revealTrans(Transition=17, Duration=2) revealTrans(Transition=18, Duration=3) revealTrans(Transition=19, Duration=1) revealTrans(Transition=20, Duration=2) revealTrans(Transition=21, Duration=3) revealTrans(Transition=22, Duration=3)"> </DIV> <DIV id=source style="position: absolute; top:240; left:20; width:560; color: AAAAAA;text-align:center"><a href="http://www.case.agava.ru" target="_blank"></a></DIV> <DIV id=nn style="position: absolute; top:20px; left:135px"> </DIV> </BODY> </HTML> Может кто-нибудь сталкивался с подобной проблемой? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
28.05.2009, 12:51
|
|||
|---|---|---|---|
Не работает JavaScript в FireFox |
|||
|
#18+
Фильтры работают только под ИЕ. Вообще-то известный факт. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
28.05.2009, 14:12
|
|||
|---|---|---|---|
Не работает JavaScript в FireFox |
|||
|
#18+
Один из тех топиков, которые надо поставить как шаблон "как НЕ надо делать" - начиная от отсутствия отделения тэгами и заканчивая стилями. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
28.05.2009, 15:55
|
|||
|---|---|---|---|
Не работает JavaScript в FireFox |
|||
|
#18+
мда, дебелизм неизлечим. зачем читать про элементарные вещи, зачем читать правила форума, зачем пользоваться поисковиками для начала? лучше сразу сморозить глупость и отнять у других время. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=22&tablet=1&tid=1454767]: |
0ms |
get settings: |
6ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
42ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
25ms |
get tp. blocked users: |
1ms |
| others: | 206ms |
| total: | 301ms |

| 0 / 0 |
