I'm getting:
Error:
Milkbox.initialize is not a function
What I think you want is:
Code:
milkbox.initialize();
Easy mistake to make. But if you look at the end of the milkbox.js file, you see:
Code:
window.addEvent('domready', function(){
milkbox = new Milkbox();
});
That means that Milkbox is the prototype function used to create instances of Milkbox. And that, in this particular case, milkbox is the instance.
Anyways, after changing the portfolio, I pasted this into the browser's address bar and hit enter:
Code:
javascript:void(milkbox.initialize())
and then it worked when I clicked on the thumbnail. This means that:
Code:
milkbox.initialize();
is the code you want. However, executing it onclick might not be soon enough, though it may. Give it a shot, change:
Code:
onclick="Milkbox.initialize()"
to:
Code:
onclick="milkbox.initialize();"
If that doesn't work, try onmousedown:
Code:
onmousedown="milkbox.initialize();"
Bookmarks