The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
javascript popup with php
ok basically the popup just doesn't come up, i copied most of the javascript from beta.vbulletin.com/vb3 (sad huh) and changed the variables and stuff to work for my site, but all i get when i click the link is a javascript error, the ! in a yellow triangle in the bottom left corner of IE, so here is my code...
PHP Code:
PHP Code:
edit: there IS a \ in front of the "javascript:ip($id) but for some reason it isn't there in the post |
#2
|
|||
|
|||
why do you have it in PHP? why not just have it in normal html and echo the variables
<script type="text/javascript"> <!-- <? function ip(id) { ?> window.open("index.php action=ippopup&id="+id,"toolbar=no,location=no,men ubar=no,scrollbars=no,width=10 0,height=50,resizeable=no,status=no") <? } ?> // --> </script> <a href="java script:<? echo "ip(id)";?>><?echo "[$IP]";?></a> |
#3
|
||||
|
||||
because it's inside of php script, and i just need help on the java part
|
#4
|
|||
|
|||
<? if ($blah) { ?>
<script type="text/javascript"> <!-- <? function ip(id) { ?> window.open("index.php action=ippopup&id="+id,"toolbar=no,location=no,men ubar=no,scrollbars=no,width=10 0,height=50,resizeable=no,status=no") <? } ?> // --> </script> <a href="java script:<? echo "ip(id)";?>><?echo "[$IP]";?></a> <? } continue the script ?> |
#5
|
||||
|
||||
the function ip(id) isn't php, it's javascript, but maybe that way could work...hrmmm...
*goes off to try again* |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|