Welcome to Geeklog, Anonymous Friday, January 10 2025 @ 09:25 am EST
Geeklog Forums
PHP 121 Instant message only works in right side block
Status: offline
jordydme
Forum User
Full Member
Registered: 11/03/05
Posts: 135
Hi,
I have semsuccessfully installed this very nice PHP Instant messenger called PHP 121. I pasted the code into a block anbd has been working well. However I can only get it to work in a left side block not the right side. I asked the developer at his site for some help but he had no knowledge of GL and said I should see if I could get some help here.This is the code that works in a left side block:
<body>
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
if (window.focus)
}
</SCRIPT>
<a href="javascript:poptastic('http://highschoolforthehumanities.org/php121_chat/php121im.php');">Instant Messenger</a>
<br>
<br>
<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />
</body>
</html>
Any help would be appreciated,
Jordy
I have semsuccessfully installed this very nice PHP Instant messenger called PHP 121. I pasted the code into a block anbd has been working well. However I can only get it to work in a left side block not the right side. I asked the developer at his site for some help but he had no knowledge of GL and said I should see if I could get some help here.This is the code that works in a left side block:
Text Formatted Code
<html> <body>
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
if (window.focus)
}
</SCRIPT>
<a href="javascript:poptastic('http://highschoolforthehumanities.org/php121_chat/php121im.php');">Instant Messenger</a>
<br>
<br>
<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />
</body>
</html>
Any help would be appreciated,
Jordy
9
11
Quote
Status: offline
jordydme
Forum User
Full Member
Registered: 11/03/05
Posts: 135
You shouldn't have the
...
tags though.
...
tags though.
Not sure what you mean. I did not see ... anywhere in the code. I have a friend that is having the same problem. Paste the code in one of your blocks and you may see that it works in the left side block only. I would be curious if someone could test this on their site cause I have tried a number of things with no luck.
Thanks,
Jordan
8
8
Quote
Status: offline
suprsidr
Forum User
Full Member
Registered: 12/29/04
Posts: 555
Location:Champaign, Illinois
Firstly you should put the function:
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
}
</SCRIPT>
in your header.thtml between the head /head tags.
notice the removal of the window.focus line.
then place this code in your block:
<br>
<br>
<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />
Notice the removal of the html & body tags, your page already has those
Now it works anywhere on the page.
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
Text Formatted Code
<script type="text/javascript">var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=400,width=200,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=no,status=no,resizable=yes,fullscreen=no');
}
</SCRIPT>
notice the removal of the window.focus line.
then place this code in your block:
Text Formatted Code
<a href="javascript:poptastic('http://highschoolforthehumanities.org/php121_chat/php121im.php');">Instant Messenger</a> <br>
<br>
<img src="http://highschoolforthehumanities.org/php121_chat/php121logo.gif" width="60" height="56" />
Notice the removal of the html & body tags, your page already has those
Now it works anywhere on the page.
FlashYourWeb and Your Gallery with the E2 XML Media Player for Gallery2 - http://www.flashyourweb.com
11
7
Quote
All times are EST. The time is now 09:25 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content