Adam-DK-V2
20-11-2004, 11:58 AM
Ok, i thought i'd help you out if your making a website. The first code is for a windows media player on a site page, which you can listen to radios from, only use the code if your doing a radio website.
<object id="MediaPlayer" type="application/x-oleobject" height="45" standby="Please wait while we start the radio!" width="196" align="center" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param NAME="URL" VALUE="http://carternet.serveftp.com:8050" ref>
<param NAME="rate" VALUE="1">
<param NAME="balance" VALUE="0">
<param NAME="currentPosition" VALUE="456.8186644">
<param NAME="defaultFrame" VALUE>
<param NAME="playCount" VALUE="1">
<param NAME="autoStart" VALUE="-1">
<param NAME="currentMarker" VALUE="0">
<param NAME="invokeURLs" VALUE="-1">
<param NAME="baseURL" VALUE>
<param NAME="volume" VALUE="100">
<param NAME="mute" VALUE="0">
<param NAME="uiMode" VALUE="mini">
<param NAME="stretchToFit" VALUE="0">
<param NAME="windowlessVideo" VALUE="0">
<param NAME="enabled" VALUE="-1">
<param NAME="enableContextMenu" VALUE="-1">
<param NAME="fullScreen" VALUE="0">
<param NAME="SAMIStyle" VALUE>
<param NAME="SAMILang" VALUE>
<param NAME="SAMIFilename" VALUE>
<param NAME="captioningID" VALUE>
<param NAME="enableErrorDialogs" VALUE="0">
<param NAME="_cx" VALUE="4524">
<param NAME="_cy" VALUE="1164">
</object>
Where i've put the URL, that's for my radio, so that's how i get the media player to play my radio. That's where the radio URL of server.
Change the scroll bar colour
<style type="text/css">
<!--
BODY {
scrollbar-face-color: #4B535B;
scrollbar-shadow-color: #4B535B;
scrollbar-highlight-color: #4B535B;
scrollbar-3dlight-color: #4B535B;
scrollbar-darkshadow-color: #4B535B;
scrollbar-track-color: #4B535B;
scrollbar-arrow-color: #949AA0;
-->
</style>
Where it has the hex code e.g. #4B535B you change that to the colour you want.
Disable right clicking
<script language="JavaScript">
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all)
{(message);return false;}}
function clickNS(e) {if
(document.layers||
(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents
(Event.MOUSEDOWN);
document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;
document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
That right-clicking code doesn't bring up a messgae in the box, you just can't right click, and you can drag either. Hope these codes help you :)
<object id="MediaPlayer" type="application/x-oleobject" height="45" standby="Please wait while we start the radio!" width="196" align="center" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param NAME="URL" VALUE="http://carternet.serveftp.com:8050" ref>
<param NAME="rate" VALUE="1">
<param NAME="balance" VALUE="0">
<param NAME="currentPosition" VALUE="456.8186644">
<param NAME="defaultFrame" VALUE>
<param NAME="playCount" VALUE="1">
<param NAME="autoStart" VALUE="-1">
<param NAME="currentMarker" VALUE="0">
<param NAME="invokeURLs" VALUE="-1">
<param NAME="baseURL" VALUE>
<param NAME="volume" VALUE="100">
<param NAME="mute" VALUE="0">
<param NAME="uiMode" VALUE="mini">
<param NAME="stretchToFit" VALUE="0">
<param NAME="windowlessVideo" VALUE="0">
<param NAME="enabled" VALUE="-1">
<param NAME="enableContextMenu" VALUE="-1">
<param NAME="fullScreen" VALUE="0">
<param NAME="SAMIStyle" VALUE>
<param NAME="SAMILang" VALUE>
<param NAME="SAMIFilename" VALUE>
<param NAME="captioningID" VALUE>
<param NAME="enableErrorDialogs" VALUE="0">
<param NAME="_cx" VALUE="4524">
<param NAME="_cy" VALUE="1164">
</object>
Where i've put the URL, that's for my radio, so that's how i get the media player to play my radio. That's where the radio URL of server.
Change the scroll bar colour
<style type="text/css">
<!--
BODY {
scrollbar-face-color: #4B535B;
scrollbar-shadow-color: #4B535B;
scrollbar-highlight-color: #4B535B;
scrollbar-3dlight-color: #4B535B;
scrollbar-darkshadow-color: #4B535B;
scrollbar-track-color: #4B535B;
scrollbar-arrow-color: #949AA0;
-->
</style>
Where it has the hex code e.g. #4B535B you change that to the colour you want.
Disable right clicking
<script language="JavaScript">
<!--
var message="";
///////////////////////////////////
function clickIE() {if (document.all)
{(message);return false;}}
function clickNS(e) {if
(document.layers||
(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents
(Event.MOUSEDOWN);
document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;
document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
That right-clicking code doesn't bring up a messgae in the box, you just can't right click, and you can drag either. Hope these codes help you :)