Как создать правильно файл xxx.js.
Не могу найти как создать правильно файл xxx.js.
Предположим мне надо вставить 3 баннера на все страницы сайта.
Можно на конкретном примере как создать файл js с этими баннерами (внизу) и что нужно вставить в страницу для подгрузки этого файла.
На сколько мне известно ссылки с JS файлы не учитываются как исходящие, я прав?

Цитата

<!--LiveInternet counter--><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='http://counter.yadro.ru/hit?t45.6;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet' "+
"border=0 width=31 height=31><\/a>")//--></script><!--/LiveInternet-->

<script type="text/javascript"><!--
document.write('<a href="http://click.kmindex.ru/?uid=102311" target=_top><img '+
'src="http://counting.kmindex.ru/22.gif?uid=102311&r='+escape(document.referrer)+
'&'+Math.random()+'" width=88 height=12 border=0 alt=KMindex></a>')
//--></script>

<!--Rating@Mail.ru COUNTEr--><a target=_top
href="http://top.mail.ru/jump?from=1197558" target="_blank" rel="nofollow"><img
src="http://d5.c4.b2.a1.top.list.ru/counter?id=1197558;t=76"
border=0 height=31 width=38
alt="Рейтинг@Mail.ru"/></a><!--/COUNTER-->