@ ily
coba code nya dirubah jadi kek gini
[quote]var code="<br>"+
"<a href=\"http://divine-music.info\" target=\"_blank\"><img src=\"http://divine-music.info/images/dmmusicbar.gif\" border=\"0\" alt=\"Free Music\"></img></a><br>"+
"<a href=\"http://divine-music.info\" target=\"_blank\"><img src=\"http://divine-music.info/images/dmlogo.gif\" border=\"0\" alt=\"Free Music\"></img></a><br>"+
"<embed src=\"http://divine-music.info/musicfiles/The All-American Rejects - Swing Swing.wma\" autostart=true loop=true width='150px' height='150px'></embed><br>"+
"<br>"+
"<a href=\"http://www.divine-music.info\" target=\"_blank\">Free Music</a></td><br>"+
"<br>";
addBox("LEFT","MP3",code,"div_724","18")[/quote]
mudah2an code
bisa jalan
kalau mau pake fungsi mini maxi yang kek gini
[quote]var code="<br>"+
"<a href=\"http://divine-music.info\" target=\"_blank\"><img src=\"http://divine-music.info/images/dmmusicbar.gif\" border=\"0\" alt=\"Free Music\"></img></a><br>"+
"<a href=\"http://divine-music.info\" target=\"_blank\"><img src=\"http://divine-music.info/images/dmlogo.gif\" border=\"0\" alt=\"Free Music\"></img></a><br>"+
"<embed src=\"http://divine-music.info/musicfiles/The All-American Rejects - Swing Swing.wma\" autostart=true loop=true width='150px' height='150px'></embed><br>"+
"<br>"+
"<a href=\"http://www.divine-music.info\" target=\"_blank\">Free Music</a></td><br>"+
"<br>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_div_724'); return false\"><div>MP3</div></a>",code,"div_724","18")
show_hide('content_div_724');[/quote]
tapi jangan lupa untuk memasukkan code
[quote]function show_hide(the_box) {
if (document.getElementById(the_box)) {
if (document.getElementById(the_box).style.display == 'none') {
document.getElementById(the_box).style.display = 'block';
}
else {
document.getElementById(the_box).style.display = 'none';
}
}
}[/quote]
kalau kk sudah punya code seperti diatas tidak perlu untuk dimasukkan di JS kk lagi
Last edited by robbinhood (2008-06-28 09:09:36)