![]() |
|
Модераторы: Illuminaty |
![]()
|
|
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
Нужно сделать так, чтобы сразу после появления или полной загрузки яндекского баннера происходило действие JavaScript. Желательно, конечно, чтобы ето действие происходило как тока баннер начинает появлятся, но думаю, это не реально, тады пускай происходит после его полной загрузки.
Заранее спасибо! -------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
для IMG баннера прописываешь:
-------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
Нет, самое прикольное, что баннера у меня нет: он хранится на серваке яндекса ввиде Java скрипта, который и загружает само изображение. Как поступить в этом случае?
-------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
а как это в HTML вылядит?
-------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
<script src="какой-то путь к скрипту"></script>
-------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
эт на народ.ру, чтоль? как именно выглядит скрипт? -------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
Да, НАРОД.РУ... Вот текст скрипта:
// <script language="javascript"> on=mw=null; fl=ofl=0; mc=me=0; t=0; b=0; ch=bt=bn=0; wn=wt=null; sl=0; t2=0; function Is676C4F41() { this.n=(document.layers)?true:false; this.o=(navigator.userAgent.indexOf('Opera')!=-1)?true:false; this.i=(document.all&&(!this.o))?true:false; this.d=(document.getElementById)?true:false; } var is676C4F41=new Is676C4F41(); function Stor() { if(is676C4F41.n&&(top.frames.length>0)){ return top.frames[0]; } else{ return top; } } var st=Stor(); if(isNaN(st.sl)) st.sl=1; else st.sl++; function ge676C4F41() { var cl; if(is676C4F41.n){ cl=document.layers[ge676C4F41.arguments[0]]; for(var i=1;i<ge676C4F41.arguments.length&&cl;i++) { cl=cl.document.layers[ge676C4F41.arguments[i]]; } return cl; } else if(is676C4F41.i) { cl=eval('document.all.'+ge676C4F41.arguments[ge676C4F41.arguments.length-1]); return cl; } else { var n=ge676C4F41.arguments[ge676C4F41.arguments.length-1]; cl=document.getElementById(n); if(cl) return cl; cl=document.getElementsByName(n); if(cl) return cl[0]; } } function sbv676C4F41(v) { if(is676C4F41.n) st.b.visibility=v; else if(st.b.style) st.b.style.visibility=v; } function met676C4F41(e,x,y) { if(is676C4F41.n) e.moveTo(x,y); else if(is676C4F41.i) { e.style.pixelLeft=x; e.style.pixelTop=y; } else { e.style.left=x; e.style.top=y; } } function gbw676C4F41(e) { if(is676C4F41.n) return e.document.width; else return e.offsetWidth; } function gbo676C4F41(e) { var y; if(is676C4F41.n) return e.pageY; else { y = 0; while (e.offsetParent != null) { y += e.offsetTop; e = e.offsetParent; } y += e.offsetTop; return y; } } function gww676C4F41() { if(window.innerWidth) return window.innerWidth; else return document.body.clientWidth; } function gwh676C4F41() { if(window.innerHeight) return window.innerHeight; else return document.body.clientWidth; } function rbu676C4F41() { if(st.b==st.bn){ sbv676C4F41('hidden'); st.b=st.bt; sbv676C4F41('visible'); } clearTimeout(st.t); } function rbd676C4F41() { if(st.b==st.bt){ sbv676C4F41('hidden'); st.b=st.bn; sbv676C4F41('visible'); } clearTimeout(st.t); } function clb676C4F41() { clearTimeout(st.t); sbv676C4F41('hidden'); } function gn676C4F41(n,c) { if (is676C4F41.n) { document.write('<layer id="'+n+'" left=0 top=0 visibility=hide z-index=999>') } else { document.write('<div style="position: absolute; left: 0; top: 0;'+(is676C4F41.i?" width: 1;":"")+' visibility: hidden; z-index: 999;" id="'+n+'">'); } document.write('<table cellpadding=1 cellspacing=0 border=0 width="1"><tr><td bgcolor=000000><table cellpadding=0 cellspacing=0 border=0 width=100%><tr bgcolor=ffffff><td height=1 nowrap><spacer type=block width=1 height=1></td></tr><tr><td><table cellpadding=0 cellspacing=0 border=0 width="100%"><tr bgcolor=cccccc><td width=1 nowrap bgcolor=ffffff><spacer type=block width=1 height=1></td><td width=18><a href="http://www.yandex.ru/" target=_blank><img src="http://bs.yandex.ru/resource/by.gif" title="Яндекс" alt="Яндекс" width=18 height=14 border=0 vspace=2 hspace=2></a></td><td width="98%"><a href="http://www.yandex.ru/advertising/index.html" target=_blank><img src="http://bs.yandex.ru/resource/bt.gif" title="Реклама на Яндексе" alt="Реклама на Яндексе" width=51 height=14 border=0 align=middle></a></td><td width=11><a href="http://narod.yandex.ru/help/mini.yhtml" target=_blank><img src="http://bs.yandex.ru/resource/bh.gif" title="Помощь" alt="Помощь" width=11 height=10 border=0></a></td><td width=11>'); if (n=='bn') { document.write('<a href="#" onclick="rbu676C4F41(); return false;"><img src="http://bs.yandex.ru/resource/bu.gif" title="Спрятать" alt="Спрятать" width=11 height=10 border=0></a>'); } else { document.write('<a href="#" onclick="rbd676C4F41(); return false;"><img src="http://bs.yandex.ru/resource/bd.gif" title="Показать" alt="Показать" width=11 height=10 border=0></a></td><td width=11><a href="#" onclick="clb676C4F41();return false;"><img src="http://bs.yandex.ru/resource/bc.gif" title="Закрыть" alt="Закрыть" width=11 height=10 border=0></a>'); } document.write('</td><td width=1 nowrap bgcolor=808080><spacer type=block width=1 height=1></td></tr></table></td></tr><tr><td><table cellpadding=0 cellspacing=0 border=0 width="100%"><tr bgcolor=cccccc><td width=3><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td><td width="100%" bgcolor=808080><spacer type=block width=1 height=1></td><td width=3><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td></tr><tr bgcolor=cccccc><td width=3 background="http://bs.yandex.ru/resource/bb.gif"><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td><td width="100%">'+c+'</td><td width=3 background="http://bs.yandex.ru/resource/bb.gif"><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td></tr><tr><td width=3 background="http://bs.yandex.ru/resource/bb.gif"><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td><td height=1 bgcolor=ffffff><spacer type=block width=1 height=1></td><td width=3 background="http://bs.yandex.ru/resource/bb.gif"><img src="http://bs.yandex.ru/resource/bb.gif" width=3 height=1></td></tr></table></td></tr><tr bgcolor=cccccc><td height=1 nowrap><table cellpadding=0 cellspacing=0 border=0 width=1 align=left><td height=1 nowrap bgcolor=ffffff><spacer type=block width=1 height=1></td></table><table cellpadding=0 cellspacing=0 border=0 width=1 align=right><td height=1 nowrap bgcolor=808080><spacer type=block width=1 height=1></td></table></td></tr><tr bgcolor=808080><td height=1 nowrap><img src="http://u1813.85.spylog.com/cnt?cid=181385&p=0&rn=676C4F41" alt="" border=0 width=1 height=1></td></tr></table></td></tr></table>'); if (is676C4F41.n) document.writeln('</layer>'); else document.writeln('</div>'); } function mvb676C4F41() { var obn=0; var obt=0; if(bn==0) bn=ge676C4F41('bn'); if(bt==0) bt=ge676C4F41('bt'); if(ch==0) ch=ge676C4F41('ch'); if(!wn) wn=gbw676C4F41(bn); if(!wt) wt=gbw676C4F41(bt); w=gww676C4F41(); h=gwh676C4F41(); o=gbo676C4F41(ch); obn=w-wn; obt=w-wt; if((!is676C4F41.i) && h<o) { obn -= 15; obt -= 15; } met676C4F41(bn,obn,0); met676C4F41(bt,obt,0); } function shb676C4F41() { if((self!=st.mw)&&(top.frames.length>0)) return; mvb676C4F41(); st.bt = bt; st.b = st.bn = bn; sbv676C4F41('visible'); st.t=setTimeout('rbu676C4F41()',30000); if(on) { sv=st; on(); st=sv; } } function isl676C4F41() { if(st.sl==0) { if(st.mw==self) { if(st.b) sbv676C4F41('hidden'); shb676C4F41(); } clearTimeout(t2); } else { ofl=st.fl; t2=self.setTimeout('self.isl676C4F41()',100); } } function net676C4F41(s) { if(s>st.mc){ st.mc=s; st.mw=self; isl676C4F41(); } } function rbf676C4F41() { if (wc != window.innerWidth || hc != window.innerHeight) document.location.reload(); } fn = frames.length; if(fn>0){ e=document.getElementsByTagName('iframe'); if(is676C4F41.d) fn-=e.length; } if(fn==0) { if (is676C4F41.n) { document.write('<layer id="ch" left=0 visibility=hide><spacer type=block width=1 height=1></layer>'); } else { document.write('<div style="position: absolute; left: 0; visibility: hidden;" id="ch"><spacer type=block width=1 height=1></div>'); } gn676C4F41('bn', '<a href="http://bs.yandex.ru/count/676C4F41/163/216/00000000/4860/15862" target=_blank title="KonicaDigital - цифровые фотоуслуги"><img src="http://bs.yandex.ru/count/676C4F41/163/216/00000000/4860/15863" alt="KonicaDigital - цифровые фотоуслуги" width="100" height="100" border="0"></a>'); gn676C4F41('bt', '<a href="http://bs.yandex.ru/count/676C4F41/163/216/00000000/4860/15862" target=_blank><font size=-2 color="#000000">KonicaDigital - цифровые фотоуслуги</font></a>'); if(is676C4F41.n) { wc=window.innerWidth; hc=window.innerHeight; window.onResize=rbf676C4F41; } else if(is676C4F41.i) { window.onresize=mvb676C4F41; } else { addEventListener("resize",mvb676C4F41,false); } if(is676C4F41.i) { if(st.fl==null) { st.fl=0; st.mw=null; st.mc=0; } } else { if(isNaN(st.fl)) { st.fl=0; st.mw=null; st.mc=0; } } if(top.frames.length>0) { me=st.fl++; x=gww676C4F41(); y=gwh676C4F41(); s=x*y; if(x>120&&y>120&&s>st.mc) { if(st.mc==0) setTimeout('self.net676C4F41('+s+')',x/10); else { st.mc=s; st.mw=self; isl676C4F41(); } } st.sl--; } else { if(window.onload) on=window.onload; window.onload=shb676C4F41; } } // </script> При этом, еси взять и выполнит clb5D2706EB(), то баннер будет закрыт! -------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
тут похоже все имена слоев и функций генерятся динамически, мне ничего в голову не приходит...
-------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
Ладно, а можно ли в HTML создать что-то типа таймера, скажем, на 5 сек, чтобы после пяти сек происходило событие?
-------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
-------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
кстати насчет народ.ру:
раньше с рекламой была такая штука (может, и щас есть): если ХТМЛ фаилы делать не .htm и .html, а .txt, то браузер их определяет как html, а сервер как txt, и реклама на них не вешается. -------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
| Borland_Delphi_6 |
|
|||
![]() LoneLINEss ![]() ![]() ![]() ![]() Профиль Группа: Участник Клуба Сообщений: 2509 Регистрация: 5.11.2002 Где: in fortune dreams ... Репутация: нет Всего: 20 |
Я вот тут выяснил: функция закрытия баннера типа такой:clbкакие-то цифры.
Например: clb676C4F41(). Но он сам эти цифры генерирует. Наверное, в html нет возможности найти первые три буквы функции и исполнить ее, но если все таки есть, поделись! -------------------- Blind Guardian Fan :: BMSTU Student :: A polar bear is a rectangular bear after a coordinate transform. Мои фотографии |
|||
|
||||
| MuToGeN |
|
|||
![]() Лесник ![]() ![]() ![]() ![]() Профиль Группа: Модератор Сообщений: 4379 Регистрация: 15.8.2002 Где: Москва Репутация: нет Всего: 32 |
если получишь переменную с названием функции, то тут может помочь eval(). а вот как эту переменную получить - подсказать не могу
-------------------- Three pings for the token rings, Five pings for the UNIX machines, Hundred pings for the broken links, One special ping to check them all Through Simple Network Management Protocol! |
|||
|
||||
![]()
|
| 0 Пользователей читают эту тему (0 Гостей и 0 Скрытых Пользователей) | |
| 0 Пользователей: | |
| « Предыдущая тема | Вёрстка веб-сайтов | Следующая тема » |
|
|
По вопросам размещения рекламы пишите на vladimir(sobaka)vingrad.ru
Отказ от ответственности Powered by Invision Power Board(R) 1.3 © 2003 IPS, Inc. |