كود جافا سكيربت لعمل هاشتاج لمواضيعكالكود يعمل فقط لمنتديات احلى منتدى فقط لاغير
- الكود:
-
if(!document.location.href!=top.location.href){window.post=/#\S+/.test(document.location.pathname)?'/'+/#\S+/.exec(document.location.pathname)[0]:'';history.pushState({},'',(function(e){var path=e.match(/\/t\S+-/)[0]+'/'+document.title.substr(0,33335).replace(/ /g,'_');path+=e.match(/#\S+/)?('/'+e.match(/#\S+/)[0]):'';return path})(document.location.href))}$(function(){var reg=new RegExp("GIF|PNG|JPG|JGEP|BMP","g");KH_image=$('<div style="display:none" ><div style="position:fixed;width:100%;width:100%;top:0;left:0;"></div><div id="kh_image"><img style="position: absolute; top: 15%; left: 20%; max-width: 600px; border: 2px solid whitesmoke; padding: 3px; background-color: whitesmoke;" /></div></div>').appendTo('body');$('.post-entry').find('a').unbind('mouseover');$('.post-entry').find('a').each(function(){if(reg.test($(this).attr('href')))$(this).bind('mouseover',function(e){console.log('over'+$(this).attr('href'));KH_image.fadeIn('slow');KH_image.find('img').attr('src',$(this).attr('href')).css({'top':$(this).offset().top,'right':$(window).width()-e.pageX+12})}).bind('mouseleave',function(){KH_image.fadeOut('fast')})})});
عناصر إضافية- HTML و JAVASCRIPT-إدارة أكواد Javascript - تعديل كود Javascript
يتم بعد ذلك جميع الصفحات
خليل أحمد