Forums

Music Player in pop-up window (7 posts)

  1. cosmicflowww
    Member
    Posted 7 months ago #

    Hi there,
    I've been trying to embed a Grooveshark playlist widget in a javascript pop-up window that opens on click, but I can't get it to work. It's the src-code that causes the trouble, it seems.

    Here's the Grooveshark code:

    <object width="450" height="300"><param name="movie" value="http://grooveshark.com/widget.swf" /><param name="wmode" value="window" /><param name="allowScriptAccess" value="always" /><param name="flashvars" value="hostname=cowbell.grooveshark.com&playlistID=62128982&bbg=7bc99b&bth=7bc99b&pfg=7bc99b&lfg=7bc99b&bt=ffffff&pbg=ffffff&pfgh=ffffff&si=ffffff&lbg=ffffff&lfgh=ffffff&sb=ffffff&bfg=fa2364&pbgh=fa2364&lbgh=fa2364&sbh=fa2364&p=0" /><embed src="http://grooveshark.com/widget.swf" type="application/x-shockwave-flash" width="450" height="300" flashvars="hostname=cowbell.grooveshark.com&playlistID=62128982&bbg=7bc99b&bth=7bc99b&pfg=7bc99b&lfg=7bc99b&bt=ffffff&pbg=ffffff&pfgh=ffffff&si=ffffff&lbg=ffffff&lfgh=ffffff&sb=ffffff&bfg=fa2364&pbgh=fa2364&lbgh=fa2364&sbh=fa2364&p=0" allowScriptAccess="always" wmode="window" /></object>

    And here is the code I used to open the pop-up window via javascript:
    <a href=........ onclick="NewWindow(this.href,'Soundtrack','450','300','no','center');return false" onfocus="this.blur()">click to open player in pop up</a>

    I just want the 'object' to be displayed in the pop up. The javascript I used is correct, it's working with any other embedded code. Please help me?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

  3. cosmicflowww
    Member
    Posted 7 months ago #

    Hi,
    thanks for the link, but the script I use works just fine in wordpress - if I use another embed code, like this one:
    <a href="http://www.youtube.com/v/kVk1HOlkq_o?version=3&hl=de_DE" onclick="NewWindow(this.href,'Soundtrack','450','300','no','center');return false" onfocus="this.blur()">click to open player in pop up</a>

    But I don't know how to get the music player loaded into the pop up!

  4. cosmicflowww
    Member
    Posted 7 months ago #

    Somebody know how it could work? Iframes, maybe?

  5. cosmicflowww
    Member
    Posted 7 months ago #

    Please? I'm pretty helpless here. I tried the Grooveshark support too, but they didn't know what to do.
    I can design posters, icons, banners, whatever in return for some solution :) Or write fanfiction, possibly.

  6. Josh
    Member
    Posted 7 months ago #

    Are you trying to do this from a page, a post, a widget?

  7. cosmicflowww
    Member
    Posted 7 months ago #

    Hi,
    I wanted to have the pop up link on a static page or the sidebar.

Reply

You must log in to post.

About this Topic