Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var image = "/images/my_image.png"
- var string = location.port;
- var full_url = "";
- if(string != ""){full_url = document.domain + ":" + string;}
- else{full_url = document.domain;}
- var image = "http://"+full_url+"/images/my_image.png"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement