PDA

Xem đầy đủ chức năng : Admin giúp



ron9x_westlife
24-03-2009, 05:09 AM
Mình thấy mod "Thông điệp yêu thương" ở HHT rất hay và ý nghĩa, mình mún copy nó vào diễn đàn nhưng ko biết tìm code ở đâu ! Mong Admin có thể cung cấp cho mình code đầy đủ của mod này và cả playlist nhạc nữa để đưa vào diễn đàn của mình đc ko à? Mình xin cảm ơn admin rất nhiều
Mong nhận đc trả lời sớm nhất từ admin
Chân thành cảm ơn !

Mây Phiêu Lãng
26-03-2009, 09:25 AM
:D Cái này là "made by HHT" bạn à :D:D Nên không có tìm ra mod ở đâu ngoài HHT là phải rồi :sr:
Riêng nhạc được đưa lên là cũng được lấy từ box Từ âm nhạc đến trái tim, nên làm sao mà đưa list cho bạn đây?! :sr:
Và, riêng chuyện này Mây cũng hoh giúp gì được cho bạn, bởi Mây hoh biết gì về web hết, chỉ là chân chạy việc lăng xăng thôi. Cái này bạn hãy liên hệ với smod Teppi hoặc trungnhut để hỏi nhé :)

speaker
26-03-2009, 11:18 AM
ADD on của Joom La. bạn tìm nhé

trungnhut
26-03-2009, 10:27 PM
Cái này là 1 đoạn script thôi, bạn copy đoạn script bên dưới chèn vào header, sau đó upload mấy file hình attack vào đúng thư mục chỉ dẫn trong script


<!-- Bar -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="4rum/images/bar_bg.gif">
<tr>
<td width="200"><a href="index.php" target="_bank"><img border="0" src="4rum/images/bar01.gif" width="200" height="30"></a></td>

<td width="100%" class="text_hotnews" background="4rum/images/barphai.gif"><marquee behavior='scroll' onmouseover='this.stop()' onmouseout='this.start()' scrollamount='3' direction='left'><a class='text_hotnews' href='index.php'><b><font color="green"> <SCRIPT>
function get_random(maxNum)
{
if (Math.random && Math.round)
{
var ranNum= Math.round(Math.random()*(maxNum-1));
ranNum+=1;
return ranNum;
}
else
{
today= new Date();
hours= today.getHours();
mins= today.getMinutes();
secn= today.getSeconds();
if (hours==25)
hours=25;
var ranNum= (((hours+1)*(mins+1)*secn)%maxNum)+1;
return ranNum;
}
}

function getaQuote()
{
var maxQuotes=11;
var whichQuote=get_random(maxQuotes);
whichQuote--;

var quote=new Array(maxQuotes)
quote[0]="&quot;Hãy luôn mỉm cười ngay cả khi xung quanh bạn là bóng tối&quot; ";
quote[1]="&quot;Đời người chỉ sống có một lần, phải sống sao cho khỏi xót xa ân hận vì những năm tháng sống hoài sống phí.&quot; ";
quote[2]="&quot;Cái gì xuất phát từ trái tim thì sẽ đi đến trái tim.&quot; ";
quote[3]="&quot;Thiên thần 1 cánh chỉ bay được khi bay cùng nhau.&quot; ";
quote[4]="&quot;Khi có tình yêu ta sống và làm việc thú vị biết bao. Khi có người yêu bên cạnh chúng ta vượt qua những khó khăn dễ dàng biết bao.&quot; ";
quote[5]="&quot;Phải biết và nhìn thấy được rằng biển cả có bão tố và thuỷ triều dâng nhưng trong lòng nó có bao ngọc quý.&quot; ";
quote[6]="&quot;Nếu chỉ yêu bản thân thì khi tuyệt vọng, con người sẽ tự nguyền rủa mình, tự đau khổ một mình.&quot; ";
quote[7]="&quot;Sự dối trá giết chết tình yêu nhưng sự thật trắng trợn cũng đâu làm cho tình yêu sống lại.&quot; ";
quote[8]="&quot;Cuộc sống ko bao giờ là bế tắc thật sự nếu con người dám rời bỏ lối mòn và dũng cảm tìm ra những giá trị mới.&quot; ";
quote[9]="&quot;Hãy cố gắng hết sức mình để đạt tới thành công, nếu bạn không chạm đến những vì sao thì bạn cũng ở giữa những vì tinh tú&quot; ";
quote[10]="&quot;Khi bạn ko thể có cái mà mình thích thì hãy thích cái mà mình có.&quot; ";
document.write(quote[whichQuote]);

}

