Advertisement
Guest User

4 Pr0nt0

a guest
Jan 23rd, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function testit(string,thing){
  2.     split = string.slice(1).split('&')
  3.     for (var i=0; i<split.length;i++){
  4.         item = split[i]
  5.         item = item.split('=')
  6.         key = item[0]
  7.         value = item[1]
  8.         if (key == thing){
  9.             return value;
  10.         }    
  11.     }
  12. }
  13.  
  14. value = testit(location.search,parameter)
  15. document.write("<img src="+"value+">")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement