just did a quick google search; you can fiddle with it the code if you want.
www.weberdev.com/get_example-4051.html
Please Log in to join the conversation.
thanks.. the code there looks quite different from what nant is using in his comp though.. i don't really want to change too much because that always gives me nothing but trouble..
i cannot really link or merge the two- the site you provided and nants code.
i would much rather prefer "adjusting" the code.
i guess this is the code that is in charge of what is going on right?
$style = "style=\"padding:5px;\"";
if ($pgdisplaycount > 0){
// headings go here if needed
switch ($tabparams["cbpgdisplayformat"]){
case 'DF1': // image layout headings and inits
$icon = explode(",",$tabparams["cbpgbuttonslist"]);
$htmltext2 .= "<script language=\"JavaScript\">";
$htmltext2 .= "function pgpopup(pgimagefile,pgimagetitle,pgimagedescription) {\n";
$htmltext2 .= "var newWindow = window.open(\"\",\"newWindow\",\"height=" . ($tabparams["pgmaxheight"]+100) . ",width=" . $tabparams["pgmaxwidth"] . "\" );\n";
$htmltext2 .= "var imageurl = \"<img src=\" + pgimagefile + \">\";\n";
$htmltext2 .= "newWindow.document.open();";
$htmltext2 .= "newWindow.document.writeln(\"<div align='center' >\");\n";
$htmltext2 .= "newWindow.document.writeln(\"<title>Profile Gallery Image: \"+ pgimagetitle + \"</title>\");\n";
$htmltext2 .= "newWindow.document.writeln(imageurl);\n";
$htmltext2 .= "newWindow.document.writeln(\"<br />\");";
$htmltext2 .= "newWindow.document.writeln(pgimagedescription);\n";
$htmltext2 .= "newWindow.document.writeln(\"</div>\");\n";
$htmltext2 .= "newWindow.document.close();\n";
$htmltext2 .= "}\n";
$htmltext2 .= "</script>";
the only question now is what i would have to "adjust" in this code... well.. provided of course i am right on this one;)
ohh.. and it is not the padding value. have already tried to set it to 0 and it doesn't do a thing for me...
thx
fabs
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.