Changeset 4474 for extensions/Juza/js
- Timestamp:
- Dec 12, 2009, 12:00:13 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Juza/js/juzascript.js
r4461 r4474 6 6 $(this).addClass('bigImg').attr('src', $(this).attr('src').replace('thumbnail/TN-', '')); 7 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>'); */ 8 $('.thumbnailCategory .description h3 a').each(function() { 9 $cat_url = $(this).attr('href'); 10 $cat_tree = $('#menubar #mbCategories dd ul li a[href="'+$cat_url+'"]').next('.menuInfoCatByChild').next().html(); 11 if ($cat_tree == null) $cat_tree = ''; 12 $(this).parent('h3').next('.text').after('<ul>'+$cat_tree+'</ul>'); 11 13 }); 14 $('.thumbnailCategories li').addClass('Juza-cat'); 15 $('.description li').removeClass('Juza-cat'); 12 16 $reltag = $('#menubar #mbTags').html(); 13 17 if ($reltag == null) $reltag = ''; 14 18 $reltag = '<div id="relTag">' + $reltag + '</div>'; 15 19 $('#copyright').before('<div id="jquery_local_img">' + $reltag + '</div>'); 16 $temp = $('#content .navigationBar').html(); 20 $reltag = $('#content .navigationBar').html(); 21 if ($reltag == null) $reltag = ''; 17 22 $('#content .navigationBar').css('display','none'); 18 $('div.titrePage h2').after( $temp);23 $('div.titrePage h2').after('<div id="Juza-Thumbs"></div>'+$reltag); 19 24 $('span.wrap2 a img').click(function() { 20 25 $scr = $(this).attr('src').replace('thumbnail/TN-', ''); 21 26 $href = $(this).parent('a').attr('href'); 22 27 $alt = $(this).attr('alt'); 23 $(this).parent('a').attr('href', '# content');28 $(this).parent('a').attr('href', '#Juza-Thumbs'); 24 29 $temp = $href.substr($href.indexOf('/')+1); 25 30 $temp = $temp.substr(0,$temp.indexOf('/')); 26 31 $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");32 $('#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="#Juza-Thumbs"><em>Index</em></a>' + $reltag + '</div>').fadeIn("slow"); 28 33 }); 29 34 $('span.wrap2 a img').hover(function() { },function() { 30 35 $(this).parent('a').attr('href', $href); 31 36 }); 32 37 if ($reltag == '') $('#jquery_local_img').hide(); 33 38 });
Note: See TracChangeset
for help on using the changeset viewer.