Saturday, February 26, 2011

Tutorial:Disable Right Click (3 Jenis 3 in 1)

Okay,sekarang ni nak ajar cara nak disable right click pulak.Sebenarnya memang tak ada cara yang boleh buat entry kita tak dicopy.Tapi,ni sebagai cara untuk percubaan mencegahlah kan.So,mencegah lebih baik daripada merawat T________T tak ada kene mengena LOL.

Ada tiga jenis disable right click yang aku nak ajar ni.Malas nak buat banyak-banyak entri,so aku sumbat je semua kat sini.;P

Still boleh copy,cuma tak boleh right click je
Cara pemasangan:
1.Pergi dashboard>design>edit HTML
2.Korang cari code

<body>
3.Korang tukarkan code kat atas tadi dengan kod ni

<body oncontextmenu="return false;">
4.Savekan.Dah siap.

Boleh copy jugak,tak boleh right click,sedikit macho sebab ada pop up window yang keluar
Cara nak pasang:
1.Pergi dashboard>design>add gadget>HTML/javascript
2.Pastekan code kat bawah ni dalam kotak HTML/javascript




<script language='JavaScript'>
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.com
var message="No Right-Click!";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>



3.Text yang aku highlightkan tu boleh ditukar mengiku sesedap rasa korang yek.Contoh macam kat blog aku ni."hoi,kau nak kene FLYING KICK ke?"
4.Savekan.

Siap!

Tak boleh highlight,tak boleh right click
Cara nak pasang:
1.Pergi ke dashboard>design>edit HTML
2.Cari code
<head>

3.Pastekan code kat bawah ni selepas code
<head>





<script type="text/javascript">
//form tags to omit in NS6+:
//http://eking.in
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>




4.Savekan.

Dah siap.Good luck ye.Kalau tak boleh,bagi tau tau!

note:copy pakai Ctrl+c

Tutorial:Title Bar Maker #1

haish, bnyak betul tuto aku wat .excited nak share . hoho . skrang jom wat title bar maker pulakk . yang ade gerak gerak kat tab header kauorang .
log in --> design --> add a gadjet --> paste code


http://www.bosiljak.hr/titlemaker/<script type="text/javascript">
//Created by Title bar Maker (http://www.bosiljak.hr/titlemaker)
function tb7_makeArray(n){
    this.length = n;
    return this.length;
}

tb7_messages = new tb7_makeArray(1);
tb7_messages[0] = "tulis di sini ";
tb7_rptType = 'infinite';
tb7_rptNbr = 5;
tb7_speed = 200;
tb7_timeOneMsg = 6000;
tb7_minBrojRazmaka = 0;
tb7_maxBrojRazmaka = 3;
var tb7_counter=1;
var tb7_currMsg;
var tb7_stsmsg="";
var tb7_brojac = 0;
var tb7_expand = true;
var tb7_run=false
var tb7_tmpmsg="";
var tb7_spaces="";
var tb7_timer=null;
for (var i=0; i<tb7_minBrojRazmaka; i++)
    tb7_spaces += "_";
for (var i=0; i<tb7_messages.length; i++){
    tb7_tmpmsg="";
    for (var j=0; j<tb7_messages[i].length; j++){
        tb7_tmpmsg=tb7_tmpmsg+tb7_spaces+tb7_messages[i].charAt(j);
    }
    tb7_messages[i]=tb7_tmpmsg;
}
function tb7_settitle(){
if (!tb7_run){
    clearTimeout(tb7_timer2);
    return;
}
var tb7_sts = "";
if (tb7_brojac == 0)
    document.title = tb7_messages[tb7_currMsg]
else{
    for (var i=0; i<tb7_messages[tb7_currMsg].length; i++){
        for (var j=0; j<tb7_brojac; j++)
            tb7_sts += "_";
        tb7_sts += tb7_messages[tb7_currMsg].charAt(i);
    }
    document.title = tb7_sts;
}
if (tb7_expand && (tb7_brojac >= tb7_maxBrojRazmaka))
    tb7_expand=false;
if (!tb7_expand && tb7_brojac < tb7_minBrojRazmaka)
    tb7_expand = true;
if (tb7_expand)
    tb7_brojac++
else tb7_brojac--;
tb7_timer2 = setTimeout("tb7_settitle()", tb7_speed);
}
function tb7_coordinator(){
if (!tb7_run){
    tb7_currMsg=0;
    tb7_run = true;
    tb7_settitle();
}
else{
    if (tb7_currMsg == tb7_messages.length-1){
        if ((tb7_rptType == 'finite') && (tb7_counter==tb7_rptNbr)){
            clearTimeout(tb7_timer);
            tb7_run = false;
            return;
        }
        tb7_counter++;
        tb7_currMsg=0;
    }
    else{
        tb7_currMsg++;
    }
}
tb7_timer = setTimeout("tb7_coordinator()",tb7_timeOneMsg);
}
tb7_coordinator();
</script>

