To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
Forum Supportu
czo.pl/wxv.pl

wxv.pl [Problemy/Pytania] - Ikony dla działów

Sevano - 2012-10-10, 11:40
Temat postu: Ikony dla działów
Witam, czy zostanie wprowadzone dodawanie ikon dla działów?
Mich@ł - 2012-10-10, 14:51

Sevano, nie. Bo jak rozumiem chcesz zmienić ikony nowych postów itd?
Sevano - 2012-10-11, 15:18

Nie, chce, żeby każdy dział miał swój obrazek. (jeżeli nie wiesz o co mi chodzi, patrz to forum http://good-games.pl/ )
Szogi1910 - 2012-10-11, 15:50

Możesz dodać jedynie w opisie działu innej możliwości nie ma
Piotrek - 2012-10-11, 19:20

#Shogi1910 da się zrobić obrazki do kazdego działu inny.

Sevano łap kod
Kod:
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js></script>


<script>

function cher(dzial, wiersz, z, bez) {

var offset = dzial.charAt(0) == 'c' ? 2 : 1;

$dzial = $('#hc_' + dzial);
$wiersz = $dzial.find('tr:nth-child(' + (wiersz + offset) + ')');
$kolumna = $wiersz.find('td:nth-child(1)');


$img = $kolumna.find('img');

if($img.attr('title') == 'Nowe posty')
$img.attr('src', z);
else
$img.attr('src', bez);
$img.css({borderWidth: 1, borderStyle: 'solid', borderColor: '#555'}).show();

}

$(document).ready(function() {



cher('c1', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/10k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/10k.jpg');
cher('c1', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/91k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/91k.jpg');
cher('c1', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/96k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/96k.jpg');
cher('c1', 4, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/89k-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/89k.jpg');
cher('c1', 5, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s1.jpg');
cher('c1', 6, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s2.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s2.jpg');


cher('c5', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s3.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s3.jpg');
cher('c5', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s4.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s4.jpg');
cher('c5', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s5.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s5.jpg');


cher('c6', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/00s6.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th00s6.jpg');
cher('c6', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/80s2.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th80s2.jpg');
cher('c6', 3, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/rayk-1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/rayc-1.jpg');




cher('f16', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s3.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s3.jpg');


cher('c7', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s4.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s4.jpg');
cher('c7', 2, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/90s5.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th90s5.jpg');


cher('f17', 1, 'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/80s1.jpg',

'http://i77.photobucket.com/albums/j61/cdyaro/Cher%20Forum/th80s1.jpg');


//facebook like
if(location.pathname == '/' || location.pathname == '/index.php') {
$div = $('<div />').css('position', 'relative').append($('<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fcher.feen.pl&amp;layout=button_count&amp;show_faces=false&amp;width=450&amp;action=like&amp;colorscheme=dark&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px; position: absolute; top: -33px; left: 35px" allowTransparency="true"></iframe>'));

$('td.bodyline table:eq(1) td:eq(1)').append($div);

}


});

</script>

Musisz sobie po swojemu zedytować i wkleić: PA-Konfiguracja-StronyGłównej-Baner w Nagłówku



Powered by phpBB modified by Przemo © 2003 phpBB Group