Toturial : Open at new tab

Olla,Nanie ada satu Toturial yang simple nak bagi dekat korang.Ok mula-mula macam
biasa korang Dashboard > Design > Page element  then Add gadget > search and click for HTML/Javascript.Then,korang paste kod ini dekat kotak HTML/Javascript

<!-- 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>

dah selesai kan ? save lahh :) then cube click maner2 link korunk :) hahh , kan dia keluar kat new tabb :) mudah hahh keje nyer ^^

0 cute elephant:

Post a Comment

Assalammualaikum + annyeong, :)

Komen di sini ya!!
Satu perkataan pun tak pe...hehehe
Komen banyak2 tau!!

 
Tempelate Designed by Nanie| Copyright-2011 Protected | Infinite
Fly away