aaa , preview dulu , o wat la ape yang patutt . SAVE .  tulis disini ganti dgn perkataan yg korang nak .
selamat mencubaa !

Tutorial:Marquee

aaa , today rase nak wat tuto pulakk . ini fresh segar dari ladang . tak copy mane mane tuto . harap menjadii lahh  marquee tu ape ?? ala , yang gerak- gerak tu .
log in --> design --> add a gadjets --> html java script
paste code ni

slide in text -- > gerak sekali


<!-- HTML codes by Quackit.com -->
<marquee behavior="slide" direction="left">TULIS DI SINI</marquee>
<p><a href="http://www.quackit.com/html/codes/html_marquee_code.cfm"></a></p>


continuous scrolling text -- > macam kat blog akuu tuu . dkt header

<!-- HTML codes by Quackit.com -->
<marquee behavior="scroll" direction="left">TULIS DI SINI</marquee>
<p><a href="http://www.quackit.com/html/codes/html_marquee_code.cfm"></a></p>

Text bouncing back and forth --> ulang alikk 

<!-- HTML codes by Quackit.com -->
<marquee behavior="alternate">TULIS DI SINI</marquee>
<p><a href="http://www.quackit.com/html/codes/html_marquee_code.cfm"></a></p>

Text Scrolling Upwards --> text naik atas (kirenye mcm proses penyejatan lahh) haha

<!-- HTML codes by Quackit.com -->
<marquee  behavior="scroll" direction="up">TULIS DI SINI</marquee>
<p><a href="http://www.quackit.com/html/codes/html_marquee_code.cfm"></a></p>
dah pilih and paste kode tu , save . dah siapp 

p/s : TULIS DI SINI --> dlete tulis di sini dan gantikan dengan perkataan yang anda nak .harap tuto ni menjadikk . tk paham sila komen . aaa ctrl+c yeee lau nk copy kode . aku wat disable right click .

Tutorial:Hiding shoutbox

Assalamualaikum .

ada orang request tutorial ni dekat FaceBook aku . nama dia aku lupa . waduhh , susah jugak weh nak buat tuto ni .

follow this simple step :

1. Sign In Blogger
2. Design
3. Add Gadjet
4. HTML javascript .
5. paste code ni ,

<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}

.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp1Bl1fDs9miNLIJPvq4TQvnk4_7krR-SJLUs0MDOq6VidpXEoy14jjwSYNvc_UNxKTQlqmiZfEMPZukh9DUVd6SznOjyLPyTkU8qcYI45BkWFHkOXMOuUu2LsuXpwIvTWa-KI1fElCJ3A/s320/tabs.png') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #666666;
background:#F5F5F5;
padding:10px;
}
</style>

<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="gbtab" onclick="showHideGB()">   </div>
<div class="gbcontent">
Letakkan Kod Shoutbox Di Sini
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script>

6. yang warna biru tu hang boleh tukar . kalau tak tukar , background dia macam ni :

7. aku dah buat dah background . manelah tahu kau berkenan kan . hahaha . btw , yang guna shoutbox AJAX version pun boleh guna . AJAX version tu macam aku punya .



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcpcZlqJejsM0cNKnm4qXM3Hel63tlyPCRzRf7eqtS4b_UY4c6Ard6tB7ovv9yulyrTInEKUpfQzP5OPBGKfq1Q8SavXWt7hSZC29s6AETg3G7hPRU6TyLOJ7dqOAyUw7bkpIe6_MXaPQ/s1600/1BFCB27F011EDCEDBF0E1C5E5EC5A.png

 



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYzvRFayVZXtFXiVAuklMF2vQwGY6oUeXl_W0XjVDQxEUA2DRPTn0yYj98A09PgRbcZyjB0Fz7qoJRMGap90TXC9mnXe-2AVqdscOWyTJmqb98qSoeOxKmCGglKdhiMrQgFk6ec5SBmzw/s1600/detective_conan.png




https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8SlpNDSsetgF1FdDNF6LsneguYpbJ9Yt4Ng7tIvdXIwN7Ac4x_bfyhow8EFLlj5xGi3iVITrAKwExLTYUuXdhtZBsTVEZ0MoMWmRt0ODpKQfEiMxf3yUbqmJHzFaqNOUV-c240DfIUPw/s1600/mrbean_anim.png

8. tapi korang adjust adjust lah sikit kalau tak betul . jangan risau , aku boleh tolong .
9. yang pink tu letak code shoutbox korang .
10 . The End ..

P/S:Jgn nak copy tuto Leeya,if nak jugak kenalah credit kat Leeya. Bukan top up ! Kalau nak credit tuto ni. Ckp lah credit kat shoutbox Leeya !

Copyright:Nur Jasmine Syukrina bt.Al-Zahim Muszaphar