Skip to content

Instantly share code, notes, and snippets.

@koduki
Created May 30, 2010 02:39
Show Gist options
  • Save koduki/418729 to your computer and use it in GitHub Desktop.
Save koduki/418729 to your computer and use it in GitHub Desktop.
/*
* 作りかけ
*/
function f(i){
var us = document.location.toString().split("/");
us.pop();
var url = us.join('/');
return (url + '/books/images/1.4585/' + i + '.jpg');
}
function f2(s){
return "<img onclick='javascript:" + s + "' src='" + f(1) + "'/>";
}
var body = document.getElementsByTagName('body')[0];
body.innerHTML = f2('(function(){
var body = document.getElementsByTagName('body')[0];
body.innerHTML
})()');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment