Home » Support Forums for PMBT 2.X » General Help for 2.X » Formatting the Help Popup window
| Formatting the Help Popup window [message #4697] |
Sun, 08 August 2010 06:07  |
watermolecule  Messages: 109 Registered: July 2010 |
Super-Seeder |
|
|
I figured out that the Help Popup window is controlled in /themes/mytheme/main.php but there is a problem. I see how I can change the icon at the top of the help window and I see how I can change the color of the main section of the window, but I don't see how I can change the color of the top bar of the help window.
The code in main.php is as follows:
function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}
So how can I change the top bar color? I also attached a picture to make things totally clear.
|
|
|
| Re: Formatting the Help Popup window [message #4698 is a reply to message #4697] |
Sun, 08 August 2010 07:07   |
|
change this
function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}
to
function help($name,$help,$title = "") {
echo "<span onmouseover=\"return overlib('".addslashes(str_replace(Array("\n","\""),Array( "","'"),$help)),"'";
if ($title != "") echo ",CAPTION, '".addslashes(str_replace(Array("\n","\""),Array("","' "),$title))."'";
echo " ,FGCOLOR,'#ffffff',BGCOLOR,'#0000CC',CAPICON,'themes/pmbt/pics/help.png',SHADO W,SHADOWOPACITY,40,SHADOWCOLOR,'#000000',SHADOWX,2,SHADOWY,2 ,HAUTO,VAUTO);\ " onmouseout=\"return nd();\" style=\"cursor:help\">".$name."</span>";
}
this and then make
,FGCOLOR,'#ffffff',BGCOLOR,'#0000CC'
the color you want
|
|
| |
Goto Forum:
Current Time: Wed Feb 08 11:41:55 GMT 2012
Total time taken to generate the page: 0.00736 seconds
|