It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

POP UP WINDOWS

POP UP WINDOWS

Postby dalem on Wed Nov 01, 2006 7:52 pm

Hi

Please could someone help me to make a popup window for my site ?
I have tried to do it myself but without much success.

The piece of html at the end of my thread is for an mp3 player. I want this player to open in a small window say 200px X 200px. Please can someone help me ?
When a member is logged into my site, on the left side is a member panel where I have put a link called "mp3"

To insert this link I have had to put this piece of PHP code into one of the php files.

$ret .= MenuItem( _t("mp3 Player"), 'mp3/" target= "_blank", ', '', '_member_panel.gif' );

this opens a full size browser window but it's far to big.
Please can someone help.



This is the html for my mp3 player I have saved it to a file called index.html I want it that when I open index.html it will open my mp3 player in a small window.

Hope it's all clear..

Thank you for your help.

dalem.



Mp3 Player
###################################

<html>
<head>
</script>
<title>Wimpy Player</title>
</head>
<body bgcolor="000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle">
<!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0" width="188" height="300" id="wimpy" align="center">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="http://www.my-date.co.uk/mp3/wimpy.swf" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="000000" />
<param name="flashvars" value="wimpyApp=http://www.my-date.co.uk/mp3/playlist.xml&wimpySkin=http://www.my-date.co.uk/mp3/skins/skin_ipod.xml&theVolume=20&startPlayingOnload=yes" />
<embed src="http://www.my-date.co.uk/mp3/wimpy.swf" flashvars="wimpyApp=http://www.my-date.co.uk/mp3/playlist.xml&wimpySkin=http://www.my-date.co.uk/mp3/skins/skin_ipod.xml&theVolume=20&startPlayingOnload=yes" loop="false" menu="false" quality="high" width="188" height="300" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="000000" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- END WIMPY PLAYER CODE -->
</td>
</tr>
</table>
</body>
</html>

###############################################
dalem
 
Posts: 0
Joined: Wed Nov 01, 2006 7:37 pm

Postby apache on Fri Dec 22, 2006 12:16 pm

Try this, it's from my site which is PHP.

The buton bit is this:

<?php

$caption = "Imcon mp3 player";
$text = "
<div class='center'><body bgcolor='#3B3D3D' text='#C0C0C0' link='#C0C0C0' vlink='#C0C0C0' alink='#C0C0C0'>
<br />
-=|=-
<br />
<input type=\"button\" class=\"button\" value=\"Play Music\" style='text-align:center; 'cursor: pointer; cursor: hand' title=\"Imcon mp3 player\" onclick=\"window.open('http://www.imcon.co.uk/imcon-mp3-player.html', 'sample', 'toolbar=no, location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=300,height=300')\" />
<br />
-=|=-
</div>
";
$ns -> tablerender($caption, $text);

?>


The MP3 player is this:

http://www.imcon.co.uk/imcon-mp3-player.html
apache
 
Posts: 3
Joined: Fri Dec 22, 2006 11:46 am


Who is online

Users browsing this forum: No registered users and 8 guests