timbios Posted January 10, 2015 Report Share Posted January 10, 2015 (edited) Думаю интересный скрипт, к тому же полезный)Нужно только под себя настроить!1.В main.tpl найти: [logged]<a href="/news">[/logged]<div class="logo"></div>[logged]</a>[/logged] Заменить на: [logged]<a href="/news" onClick="Page.Go(this.href); return false">[/logged] <script language="JavaScript"> function setcookie(a,b,c) {if(c){var d = new Date();d.setTime(d.getTime()+c);}if(a && document.cookie = a+'='+b+(c ? '; expires='+d.toUTCString() : '');else return false;} function getcookie(a) {var b = new RegExp(a+'=([^;]){1,}');var c = b.exec(document.cookie);if(c) c = c[0].split('=');else return false;return c[1] ? c[1] : false;} image = new Array(); image[0]="{theme}/images/logo-christmas/1.png" image[1]="{theme}/images/logo-christmas/2.png" image[2]="{theme}/images/logo-christmas/3.png" image[3]="{theme}/images/logo-christmas/4.png" image[4]="{theme}/images/logo-christmas/5.png" image[5]="{theme}/images/logo-christmas/6.png" image[6]="{theme}/images/logo-christmas/7.png" image[7]="{theme}/images/logo-christmas/8.png" image[8]="{theme}/images/logo-christmas/9.png" var NUM=getcookie('imgNUM'); if(NUM){NUM = (+NUM)%image.length;} else NUM =0; setcookie('imgNUM',NUM+1); document.write ("<img class='logo-christmas' src="+image[NUM]+">"); </script> [logged]</a>[/logged] Автор: Shaman Edited June 20, 2015 by Иосиф Сталин 2 Quote Link to comment Share on other sites More sharing options...
m4ks Posted January 30, 2016 Report Share Posted January 30, 2016 Спасибо! Quote Link to comment Share on other sites More sharing options...
Василий Posted March 29, 2016 Report Share Posted March 29, 2016 А скорин есть ? Quote Link to comment Share on other sites More sharing options...
Shaman Daniels Posted March 29, 2016 Report Share Posted March 29, 2016 А скорин есть ? А разве не видно? -Его нет. Да и нечего скринить. Quote Link to comment Share on other sites More sharing options...
Василий Posted March 29, 2016 Report Share Posted March 29, 2016 А разве не видно? -Его нет. Да и нечего скринить. Я вижу что нет . поэтому и спросил Quote Link to comment Share on other sites More sharing options...
alexivanov a.k.a proxxamma Posted April 5, 2016 Report Share Posted April 5, 2016 Думаю интересный скрипт, к тому же полезный) Нужно только под себя настроить! 1.В main.tpl найти: [logged]<a href="/news">[/logged]<div class="logo"></div>[logged]</a>[/logged] Заменить на:[logged]<a href="/news" onClick="Page.Go(this.href); return false">[/logged] <script language="JavaScript"> function setcookie(a,b,c) {if(c){var d = new Date();d.setTime(d.getTime()+c);}if(a && document.cookie = a+'='+b+(c ? '; expires='+d.toUTCString() : '');else return false;} function getcookie(a) {var b = new RegExp(a+'=([^;]){1,}');var c = b.exec(document.cookie);if(c) c = c[0].split('=');else return false;return c[1] ? c[1] : false;} image = new Array(); image[0]="{theme}/images/logo-christmas/1.png" image[1]="{theme}/images/logo-christmas/2.png" image[2]="{theme}/images/logo-christmas/3.png" image[3]="{theme}/images/logo-christmas/4.png" image[4]="{theme}/images/logo-christmas/5.png" image[5]="{theme}/images/logo-christmas/6.png" image[6]="{theme}/images/logo-christmas/7.png" image[7]="{theme}/images/logo-christmas/8.png" image[8]="{theme}/images/logo-christmas/9.png" var NUM=getcookie('imgNUM'); if(NUM){NUM = (+NUM)%image.length;} else NUM =0; setcookie('imgNUM',NUM+1); document.write ("<img class='logo-christmas' src="+image[NUM]+">"); </script> [logged]</a>[/logged] Автор: Shaman Генерации случайного лого? Quote Link to comment Share on other sites More sharing options...
Why Not Posted April 6, 2016 Report Share Posted April 6, 2016 Я вижу что нет . поэтому и спросил А зачем тебе скрин? Что непонятного в этой фиче? Меняется картинка при обновлении страницы. Quote Link to comment Share on other sites More sharing options...
Василий Posted April 6, 2016 Report Share Posted April 6, 2016 А зачем тебе скрин? Что непонятного в этой фиче? Меняется картинка при обновлении страницы. спасибо ...просто я не замечал это Вк Quote Link to comment Share on other sites More sharing options...
Why Not Posted April 7, 2016 Report Share Posted April 7, 2016 спасибо ...просто я не замечал это Вк В вк это в основном происходит, когда какой то праздник, к примеру 9 мая или новый год Quote Link to comment Share on other sites More sharing options...
Василий Posted April 7, 2016 Report Share Posted April 7, 2016 В вк это в основном происходит, когда какой то праздник, к примеру 9 мая или новый год теперь понял что и где ..)) так это классная штука ..... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.