1 | $().ready(function() { |
---|
2 | $('div.illustration').each(function() { |
---|
3 | $(this).addClass('maxIllustration'); |
---|
4 | }); |
---|
5 | $('div.illustration a img').each(function() { |
---|
6 | $(this).addClass('bigImg').attr('src', $(this).attr('src').replace('thumbnail/TN-', '')); |
---|
7 | }); |
---|
8 | $("ul.categoryActions li a[href*='category/'][href*='/flat']").each(function() { |
---|
9 | /* $('ul.categoryActions').css('display','inline'); */ |
---|
10 | /* $('div.titrePage h2').prepend('<a class="jQuery home" href="index.php" title="Home">Albums</a>'); */ |
---|
11 | }); |
---|
12 | $reltag = $('#menubar #mbTags').html(); |
---|
13 | if ($reltag == null) $reltag = ''; |
---|
14 | $reltag = '<div id="relTag">' + $reltag + '</div>'; |
---|
15 | $('#copyright').before('<div id="jquery_local_img">' + $reltag + '</div>'); |
---|
16 | $temp = $('#content .navigationBar').html(); |
---|
17 | $('#content .navigationBar').css('display','none'); |
---|
18 | $('div.titrePage h2').after($temp); |
---|
19 | $('span.wrap2 a img').click(function() { |
---|
20 | $scr = $(this).attr('src').replace('thumbnail/TN-', ''); |
---|
21 | $href = $(this).parent('a').attr('href'); |
---|
22 | $alt = $(this).attr('alt'); |
---|
23 | $(this).parent('a').attr('href', '#content'); |
---|
24 | $temp = $href.substr($href.indexOf('/')+1); |
---|
25 | $temp = $temp.substr(0,$temp.indexOf('/')); |
---|
26 | $title = $('#ix-desc .Thumb-'+$temp).attr('title'); |
---|
27 | $('#jquery_local_img').fadeOut("slow").replaceWith('<div id="jquery_local_img"><img usemap="#picturetop" title="'+$title+'" alt="'+$alt+'" src="'+$scr+'"/><map name="picturetop"><area href="#" coords="0,0,1024,300" shape="rect" title="Index"/><area href="'+$href+'" coords="0,301,1024,600" shape="rect" title="'+$title+'"/></map><br/>'+ $title +' - <a href="#content"><em>Index</em></a>' + $reltag + '</div>').fadeIn("slow"); |
---|
28 | }); |
---|
29 | $('span.wrap2 a img').hover(function() { },function() { |
---|
30 | $(this).parent('a').attr('href', $href); |
---|
31 | }); |
---|
32 | |
---|
33 | }); |
---|