Vietnamese Forumotion
Vietnamese Forumotion

Hướng dẫn - Chia sẻ - Phát triển ứng dụng cho forumotion


You are not connected. Please login or register

code code

View previous topic View next topic Go down  Message [Page 1 of 1]

1code code code on Wed Jul 27, 2011 4:00 am

baivong

avatar
Admin
Admin
Code:





jQuery(document).ready(function(){

notecode='Click để chọn nội dung trong CODE';

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':'16px','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'});

jQuery("td.code").parent().prev().html('<a href="#show" style="float:right;display:none;"><img src="http://i28.servimg.com/u/f28/16/48/23/13/collap11.gif" alt="FMvi.tk" border="0" /></a><a href="#hide" style="float:right;"><img src="http://i28.servimg.com/u/f28/16/48/23/13/collap10.gif" alt="FMvi.tk" border="0" /></a><font color="blue"><strong> CODE:</strong></font><a onmouseover="showtip(notecode);" onmouseout="hidetip();" style="float:right;" href="#" onclick="selectCode(this); return false;"><font color="green"><strong>CHỌN TOÀN BỘ </strong></font></a>');

    $("a[href='#show']").click(function() {
        $(this).parent().next().children().toggle();
        $(this).next().show();
        $(this).hide();
    });
    $("a[href='#hide']").click(function() {
        $(this).parent().next().children().toggle();
        $(this).prev().show();
        $(this).hide();
    });

$(".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'});


});



View user profile http://www.fmvi.org

2code Re: code code on Wed Jul 27, 2011 4:59 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

3code Re: code code on Wed Jul 27, 2011 5:08 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

4code Re: code code on Wed Jul 27, 2011 5:09 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

5code Re: code code on Wed Jul 27, 2011 5:11 am

baivong

avatar
Admin
Admin
Code:
$(document).ready(function(){
$("a[href^='http://mp3.zing.vn/'][href*='html']").each(function(){
var dlengthzing=this.href.indexOf(".html");
var dlinkzing=this.href.slice(0,dlengthzing);
$('<a href="'+dlinkzing+'">'+dlinkzing+'</a>').insertAfter(this);
$(this).remove();
});
return false;
});

$(document).ready(function(){
$("a[href^='http://mp3.zing.vn/video-clip']").each(function(){
var vlengthzing=this.href.length;
var vcongzing=vlengthzing - 8;
var vimgzing=this.href.slice(vcongzing,vlengthzing);
var vlinkzing='http://static.mp3.zing.vn/skins/mp3_main/flash/channelzPlayer.swf?xmlURL=http://mp3.zing.vn/play/?pid='+vimgzing+'||6';
$('<a href="'+vlinkzing+'">'+vlinkzing+'</a>').insertAfter(this);
$(this).remove();
});
return false;
});

$(document).ready(function(){
$("a[href^='http://mp3.zing.vn/bai-hat']").each(function(){
var lengthzing=this.href.length;
var congzing=lengthzing - 8;
var imgzing=this.href.slice(congzing,lengthzing);
var linkzing='http://static.mp3.zing.vn/skins/mp3_main/flash/mp3Player_new.swf?songID=0&autoplay=flase&xmlURL=http://mp3.zing.vn/play/?pid='+imgzing+'||4';
$('<a href="'+linkzing+'">'+linkzing+'</a>').insertAfter(this);
$(this).remove();
});
return false;
});


$(document).ready(function(){
$("a[href^='http://mp3.zing.vn/playlist'], a[href^='http://mp3.zing.vn/album']").each(function(){
var xlengthzing=this.href.length;
var xcongzing=xtruzing - 8;
var ximgzing=this.href.slice(xcongzing,xlengthzing);
var xlinkzing='http://static.mp3.zing.vn/skins/mp3_main/flash/mp3playlist.swf?xmlURL=http://mp3.zing.vn/play/?pid='+ximgzing+'||1';
$('<a href="'+xlinkzing+'">'+xlinkzing+'</a>').insertAfter(this);
$(this).remove();
});
return false;
});



View user profile http://www.fmvi.org

6code Re: code code on Wed Jul 27, 2011 5:18 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

7code Re: code code on Wed Jul 27, 2011 5:22 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

8code Re: code code on Wed Jul 27, 2011 5:25 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

9code Re: code code on Wed Jul 27, 2011 5:38 am

baivong

avatar
Admin
Admin



View user profile http://www.fmvi.org

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum