At 02:42 +0400 21.10.01, Chudovishe wrote:
>� ��� ����� �� �������� ���������� ������ �����?
>
>���� ��� ������ ������� ������� ����� ������ ������?
>
>������� ��������� �������� � ��� ����������� ��� ������ ������� �� ������
>������ �� �������
>
>

��� ���, ����� ��, ������ �� ��, ��� ����:


<HTML>
<HEAD>
<TITLE>Random Banner Ads</TITLE>
<META HTTP-EQUIV="The JavaScript Source" CONTENT="no-cache">
<META NAME="description" CONTENT="Need to rotate banner ads on your site?  How about 
doing it in JavaScript!  This simple little JavaScript will print out a random banner 
ad each time your page is viewed.  Awesome!">
</HEAD>

<BODY>

<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var how_many_ads = 3;
var now = new Date()
var sec = now.getSeconds()
var ad = sec % how_many_ads;
ad +=1;
if (ad==1) {
txt="The World's Largest Online Bookstore, Amazon.com";
url="http://www.amazon.com";;
alt="amazon.com";
banner="ad1.gif";
width="468";
height="60";
}
if (ad==2) {
txt="Palm III by 3Com, in stock!";
url="http://cybershop.com/";;
alt="cybershop.com";
banner="ad2.gif";
width="468";
height="60";
}
if (ad==3) {
txt="Find it at GoTo.com"; 
url="http://www.goto.com";;
alt="goto.com";
banner="ad3.gif";
width="468";
height="60";
}
document.write('<center>');
document.write('<a href=\"' + url + '\" target=\"_top\">');
document.write('<img src=\"' + banner + '\" width=')
document.write(width + ' height=' + height + ' ');
document.write('alt=\"' + alt + '\" border=0><br>');
document.write('<small>' + txt + '</small></a>');
document.write('</center>');
// End -->
</SCRIPT>

<!-- Script Size:  1.44 KB  -->
</BODY></HTML>
With best regards
Michael Krekin

http://www.chat.ru/~mckryak/


-----
Machelp; policy & news @ http://www.macrules.ru

Ответить