Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Butler Trumpet

macrumors 6502a
Original poster
May 26, 2004
521
410
Dekalb IL
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
 
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');
 
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
 
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>
 
frankblundt said:
i really don't like pop-ups - is there any way you could be persuaded to embed players on the page?
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.
 
frankblundt said:
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.

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?
 
ercw said:
Just looked at it on a window machine with explorer and it didn't work

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?)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.