Advertisement
Thelorgoreng

nixest's chatango profile html

Oct 20th, 2015
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.title = "☣";
  2. function getCookie(c_name)
  3. {
  4.  
  5. var c_value = document...;
  6. var c_start = c_value.indexOf(" " + c_name + "=");
  7. if (c_start == -1)
  8. {
  9.  c_start = c_value.indexOf(c_name + "=");
  10. }
  11. if (c_start == -1)
  12. {
  13.  c_value = null;
  14. }
  15. else
  16. {
  17. c_start = c_value.indexOf("=", c_start) + 1;
  18. var c_end = c_value.indexOf(";", c_start);
  19. if (c_end == -1)
  20. {
  21.  c_end = c_value.length;
  22. }
  23. c_value = unescape(c_value.substring(c_start,c_end));
  24. }
  25. return c_value;
  26. }
  27. var user = getCookie('id.chatango.com');
  28. var uid = getCookie('auth.chatango.com');
  29. var escapedauth = escape(uid);
  30. var greets = ['Hai ', 'Selamat Datang ','He He Ngintip ya ','Wow Ada ','Jangan Ngitip :P '];
  31. var iGreet = greets[Math.floor(Math.random() * greets.length)];
  32.  
  33. if (user!=null && user!="")
  34.   {
  35.   document.getElementById("greet").innerHTML="<h1>"+ iGreet + user + " </h1>";
  36.   }
  37. else
  38.   {
  39.   document.getElementById("greet").innerHTML="<h1>"+ iGreet +"anon"+ " </h1>";
  40.   }
  41.  
  42. var player = '<embed src="http://www.sheepproductions.com/billy/billy.swf?autoplay=true&f0=http://media.soundcloud.com/stream/EW3VdewCbV4u&t0=Kana Hanazawa - Ren\'ai Circulation&total=1" quality="high" wmode="transparent" width="200" height="10" name="billy" align="middle" type="application/x-shockwave-flash" />';
  43. document.getElementById("player").innerHTML = player;
  44.  
  45.  
  46. var web = 'http://fp.chatango.com/profileimg/'
  47. var username = getCookie('id.chatango.com');
  48. function getImages(){
  49.   if(username!="" && username!=null) {
  50.     imgLink = web+username.charAt(0).toLowerCase()+'/'+username.charAt(1).toLowerCase()+'/'+username.toLowerCase
  51.  
  52. ()+'/thumb.jpg'
  53.         userlink = 'http://'+username.toLowerCase()+'.chatango.com'
  54.     document.getElementById('image').innerHTML='<img src="'+imgLink+'" class="picStylez"><br>';
  55.     }
  56.         else
  57.         {
  58.     username = 'justhoax'
  59.     imgLink = web+username.charAt(0).toLowerCase()+'/'+username.charAt(1).toLowerCase()+'/'+username.toLowerCase
  60.  
  61. ()+'/thumb.jpg'
  62.         userlink = 'http://'+username+'.chatango.com'
  63.     document.getElementById('image').innerHTML='<img src="'+imgLink+'"  class="picStylez"><br>';
  64.         }
  65. }
  66. getImages()
  67.  
  68. var content = '<div class="yellow_but" style="float:right; margin-bottom:10px;"><a href="javascript:startChat(\''+'nixest'+'\',\''+user+'\')">'+'Ngobrol dengan gue'+'</a></div>';
  69.  
  70. var newset = document.getElementById("chatbutton_div");
  71.  
  72. if (newset!=null && newset!="")
  73.   {
  74.   document.getElementById("chatbutton_div").innerHTML=content;
  75.   }
  76. else
  77.   {
  78.   document.getElementById('show_chat_btn').innerHTML = '<input type="button" class="yellow_but" value="Ngobrol ke gue" onclick="showChat()" style="cursor:pointer">';
  79.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement