MP3 pop up for my site

Discussion in 'Web Design and Development' started by Butler Trumpet, Jul 7, 2006.

  1. Butler Trumpet macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #1
    So I would like to have an mp3 player that can pop up when you click a link. Essentially just a blank window that opens up but it smaller than full screen (probably like 400x100 or something)

    So, in dreamweaver, how do you make the target= _blank window open smaller than full screen?

    Thank you! and ps, i dont know much about CSS, and Im still learning HTML. yes I am a newbie at web authoring
     
  2. Coolnat2004 macrumors 6502

    Coolnat2004

    Joined:
    Jan 12, 2005
    #2
    An easy way to do this is, in the link field in dreamweaver... make it like this:

    PHP:
    javascript:window.open('newpage.html','newWindow','width=400,height=100,resizable=yes,scrollbars=no,toolbar=no,status=no,menubar=no');
     
  3. Butler Trumpet thread starter macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #3
    okay I got it to work.......... do you know how I title the window though? it comes up as untitled

    thanks so much.... there are like about 84 different bad ways to do this out there on the internet. this is by far the easiest :) you are awesome
     
  4. Butler Trumpet thread starter macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #4
    okay nevermind, I just forgot to label the sound page.

    thanks again, you are amazing, and deserve a raise :)
     
  5. Coolnat2004 macrumors 6502

    Coolnat2004

    Joined:
    Jan 12, 2005
    #5
    Haha, any time. And... I'd like a job first (need to get a car). :rolleyes:
     
  6. Butler Trumpet thread starter macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #6
  7. ercw macrumors regular

    Joined:
    May 4, 2006
    #7

    Just looked at it on a window machine with explorer and it didn't work
     
  8. frankblundt macrumors 65816

    frankblundt

    Joined:
    Sep 19, 2005
    Location:
    South of the border
    #8
    i really don't like pop-ups - is there any way you could be persuaded to embed players on the page?

    Edit the code below with the paths to your samples. It uses object and nested embed tags (with full details in both) to cope with the differences in the way IE and normal browsers handle this kind of thing.

    Code:
    <p class="link"><object height="16" width="250">
    <param name="controller" value="true">
    <param name="autoplay" value="false">
    <param name="src" value="pathto/your.mp3">
    <embed width="250" height="16" src="pathto/your.mp3" autoplay="false" controller="true"> 
    </object>
    
     
  9. Coolnat2004 macrumors 6502

    Coolnat2004

    Joined:
    Jan 12, 2005
    #9
    Personally, I hate pages that have lots of embedded files. My internet connection is very slow (it's supposed to be much faster..) and I don't want all of those loading if I only want to listen to one of them.
     
  10. Butler Trumpet thread starter macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #10
    Yeah so is that going to make all the files load at once? Because I would like to avoid that if I could.

    I got an email from the guy this morning, and he wants a new title page, which is easy, but he also wants background music that will start playing automatically. I dont know how to do it, but Im sure I can figure it out. I just think that its a bad idea... it can annoy so many people if you have music start playing without them knowing it. Do you agree?
     
  11. Butler Trumpet thread starter macrumors 6502

    Butler Trumpet

    Joined:
    May 26, 2004
    Location:
    Dekalb IL
    #11
    I have a "Cant hear the music?" link that people can click which takes care of that. Im not going to redesign my page for the needs of an ancient browser that no one should be using. (sorry if that's mean, but its true isnt it?)
     

Share This Page