Friday, June 29, 2012

Tutorial Open At New Tab


Tumblr_m6ax4tgcoo1qfwyu2o1_500_large
Bosan bosan bosan !!!! :( .. xde kene nak buat tuto hihi .. Jadi Atin nak buat tuturial Open At New Tab .. jom2.



Blogskin/template classic

 Dashboard > Template > Edit HTML  
 Tekan ctrl+f  then cari code <head>
 Copy code bawah ni.
<base target='_blank'/>
 Paste kat bawah code <head>
 Preview & save.




Template Design

 Dashboard > Add Gadget > Edit HTML
 Copy code bawah ni
<!-- 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>
 Paste dalam Edit HTML tadi
 Preview & save.

Senang je kan hihi .. Good Luck ><

2 comments:

niksyaza98 said...

Menjadi :) Thanks!

Atin Tory said...

@niksyaza98 : ok u r welcome :)