Code
<script type="text/javascript" language="javascript">
////////////////////////////////////////
//// title: Вывод Картинки с описанием
//// name: denk
//// web-site: nsp.moy.su
//// email: denk[{@}]bissnes.net
//// ver: free
////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//// config
urldir='http://ваш_сайт/директория_к_картинкам';
var inform_image_list = new Array(2); /// всего картинок
var inform_image_desc = new Array(2); /// всего описаний
//// the end config
//// линст картинок с их разширением
inform_image_list[1] = 'image_2.gif'; inform_image_desc[1] = 'Описани 1';
inform_image_list[2] = 'image_2.gif'; inform_image_desc[2] = 'описания 2';
//// здесь задайте какая картинка будет выводится первой
var current_logo = 1;
function inform_image1()
{
if (document.getElementById ('show_x'))
{
x = current_logo % inform_image_list.length;
innerHTML =
'<center><a href="#" style="text-decoration: none;">'
+ '<div style="padding-bottom: 7px;">у нас работает:</div><br><img src="'+urldir+''
+ inform_image_list[x] +'" border=0><div style="padding-top: 14px;"><b>'
+ inform_image_desc[x] + '</b></div></a></center>';
document.getElementById ('show_x').innerHTML = innerHTML;
current_logo++;
setTimeout ('inform_image1();', 10000);
}
}
</script>
<script type="text/javascript" language="javascript">
inform_image1();
document.write ('<div>');
for (i=0; i<inform_image_list.length; i++)
document.write ('<img src="'+urldir+''+inform_image_list[i]+'" width=0 height=0>');
document.write ('</div>');
</script>