Угловой баннер - Форум
Главная | Регистрация | ВходПриветствую Вас Гость | RSS
Меню сайта
Counter-strike 1.6

КОД
Counter-strike INFO
КОД
Counter-strike Source
КОД
Team Fortress 2
КОД
Left 4 Dead
КОД
Мини-чат
500
Наш опрос
Какая граната вам больше нравится??
Всего ответов: 1396
Реклама на сайте

КОД БАНЕРА

[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Угловой баннер
ZimeQДата: Воскресенье, 14.12.2008, 10:03 | Сообщение # 1
Admin
Группа: Админушка
Сообщений: 170
Награды: 0
Репутация: 5
Статус:
Ну вот объяснение как сделать Угловой баннер:

Открываете Блокнот. Туда вставляете текст:

Code

/*         
           Das Copyright dieses Scriptes liegt beim Autor.         
           Bitte die Lizenzbedingungen beachten, und ausgefГјllt zurГјcksenden.         
           Fixed By Mavi-style.ru - http://mavi-style.ru /         
*/         

var esel = new Object();         
// --------------------------------------------------------- MODIFY TARGET URL         
esel.ad_url = escape('Ссылка на сайт'); // Change URL to be redirected to when clicking Peel Away Ad         
// --------------------------------------------------------- END TARGET URL         

esel.small_path = 'http://www.mavi-style.ru/images/baner/esel_s.swf';    // Enter the URL of the Peel Away Corner Flash         
esel.small_image = escape('Ссылка на картинку маленькую');    // URL of the Image behind the Peel         
esel.big_path = 'http://www.mavi-style.ru/images/baner/esel_b.swf'; // Enter the URL of the Large Peel Away Corner         
esel.big_image = escape('Ссылка на картинку большую'); // URL of the Big Image Behind the Peel         

// Do NOT Change anything under this line! -----------------------------------------------------------------------------------         

esel.small_width = '100';         
esel.small_height = '100';         
esel.small_params = 'ico=' + esel.small_image;         
esel.big_width = '650';         
esel.big_height = '650';         
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;         
function sizeup987(){         
           document.getElementById('eselcornerBig').style.top = '0px';         
           document.getElementById('eselcornerSmall').style.top = '-1000px';         
}         
function sizedown987(){         
           document.getElementById("eselcornerSmall").style.top = "0px";         
           document.getElementById("eselcornerBig").style.top = "-1000px";         
}         
esel.putObjects = function () {         
document.write('<div id="eselcornerSmall" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;">');         
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');         
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');         
document.write(' id="eselcornerSmallObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');         
document.write(' <param name="allowScriptAccess" value="always"/> ');         
document.write(' <param name="menu" value="false"/>');         
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');         
document.write(' <param name="wmode" value="transparent" />');         
document.write(' <param name="quality" value="high" /> ');         
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');         
document.write('<embed menu="false" src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');         
document.write('</object></div></script>');         
document.write('<div id="eselcornerBig" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;">');         
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');         
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');         
document.write(' id="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'">');         
document.write(' <param name="allowScriptAccess" value="always"/> ');         
document.write(' <param name="menu" value="false"/>');         
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');         
document.write(' <param name="wmode" value="transparent"/>');         
document.write(' <param name="quality" value="high" /> ');         
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');         
document.write('<embed menu="false" src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');         
document.write('</object></div>');         
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);         
}         
esel.putObjects();
Code


Ссылка на сайт - на какой сайт будет перекидывать при нажатии
Ссылка на картинку маленькую - маленькая
Ссылка на картинку большую - большая

----------

Затем сохраняете под таким названиемь "esel.js". И загружаете на сайт в любую директорию.
И на конец, заходите - Админка -> Управление дизайном -> На какой странице хотите установить баннер. И сразу после "head" ставите:  


<script src="http://ваш_сайт.ru/esel.js" type="text/javascript"></script>

ВОТ И ВСЕ smile


 
  • Страница 1 из 1
  • 1
Поиск:

Форма входа
Поиск
Друзья сайта
Статистика

"