Jun 26, 2011

Tutorial : Automated New Tab



Hye peeps ! actually ramai nak tahu camne nak buat automated new tab nieh..sebab taknak hampakan korang, mari Yana ajar tau..actually ape tu automated new tab? haa, cuba korang try bukak link dekat mane-mane dalam blog Yana nieh, terus page tu keluar ke menu tab kan? tak perlu susah-susah nak ryte click then bukak new tab..senang saje, jom buat !
1) Log In> Design> Add Gadget> HTML/Javascript
2) Copy and paste semua code di bawah nie ye
<!-- 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>


3) Your URL tukar dengan URL blog korang

4) Save ! acu try tengok menjadi ke tak..hehe :D

Suka? LIKE je! :)


LIKE Fan Page Yana sekali yer! :)

No comments:

Post a Comment

Terima kaseh drops komen
Esok-esok drops komen lagi oke ! :)