Skip to content

Instantly share code, notes, and snippets.

@rosscooperman
Created December 12, 2014 20:30
Show Gist options
  • Save rosscooperman/1c2611ae053cc8e34ff8 to your computer and use it in GitHub Desktop.
Save rosscooperman/1c2611ae053cc8e34ff8 to your computer and use it in GitHub Desktop.
<html>
<body>
<a href="http://www.movable-ink-7158.com/p/rp/c22a225436ed389e/url" style="display: block;">
<img alt="Display images to show real-time content" border="0" src="http://www.movable-ink-7158.com/p/rp/c22a225436ed389e.png" style="border: 0; display: block;" />
</a>
<script>
var params = window.location.search.replace(/^\?/, '').split('&').map(function(str) { return str.split('=') });
for (var param in params) {
if (param[0] == 'mi_u') {
var images = document.getElementsByTagName('img');
for (var image in images) {
image.src += '?mi_u=' + param[1];
}
}
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment