SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Location
    India
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    google player not working

    echo"<div class='hideplayer' style='position:absolute;left:0px;'><embed type='application/x-shockwave-flash' *flashvars='audioUrl=upload/Toh%20Zinda%20Ho%20Tum&autoPlay=true' *src='http://www.google.com/reader/ui/3523697345-audio-player.swf' width='200px' height='200px' quality='best' wmode='transparent' autoplay='1'></embed></div>";


    this code isn't working...i just copied it and deleted it and then undo it and after that its not working...it display itself when site loads and then disappear on top left...please tell whats d problem

    http://moneyzzproject.netii.net

  2. #2
    Always A Novice bronze trophy
    K. Wolfe's Avatar
    Join Date
    Nov 2003
    Location
    Columbus, OH
    Posts
    2,180
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    Try this:

    Code PHP:
    echo '<div class="hideplayer" style="position:absolute;left:0px;"><embed type="application/x-shockwave-flash" *flashvars="audioUrl=upload/Toh%20Zinda%20Ho%20Tum&autoPlay=true" *src="http://www.google.com/reader/ui/3523697345-audio-player.swf" width="200px" height="200px" quality="best" wmode="transparent" autoplay="1"></embed></div>';

  3. #3
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Location
    India
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    no its not working...actually it was working before but dont know what happened

  4. #4
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Location
    India
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    it automatically starts now.....what was that? any ideas sir?

  5. #5
    Always A Novice bronze trophy
    K. Wolfe's Avatar
    Join Date
    Nov 2003
    Location
    Columbus, OH
    Posts
    2,180
    Mentioned
    65 Post(s)
    Tagged
    2 Thread(s)
    Are you using my code or yours? I flipped the quote styles in my code so that " was being used in your HTML rather than '.

  6. #6
    SitePoint Enthusiast
    Join Date
    Oct 2012
    Location
    India
    Posts
    73
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    your code didn't worked....it was mine that itself starts working....what could be the reason?any idea?

  7. #7
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,165
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    What is your actual question now? The audio starts when the page loads. It does not display on screen because the inline style places it offscreen:

    Code:
    style="position:absolute;left:-800px;"
    It autoplays presumably because of this:

    Code:
    autoplay="1"
    If you don't want autoplay, presumably you'd need this:

    Code:
    autoplay="0"
    ... but then, with it being set way of screen, it will never run.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •