javascript in php
Posted: Tue Jan 17, 2006 8:05 pm
twigletmac | Please use
the link works if i open it in a new window using html, but not like this... any suggestions?
twigletmac | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
i'm trying to open a browser window in an echo tag... i put the echoed the javascript according to a goolge explaination...Code: Select all
<?php
echo "<script type='text/JavaScript'>";
echo" <!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->";
echo "</script>";
include_once("includes/Gallery.class.php");
...
$result .= "<span><a href='#' onclick='MM_openBrWindow('photo.php?id=$index\','pop','scrollbars=yes,resizable=yes,width=600,height=1000') title=\"View Photo $index\"><img src=\"$thumb\" width=\"$width\" height=\"$height\" alt=\"Thumbnail $index\" /></a></span>";
?>twigletmac | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]