Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function testit(string,thing){
- split = string.slice(1).split('&')
- for (var i=0; i<split.length;i++){
- item = split[i]
- item = item.split('=')
- key = item[0]
- value = item[1]
- if (key == thing){
- return value;
- }
- }
- }
- value = testit(location.search,parameter)
- document.write("<img src="+"value+">")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement