Forum Moderators: coopster
I have this so far..
<A href=\"emoticons.php\" target=\"_blank\">Emoticons</A> \n";
I can't figure out how the height and width tags would work, i've tried different code, but they don't seem to be working. Is it even possible in php?
I think you might be getting your javascript mixed up with your PHP. Try this:
<a href=\"#\" onClick=\"MyWindow=window.open('emoticons.php','MyWindow','toolbar=no,location=no, directories=no,status=no,menubar=no,scrollbars=yes,left=250,top=20,screenX=0,screenY=0,resizable=no,width=500,height=400'); return false;\">Emoticons</a>
Its cheap and nasty, but should be ok. Edit the variables to suit.
:)
problem is...this is my actual code...
if ($emoticon=="1")
echo " <A href=\"emoticons.php\" target=\"_blank\">Emoticons</A> \n";
see it has to be called from another page I have, this makes no sense does it? lol
[edited by: geekgrrl at 8:43 pm (utc) on Aug. 7, 2004]
Always ask yourself one question when thinking through something like this: is this happening on my computer or on the server?
- update the database. That's happening on the server. The database is not on your computer. Thus, it's a PHP task, not HTML or Javascript
- open a new window. That's happening on your computer. PHP runs on the server, so it can't help. Must be an HTML or JS solution.
won`t this work?
if ($emoticons==1)
{
echo "<a href=\"#\" onClick=\"MyWindow=window.open('emoticons.php','MyWindow','toolbar=no,location=no, directories=no,status=no, menubar=no,scrollbars=yes,left=250,top=20,screenX=0,screenY=0,resizable=no,width=500,height=400'); return false;\">Emoticons</a>\n";
}
[edited by: dreamcatcher at 8:47 pm (utc) on Aug. 7, 2004]