Results 1 to 5 of 5
Thread: some code help
Threaded View
-
09-09-2004, 12:02 PM #1Web Hosting Evangelist
- Join Date
- Jul 2003
- Posts
- 533
some code help
hi,
i want to make a script that does the following
some one puts a code in there pages like this
<SCRIPT language="JavaScript" src="http://mysite.com/script.php?id=userid"></SCRIPT>
which would load a java script with that userid inside it
like
win2=window.open ('http://mysite.com/script2.php?id=userid','_blank','top=1,left=1,width=550,height=300,buttons=1,scrollbars=1,location=1,menubar=1,resizable=1,status=1,directories=1,tool bar=1'),win2.blur(),window.focus();
so the php script will echo out the java script and add userid inside it
any one knows how to do this ?
the end reselt the user with this code
<SCRIPT language="JavaScript" src="http://mysite.com/script.php?id=userid"></SCRIPT>
in there page will be converted to
<SCRIPT language="JavaScript" src="my java script inside the script.php with userid inside it"></SCRIPT>
most important that the userid changes for each member
thanks