« mini music browser inside a page | Main | Magnatune street billboards »

May 27, 2006

Comments

Topher

That's really slick. I'd like to use it as a Bookmarklet, but I can't find your JS. That link above simply opens a new browser window which then opens the small player. Can we do it without first opening a blank window?

John Buckman

You can either just point your web browser to http://magnatune.com/minibrowse/ or try your copy this javascript if you want a popup window:

<a target="mini" href="javascript:void(win=window.open('http://magnatune.com/minibrowse/',%20'Magnatune Mini Browser',%20'width=400,height=300,resizable=yes,scrollbars=yes,menubar=no,status=no'))">
http://magnatune.com/minibrowse/
</a>

Scott Matthews

fwiw, you might prefer to do something like this:

<a href="http://magnatune.com/minibrowse/" onClick="window.open('http://magnatune.com/minibrowse/','mini','width=400,height=300,resizable=yes,scrollbars=yes,menubar=no,status=no');return false;">
http://magnatune.com/minibrowse/
</a>

(I'm not sure that the code you posted will work in IE, and it may open an extra window -- this modified code should work with IE & FF, should only open the mini window, and should still work if you right-click the link)

-Scott

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

Comments are moderated, and will not appear until the author has approved them.