Sunday, November 21, 2010

Home » » Tutorial cara open new tab tanpa right click!

Tutorial cara open new tab tanpa right click!

Nak kene cepat ni....
Dah nk magrib, nk mandi, tgk tv, and sembahyang.. ^__^""

Ok, ini ada tutorial, cara bukak new tab tanpa rightclick
Kome pegi Design -> Add widget -> HTML/Javascript
Copy paste ini,
<!-- code for turning all non-blog links to new page links -->
<script type="text/javascript" language="javascript">
var arr = document.getElementsByTagName("a"); //get all links in the page
for(var i = 0; i < arr.length; i++)
{
if(arr[i].href.indexOf("Your URL") < 0 //not links that are 'inside' blog
&& arr[i].href.indexOf("javascript:") < 0) //not javascript links
arr[i].target = "_blank";
}
</script>

Save and letak kat betul2 bawah ni


*Update!


Cik Nora still x faham..huhu =____=""
Contoh:
Sebelum letak code tu, click ex-change banner or mane2 je dalam blog aku ni
then,
Tab dia still kekal kan??
.
.
Lepas letak code,dia jadi camni jika anda click apa2 jelah
Tengok, ade perubahan kan?
So, xyah la kome nk ulang2 aling "back" dan memenatkan kome je ^^"
Faham? huuu~

Done! Cubatrytest okeyh! :D

23 comments

November 21, 2010 at 7:14 PM

lama dah cari ni. thankQ

November 21, 2010 at 7:16 PM

thanks thanks apezs suka hehe...;)
apezs nak tanya. boleh bantu tak. saya punya entry tu kalau tgk full blog. dia akan kuar byk entry den utk satu entry akan show not full la. so kena klik read more tapi dia xtulis read more but bahasa latin kot xsilap. mcmane nak tukar yea? hope can help me.. hope dpt reply dia any my entry TQ.

November 21, 2010 at 7:44 PM

ni apa nie??? hik2...

November 21, 2010 at 7:53 PM

kalau tekan ctrl+left click pon boleh. heehe

November 21, 2010 at 7:56 PM

@wachaksame2 ^_^

@nora amila ghazali try la dlu, baru tau maa.. :D

@efyna.pinkladies nak kene tekan ctrl lagik, ni xyah, just click je ^_^

November 21, 2010 at 7:57 PM

@apezs shah ahahaha, same2 ^_^ saya balas di shoutbox anda ya ^^.

November 21, 2010 at 8:58 PM

apa nie... nora wat tak jadi apa pun... huhu... waaaaaa....

Anonymous
November 21, 2010 at 9:44 PM

ha? kne cuba ni..cm aneh je bnyinya..hehe

November 21, 2010 at 9:50 PM

@nora amila ghazali huahua, ok, try dlu , pastu cube klik mana saja anda nk dlam blog anda tu..

@alienelliz cuba2 :D

November 21, 2010 at 10:12 PM

tak jadi... waaaaaaaaaa..... ni yang malas nie...

November 21, 2010 at 10:21 PM

@nora amila ghazali waaa, vube la try faham ek..huhu

November 21, 2010 at 10:30 PM

tak jadi pun... dah penat berfikir dah nie... aduh.... dah la langsung tak jadi... aduhhh.... dh bersabar banyak nie...

November 22, 2010 at 12:21 AM

best2..nk try nnti:)

Anonymous
November 22, 2010 at 12:34 AM

aaa..lama kot cari ni..nasib singgah blog lau x..xtau pun..thanks for sharing :)

November 22, 2010 at 12:37 AM

thanks thanks thankssss :D hehehe

November 22, 2010 at 12:40 AM

thanks ni yg dicari

November 22, 2010 at 1:58 AM

waa.. bagus juga.. tp gua lebih suka right klik.. hehehe..

November 22, 2010 at 3:32 PM

@nora amila ghazali ahaha, xtau la nk wat camne dah..huhu

@Cik Jari slmt mencuba ^_^

@misyamissyou yeke? haha tenkiu2 :)

@alia shahira welcome³! :D

@AJsusah ke nk dapat kan tutor ni?huhu

@hamzah ian ahaha, terpulang pada individu masing2.. :)

February 4, 2011 at 2:00 PM

Byknya tutorial.. murah rezeki.. huhu nk request tuto bole x?saya nak request cara nak buat menu kat bawah header.. contoh cam menu tuto awk.. klik je kluar semua tuto.. pastu cara nak masukkan entry dalam tu skali..
tenkiu...

February 4, 2011 at 5:10 PM

@bellaamin... heheh
ohh, camtuh? muleh2.. insyaAllah.. ana x janjilah :D ^_^ welcome..

February 5, 2011 at 10:19 PM

thank you 4 dis tuto ^____^

February 5, 2011 at 10:23 PM

@Mia.lurvewelcome ;D

Post a Comment

About Me

My photo
Tahukah anda bahawa Dragon Ball mempunyai 7 biji bola?
 

Copyright © 2012 Syatoza Design bySyatoza