Hiding a new window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TerryMolloy
    New Member
    • Aug 2008
    • 3

    Hiding a new window

    I've written a story that has links to music throughout. I would like to hide windows media player, so that you hear the music but do not see the player. What should I include in the link script?
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    There's no way to hide a window, so you may try to open the media player in an iframe, and hide the iframe.

    Comment

    • TerryMolloy
      New Member
      • Aug 2008
      • 3

      #3
      How do i create and iframe and close it?

      Comment

      • nitinpatel1117
        New Member
        • Jun 2007
        • 111

        #4
        You can have music playing in the background and then use javascript to change the source file, when someone clicks on a link on your page

        The HTML code would be something like the below. I haven't checked if the below code works, but you get the idea. Google it for something like 'website background music' and you'll probably get better answers.

        [HTML]<embed src="yourmusicf ile.mid" autostart="true " hidden="true">
        </embed>
        <noembed>
        <bgsound src="yourmusicf ile.mid">
        </noembed>[/HTML]

        Comment

        • TerryMolloy
          New Member
          • Aug 2008
          • 3

          #5
          I use the embed script on some pages. I'm looking for a short line of code that would be included in the a href string of a link that would hide the new window so you can just hear the music or perhaps would make the window small.

          Comment

          • Death Slaught
            Top Contributor
            • Aug 2007
            • 1137

            #6
            You can use JavaScript to create the media player on the fly or to make the music play. Also if you simply want the music to play but for your users not to be able to see the player, all you need is a simple line of CSS.

            [HTML]<object classid="clsid: 22D6F312-B0F6-11D0-94AB-0080C74C7E95" style="display: none;">
            <param name="FileName" value="Song.mp3 " />
            </object>[/HTML]

            Thanks,
            {\_/}
            (' . ')
            (")[DEATH](")
            (")(")

            Comment

            Working...