Jump to content

I need help Im a retard


ozm8

Recommended Posts

Hello guys i need help I got a php script its an im messanger I have half set it up properly I think but im stuck on this step can someone please dumb it down for me

 
6) Set up linking page:
On the page you want to link to PHP121 (e.g.
your index.html page which will hav
e a hyperlink to the PHP121 script,
put this in the <HEAD> section:
 
 
<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,m
 
enubar=no,directories=no,location=no,scrollbar
s=yes,status=no,resizable=yes,fullscreen=
no');
if (window.focus) {newwindow.focus()}
}
</script>
 
7) Create link:
Create the link to PHP
121 on your site. View
php121index.php in a text editor to s
ee an example of how to link to
PHP121.
Use code similar to the following to
create a nice contact-list sized
window:
You need to edit the path to php121im.php if
php121im.php is not in the same di
rectory as your webpage that
is linking to PHP121.
 
<a href="javascript:poptastic('php
121im.php');">Instant Messenger</a>

 

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

 

 

So it is like this:

 

<html>

<title>Title of your webpage</title>

<head>

<script type="text/javascript">

var newwindow;

function poptastic(url){

newwindow=window.open(url,'name','height=500,width=240,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbar

s=yes,status=no,resizable=yes,fullscreen=no');

if (window.focus) {newwindow.focus()}

}

</script>

</head>

<body>

<h1>Click on funky link below and it will pop up in new window</h1>

#Note below you have reference to php121 please ensure it is in the same folder as this script.

<a href="javascript:poptastic('php121im.php');">Instant Messenger</a>

</body>

</html>

 

That should work;

However I think you are just copy and pasting some code from elsewhere. I suggest some more study.

Edited by Check202
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.