|
 |
|
เขียน Code ยังไงให้ฟังวิทยุได้อ่ะคับ อยากรู้วิธีเขียนโค้ดให้ฟังวิทยุได้ ที่ไหนสอน หรือมีแจกไหมคับ บอกเป็นแนวทางก็ได้ |
|
 |
|
|
 |
 |
|
คุณต้องมี URL ของรายการวิทยุ ออนไลน์ก่อนครับ อ่ะผมให้ไปเป็นไกด์แล้วกัน รันได้เลย
<html>
<head>
<title>onredio</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
</head>
<body><?php
if($redio==15){
$m="<object id='Player' height='50' width='150' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112' standby='Loading Microsoftฎ Windowsฎ Media Player components...' type='application/x-oleobject'>
<param name='Filename' value='http://streamcaster.siamportals.com/station24'>
<param name='ShowControls' value='true'>
<param name='ShowStatusBar' value='true'>
<param name='Autostart' value='true'>
<param name='ShowPositionControls' value='False'>
<param name='ShowTracker' value='False'>
<embed type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
src='http://streamcaster.siamportals.com/station24'
name='Player'
width='150'
height='60'
autostart='true'
showcontrols='' showstatusbar='' showdisplay=''> </embed> <noembed><a href='http://streamcaster.siamportals.com/station24'>Play
HotWave</a></noembed> </object>";
echo "$m";
echo "15";
}elseif($redio==16){
$m="<object id='Player' height='50' width='150' classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112' standby='Loading Microsoftฎ Windowsฎ Media Player components...' type='application/x-oleobject'>
<param name='Filename' value='http://streamcaster.siamportals.com/station25'>
<param name='ShowControls' value='true'>
<param name='ShowStatusBar' value='true'>
<param name='Autostart' value='true'>
<param name='ShowPositionControls' value='False'>
<param name='ShowTracker' value='False'>
<embed type='application/x-mplayer2'
pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/'
src='http://streamcaster.siamportals.com/station25'
name='Player'
width='150'
height='60'
autostart='true'
showcontrols='' showstatusbar='' showdisplay=''> </embed> <noembed><a href='http://streamcaster.siamportals.com/station25'>Play
HotWave</a></noembed> </object>";
echo "$m";
echo"16";
}
?>
<form action="redio.php" method="post" name="redio">
<select name="redio" onChange="form.submit()">
<option value="">- เลือกสถานีวิทยุ -</option>
<option value="15">Bangkok Radio</option>
<option value="16">Green Wave</option>
<option value="17">HotWave</option>
<option value="18">Radio NoProblem</option>
<option value="19">Radio Vote Sattellit</option>
<option value="20">ลูกทุ่ง F.M 95</option>
</select>
</form>
</body>
</html> 
|
 |
 |
 |
 |
Date :
7 ม.ค. 2548 02:10:12 |
By :
arsachi |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ขอบคุณครับ
|
 |
 |
 |
 |
Date :
10 ม.ค. 2548 09:32:29 |
By :
จขกท |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|
|

|
Load balance : Server 02
|