getaQuote();


</SCRIPT></b></font></a></MARQUEE></td>
</table>
<!-- /Bar -->

http://img441.imageshack.us/img441/303/barphai.gif

Còn cái flash playlist thì bạn có thể vào google tìm code có đầy ra đấy :).

Bè Xỏ Lá
11-04-2009, 07:42 AM
Bạn chỉ cần View source là thấy code liền thôi àh. Ở đây Teppi viết sẵn file javascript rồi nhúng vào Body nên nhìn kĩ 1 tý mới thấy :sr: bạn down file *.js này về xem code nè: click to download (http://teppi.vohinh.com/hht/tdty/js.js)

Chạy Playlist nhạc thì tớ chưa thử, chỉ có nhìn qua code của nó thôi. Vẫn là chạy Script với các chuỗi (array) nhạc thôi àh, bạn test thử cái này coi sao :D


<!-- TWO STEPS TO INSTALL MP3 PLAYLIST:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Andy Lad ([email protected]) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
counter = 0;
html = true;
mp3list = "#EXTM3U";
if(html) {
mp3list += "<br>";
}
mp3list += "\n";
file = "";
songs = new Array();
function addsong() {
file = document.forms[0].file.value;
file = file.toLowerCase();
if(file == "") {
alert("Enter a file name or click BROWSE");
}
else {
fn = file;
char = unescape("%5C");
while(fn.indexOf(char) != -1) {
pos = fn.indexOf(char);
fn = fn.substring(pos + 1, fn.length);
}
if(fn.indexOf('.mp3') == -1) {
alert("MP3 files only!");
}
else {
songs[counter] = file;
document.forms[0].sofar[counter] = new Option((counter+1) + ": " + fn, file, false, true);
counter++;
}
document.forms[0].file.value = "";
}
}
function finish() {
if(counter == 0) {
alert("Please add some songs to the list!");
}
else {
mp3l = songs.length;
for(i = 0; i < mp3l; i++) {
if(songs[i] != "") {
mp3list += songs[i];
if(html) {
mp3list += "<br>"
}
mp3list += "\n"
}
}
document.write(mp3list);
if(html) {
document.write("<***"+"ipt>");
document.write("alert('Create a blank text file, copy the WHOLE code onto it and then rename the file to <playlist name>.m3u\\n\\nClick BACK to make another playlist')");
document.write("</***"+"ipt>");
}
}
document.forms[0].sofar.blur();
}
function deletethis() {
if(counter > 0) {
counter--;
document.forms[0].sofar[counter] = null;
songs[counter] = "";
}
else {
alert("List is Empty!");
}
}
// End -->
</script>

</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

Instructions for use:
<br>First of all, Click Browse, Locate an MP3 file you would like to add to your playlist.
<br>Double-Click this and then click "ADD"
<br>Repeat this for as many MP3 files as you want
<br>When you have finished, click the "I've Finished" button and follow instructions

<form>
<input type=file name=file value=""> <input type=button value="Add" onClick="addsong()"><br>
<br>
<br><select name=sofar style="width:350;" size=20 multiple></select>
<br>
<br>
<input type=button value="I've finished" onClick="finish();"> <input type=button onClick="deletethis()" value="Delete Latest Song">
</form>


<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size: 2.83 KB -->