Saturday, August 20, 2011

make animated blog name (browser tab)

<script type='text/javascript'>
//<![CDATA[

msg = "UR WELCOME MSG HERE";
msg = "***Your Short Description Here***" + msg;pos = 0;
function scrollMSG() {
document.title = msg.substring(pos, msg.length) + msg.substring(0, pos); pos++;
if (pos > msg.length) pos = 0
window.setTimeout("scrollMSG()",200);
}
scrollMSG();
//]]>
</script>

Disable Right Click


<script>
function disableRight()
{
if(event.button==2)
{
alert(&quot;Right Click Not Allowed!&quot;);
return false;
}
}
document.onmousedown=disableRight;

</script>

Disable Copy Paste Code

<!-- Disable Copy and Paste-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (&quot;return false&quot;)
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>