Mình thấy bên http://lionvip.us/forum các chuyên mục bên họ đều ẩn hiện được chuyên mục bên góc phải bằng dấu (+) và dấu (-), cái này chỉ là thu gọn forum vào thôi nếu codeforumotion của Tuấn Anh mà cũng làm ẩn hiện chuyên mục như bên http://lionvip.us/forum thì tốt quá nhỉ, có code thì cho mình xin luôn nhé
#2Tue May 07, 2013 6:28 am
lasperpen
» Mõd™
cho vào js
in the topic
in the topic
- Code:
$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('[img]','[/img]');return false\" onmouseover=\"helpline('Copy Click Ảnh VĂ o Ná»™i Dung BĂ i Viết Rồi Click VĂ o ÄĂ¢y Äá»… Äược Ảnh KĂch ThÆ°á»›c Tháºt')\" type=\"button\"><img src=\"http://i48.servimg.com/u/f48/16/18/15/10/hinhan12.gif\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('<br>[spoiler=Click Äá»… Xem]<br>','<br>[/spoiler]<br>');return false\" onmouseover=\"helpline('Thu Gá»n BĂ i Viết Trong Phạm Vi Bạn Cần')\" type=\"button\"><img src=\"http://i48.servimg.com/u/f48/16/18/15/10/thugon10.gif\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('[hide]','[/hide]<br>[size=18][b][color=red]—»[/color] Code ÄĂ£ Ẩn.Vui LĂ²ng Trả Lá»i Äể Thấy [color=red]«—[/color][/b][/size]');return false\" onmouseover=\"helpline('Ẫn ThĂ´ng Tin Trong Phạm Vi Bạn Cần')\" type=\"button\"><img src=\"http://i48.servimg.com/u/f48/16/18/15/10/an110.gif\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('[flash(800,300)]','[/flash]');return false\" onmouseover=\"helpline('Nhạc Mp3 Từ mp3.zing.vn Hoặc nhaccuatui.com')\" type=\"button\"><img src=\"http://i48.servimg.com/u/f48/16/18/15/10/mp3110.gif\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('[youtube]','[/youtube]');return false\" onmouseover=\"helpline('Clip Từ Youtube Hoặc ÄÆ°á»ng Dẫn Xem Clip')\" type=\"button\"><img src=\"http://i38.servimg.com/u/f38/16/18/15/10/youtub10.jpg\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<button class=\"button2\" onclick=\"bbfontstyle('[table class=download][tr][td][center][size=18][b][url=',']Click VĂ o ÄĂ¢y Äá»… Download[/url][/b][/size][/center][/td][/tr][/table]');return false\" onmouseover=\"helpline('Copy Click Cần Download VĂ o Ná»™i Dung BĂ i Viết Rồi Click VĂ o ÄĂ¢y')\" type=\"button\"><img src=\"http://i20.servimg.com/u/f20/15/90/59/25/downlo10.gif\" height=\"16px\"/></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});$(function(){$("<div style=\"display:inline!important\" id=\"text_editor_select_controls\"><div style=\"visibility:hidden\" class=\"select\" id=\"notes\"><button onclick=\"bbfontstyle('[table class=noteclassic][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"/users/2611/10/63/87/album/note10.png\">Classic note</button><button onclick=\"bbfontstyle('[table class=notetip][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"/users/2611/10/63/87/album/tip10.png\">Tip note</button><button onclick=\"bbfontstyle('[table class=notewarning][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"/users/2611/10/63/87/album/warn10.png\">Warning note</button><button onclick=\"bbfontstyle('[table class=noteimportant][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"/users/2611/10/63/87/album/imp10.png\">Important note</button><button onclick=\"bbfontstyle('[table class=notehelp][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"/users/2611/10/63/87/album/help10.png\">Help note</button><hr><button onclick=\"bbfontstyle('[table class=noteinfo][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k11.png\">Info note</button><button onclick=\"bbfontstyle('[table class=notesuccess][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k13.png\">Success note</button><button onclick=\"bbfontstyle('[table class=noteerror][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k12.png\">Error note</button><button onclick=\"bbfontstyle('[table class=notevalidation][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"http://i48.servimg.com/u/f48/16/28/30/49/rsz_kn10.png\">Validation note</button><button onclick=\"bbfontstyle('[table class=notesuggest][tr][td]','[/td][/tr][/table]');selectWysiwyg(this,'notes');return false\"><img src=\"http://i48.servimg.com/u/f48/16/28/30/49/rsz_2k10.png\">Suggest note</button></div></div><button class=\"button2\" onclick=\"selectWysiwyg(this,'notes')\" onmouseover=\"helpline('BBcode notes')\" type=\"button\"><img src=\"/users/2611/10/63/87/album/inote10.gif\" /></button> <img src=\"http://2img.net/i/fa/wysiwyg/separator.png\" style=\"vertical-align: middle;\">").insertBefore("span#text_edit input.button2[value='Others']")});function helpline(help){if(help.length<5)showtip(eval(help+"_help"));else showtip(help);if(this.addEventListener){this.addEventListener("mouseout",function(){hidetip()},false)}}var CopyrightNotice='Quick Quote in Quick Reply for forumotion boards. Copyright © by AvacWeb. All Rights Reserved. Use and modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';$(function(){$('.i_icon_quote').click(function(e){e.preventDefault();var url=this.parentNode.href;$('body').append('<div id="LGquote" style="display:none"></div>');var x=$('#LGquote');x.load(url+' textarea',function(){var message=x.find('textarea').val();var y=document.getElementById('quick_reply').message;y.value+=message;y.focus();$('#LGquote').remove()})})});$(function(){$(".main-head").prepend('<span class="collapse" style="padding: 0px; float:right;width: 32px;height: 22px;overflow: hidden;"><img src="http://i48.servimg.com/u/f48/16/18/15/10/min10.png" alt="fmClose" /><img class="hide" src="http://i48.servimg.com/u/f48/16/18/15/10/max10.png" alt="fmOpen" /></span>');$(".collapse").each(function(index){$(this).attr("id","fmvicollapse"+location.pathname+index);if(my_getcookie("fmvicollapse"+location.pathname+index)=="1"){$(this).children("img[alt='fmClose']").hide();$(this).children("img[alt='fmOpen']").show();$(this).parent().next().hide()}});$(".collapse img[alt='fmClose']").click(function(){my_setcookie($(this).parent().attr("id"),1,1,0);$(this).hide().next().show();$(this).parent().parent().next().hide()});$(".collapse img[alt='fmOpen']").click(function(){my_setcookie($(this).parent().attr("id"),0,1,0);$(this).hide().prev().show();$(this).parent().parent().next().show()})});$(document).ready(function(){$('img').mouseover(function(){$(this).fadeTo('400',0.50);$(this).fadeTo('400',1)})});jQuery(function(){var tgl=document.getElementById('i_icon_mini_login');if(!tgl)return;var tgu=document.location.href;jQuery('body').append('<div id="TGlogin_form" class="TGlogin_form-float" style="display: none;"><div class="TGlogin_form-float-content"><div class="TGlogin_form-float-div"><form id="TGloginform" method="post" method="post" action="/login?redirect='+tgu+'"><label><em>Username : </em><input id="username" type="text" name="username"></label><label><em>Password : </em><input id="password" type="password" name="password"></label><label style="float: left; margin-top: 5px; text-align: left;"><em style="margin-right: 10px; margin-top: 3px; width: 85px; margin-left: 7px;">Remember Me? : </em><input type="checkbox" name="autologin" checked="true" style="width: 20px;"></label><input id="submit" type="submit" name="login" value="Login" class="submit"></form></div></div><span class="TGClose">X</span></div><div id="TGfade" class="TGlogin_form-float_overlay"></div>');var Copyrights='Forum dos Foruns - ©Mikee All Rights Reserved.';jQuery('a[href="/login"], a[href="/login?connexion"]').attr('href','/login').click(function(e){jQuery('#TGlogin_form').fadeToggle('slow','linear');return false}).click(function(e){jQuery('#TGfade').css('display','block');jQuery('#TGlogin_form').css('left','40%').css('top','40%')});jQuery('.TGClose').click(function(){jQuery('#TGlogin_form, #TGfade').fadeToggle("fast","linear")})});$(document).ready(function(){var x=$('#username').html();$('.templateuname').html(x)});$(function(){$(window).scroll(function(){var scrollTop=$(window).scrollTop();if(scrollTop!=0)$('#nav1').stop().animate({'opacity':'0.2'},400);else $('#nav1').stop().animate({'opacity':'1'},400)});$('#nav1').hover(function(e){var scrollTop=$(window).scrollTop();if(scrollTop!=0){$('#nav1').stop().animate({'opacity':'1'},400)}},function(e){var scrollTop=$(window).scrollTop();if(scrollTop!=0){$('#nav1').stop().animate({'opacity':'0.2'},400)}})});$(document).ready(function(){var x=$('#username').html();$('.templateuname').html(x)});$(function(){$(window).scroll(function(){var scrollTop=$(window).scrollTop();if(scrollTop!=0)$('#nav2').stop().animate({'opacity':'0.2'},400);else $('#nav2').stop().animate({'opacity':'1'},400)});$('#nav2').hover(function(e){var scrollTop=$(window).scrollTop();if(scrollTop!=0){$('#nav2').stop().animate({'opacity':'1'},400)}},function(e){var scrollTop=$(window).scrollTop();if(scrollTop!=0){$('#nav2').stop().animate({'opacity':'0.2'},400)}})});function selectCode(a){var e=jQuery(a).closest('tr').next().find('.cont_code')[0];if(window.getSelection){var s=window.getSelection();if(s.setBaseAndExtent){s.setBaseAndExtent(e,0,e,e.innerText.length-1)}else{if(window.opera&&e.innerHTML.substring(e.innerHTML.length-4)=='<BR>'){e.innerHTML=e.innerHTML+' '}var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}}else if(document.getSelection){var s=document.getSelection();var r=document.createRange();r.selectNodeContents(e);s.removeAllRanges();s.addRange(r)}else if(document.selection){var r=document.body.createTextRange();r.moveToElementText(e);r.select()}}jQuery(function(){jQuery('div.postbody td.code').parent().prev().find('b').html('Code:<span class="clicktogglecode"style="float:right;"></span><a onmouseover="showtip(notecode);"onmouseout="hidetip();"href="javascript:void()"style="float:right;"onClick="selectCode(this)"><font face="verdana"color="green"><strong>CHỌN TOĂ€N BỘ</strong></font></a>')});jQuery(document).ready(function(){notecode='<font color="#00ff00">Click Äể Chá»n Ná»™i Dung Trong CODE</font>';jQuery("td.code").parent().prev().css({'background':'#FFF','font':'bold 11px tahoma','color':'#FFF','text-align':'left','text-shadow':'green 0.1em 0.1em 0.2em','padding':'0px','align':'left','vertical-align':'middle','height':'0px','width':'100%'});jQuery("td.code").parent().parent().parent().css({'width':'545px','background':'#FFF','align':'justify','padding':'5px 5px 5px 5px','align':'center','border-radius':'5px 5px 5px 5px','border-color':'#000000 #ABABAB #ABABAB #000000'});$("span.clicktogglecode").click(function(){$(this).parent().parent().parent().parent().next().children().toggle();$(this).children().toggle()});$(".code").css({'font-family':'Courier','width':'500px','display':'block','font-size':'1em','color':'green','background':'url(http://a.imageshack.us/img178/1307/prepb3.jpg)repeat scroll left top #FFFFFF','margin':'1em 0','overflow':'auto','text-align':'left','border':'1 solid #99cc66','padding':'0 0 0 30px','line-height':'17px','overflow':'auto'});$(".code div.cont_code").css({'width':'500px','height':'auto','overflow':'auto'})});
Trả lời trích dẫnTrả lời
#3Tue May 07, 2013 1:10 pm
huyvip83
» Thàñh Vïêñ Mới
Hjj...cho code vào rùi chẳng thấy nhúc nhích ẩn hiện gì cả
Trả lời trích dẫnTrả lời
#4Tue May 07, 2013 2:53 pm
Pya - Kun
» Mõd™
js
chèn thẳng vào js
- Code:
$(function(){$(".main-head").prepend('<span class="collapse" style="padding: 0px; float:right;width: 32px;height: 22px;overflow: hidden;"><img src="http://www.skinbox.net/demo/public/style_images/source/cat_minimize.png" alt="fmClose" /><img class="hide" src="http://www.skinbox.net/demo/public/style_images/source/cat_maximize.png" alt="fmOpen" /></span>');$(".collapse").each(function(index){$(this).attr("id","fmvicollapse"+location.pathname+index);if(my_getcookie("fmvicollapse"+location.pathname+index)=="1"){$(this).children("img[alt='fmClose']").hide();$(this).children("img[alt='fmOpen']").show();$(this).parent().next().hide()}});$(".collapse img[alt='fmClose']").click(function(){my_setcookie($(this).parent().attr("id"),1,1,0);$(this).hide().next().show();$(this).parent().parent().next().hide()});$(".collapse img[alt='fmOpen']").click(function(){my_setcookie($(this).parent().attr("id"),0,1,0);$(this).hide().prev().show();$(this).parent().parent().next().show()})});
chèn thẳng vào js
Trả lời trích dẫnTrả lời
#5Tue May 07, 2013 3:09 pm
huyvip83
» Thàñh Vïêñ Mới
Vẫn không được rùi Pya - Kun ơi , nản wá
Trả lời trích dẫnTrả lời
#6Tue May 07, 2013 4:23 pm
lasperpen
» Mõd™
coi chừng xung đột JS đấy JS đó bên Lionvip đó :))
Trả lời trích dẫnTrả lời
#7Tue May 07, 2013 4:39 pm
huyvip83
» Thàñh Vïêñ Mới
Kể ra codeforumotion thiết kế thêm cái cột quảng cáo bên phải cho forum thì sẽ sinh động hơn biết mấy nhỉ, thực ra mình cũng rất muốn làm cái ẩn hiện chuyên mục như bên LIONVIP nhưng không tài nào làm được, các bạn mem nào sành sỏi về cái này có thể cho mình xin ít thủ thuật nhé
Trả lời trích dẫnTrả lời
#8Tue May 07, 2013 8:18 pm
TuanAnh
»†ổñg Quån «
Của bạn đây ấn CTRL+U lấy code nha
https://codeforumotion.forumvi.com/h120-page
https://codeforumotion.forumvi.com/h120-page
Trả lời trích dẫnTrả lời
#9Tue May 07, 2013 10:07 pm
huyvip83
» Thàñh Vïêñ Mới
Hjj..... hổng biết cho vào chỗ nào cả TA ơi
Trả lời trích dẫnTrả lời
#10Wed May 08, 2013 12:18 pm
—Trung Hâu
» Thàñh Vïêñ Mới
JS Chả Xung Đột Gì Cả Gái Tiến Ơi =)).Nói Tầm Bậy Tầm Bạ K À Nha =))lasperpen đã viết:coi chừng xung đột JS đấy JS đó bên Lionvip đó :))
Trả lời trích dẫnTrả lời
Code Forumotion » Forumotion » Forumotion » Code » Tuấn Anh - có code ẨN HIỆN các chuyên mục không....!!!!!!!!!
Similar topics
Permissions in this forum:
Bạn không có quyền trả lời bài viết
|
|