nuffnang

Tutorial:auto open new tab




Jadi, hari ni ain nak buat tuto pulak!malam2 gini ain copy pste jela...jgn rmh yek tuan punye blog
Tajuk tuto untuk hari ni, Auto Open New Tab!
     credit to:faqihah husni & fara tasya

1.Dashboard  > Layout > Add A Gadget > HTML/JavaScript
2.Copy kod di bawah dan pastekan diruangan  HTML/JavaScript tadi!

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

Merah: tukar  ke url blog awk okey!

3.save,done!

No comments:

Post a Comment

Komen Here