¹öÆ° À̹ÌÁö³ª mp3ÆÄÀÏÀº ftp¾ÈÀ¸·Î ³ÖÀ¸¼Å¼ ÁÖ¼Ò¸¦ ÀÔ·ÂÇØÁÖ½Ã¸é ¹Ù·Î ¹Ý¿µÀÌ µË´Ï´Ù.
²À µ¥¸ð¸¦ È®ÀÎÇÏ½Ã°í ¿øÇϽô À½¾ÇµîÀ» »çÀÌÆ®¿¡ Àû¿ëÇÏ½Ã¸é ¸ÚÁú°Å °°³×¿ä^^
¾Æ·¡´Â º»¿¹Á¦ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
<HTML> <HEAD> <TITLE>ÇØÇÇCGI</TITLE> </HEAD>
<BODY> <script type="text/javascript">
// Change these two lines to modify your PLAY and STOP buttons. var mp3PlayButton = "http://demo.happycgi.com/jini/play.gif"; var mp3StopButton = "http://demo.happycgi.com/jini/stop.gif"; // Change these two lines to modify the "playing..." font and size. var mp3PlayingFont = "Verdana"; var mp3PlayingSize = "8pt";
//var mp3PlayButton = "http://www.jpgsvr.com/mp3/play.png"; //var mp3StopButton = "http://www.jpgsvr.com/mp3/pause.png"; if(typeof(TagTooga) == 'undefined') TagTooga = {}
TagTooga.Mp3 = { playimg: null, player: null,
go: function() { var all = document.getElementsByTagName('a'); for (var i = 0, o; o = all[i]; i++) { if(o.href.match(/\.mp3$/i)) { var img = document.createElement('img'); img.src = mp3PlayButton; img.title = 'listen'; //img.height = img.width = 12; img.style.marginRight = '0.5em'; img.style.cursor = 'pointer'; img.onclick = TagTooga.Mp3.makeToggle(img, o.href); o.parentNode.insertBefore(img, o); } } },
toggle: function(img, url) { if (TagTooga.Mp3.playimg == img) TagTooga.Mp3.destroy(); else { if (TagTooga.Mp3.playimg) TagTooga.Mp3.destroy(); var a = img.nextSibling;
img.src = mp3StopButton; TagTooga.Mp3.playimg = img; TagTooga.Mp3.player = document.createElement('span'); TagTooga.Mp3.player.innerHTML = '<span style="font-size: '+mp3PlayingSize+'; text-decoration: none; letter-spacing:-1;font-family: '+mp3PlayingFont+'">playing...</span><object style="vertical-align:bottom;margin-right:0.2em" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"' + 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"' + 'width="1" height="1" id="player" align="middle">' + '<param name="wmode" value="transparent" />' + '<param name="allowScriptAccess" value="sameDomain" />' + '<param name="flashVars" value="theLink='+url+'" />' + '<param name="movie" value="http://www.tagtooga.com/mp3/playMp3.swf" /><param name="quality" value="high" />' + '<embed style="vertical-align:bottom;margin-right:0.2em" src="http://www.tagtooga.com/mp3/playMp3.swf" flashVars="theLink='+url+'"'+ 'quality="high" wmode="transparent" width="1" height="1" name="player"' + 'align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"' + ' pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'; img.parentNode.insertBefore(TagTooga.Mp3.player, img.nextSibling); } },
destroy: function() { TagTooga.Mp3.playimg.src = mp3PlayButton; TagTooga.Mp3.playimg = null; TagTooga.Mp3.player.removeChild(TagTooga.Mp3.player.firstChild); TagTooga.Mp3.player.removeChild(TagTooga.Mp3.player.firstChild); TagTooga.Mp3.player.parentNode.removeChild(TagTooga.Mp3.player); TagTooga.Mp3.player = null; },
makeToggle: function(img, url) { return function() { TagTooga.Mp3.toggle(img, url); } } }
TagTooga.addLoadEvent = function(f) { var old = window.onload; if (typeof old != 'function') window.onload = f; else { window.onload = function() { old(); f() } } }
TagTooga.addLoadEvent(TagTooga.Mp3.go); </script>
<a href="http://demo.happycgi.com/jini/1.mp3"></a>ÀÜȤÇÑ ½î³à!³ÃÁ¤ÇÑ ½î³à!<br> <a href="http://demo.happycgi.com/jini/2.mp3"></a>10¹ø° ÀÌ·¯°íÀÖ´Ù!~<br> <a href="http://demo.happycgi.com/jini/3.mp3"></a>ÀÌ°Ç...¹¹Áö-_-;;<br> <a href="http://demo.happycgi.com/jini/4.mp3"></a>ÈĶõü½ºÄ«~ÀÜȤÇÑ Çª¶õü½ºÄ«~! ¿À¿½º£º£<br>
</BODY> </HTML>
|