:
:
:
If so, how?
Moderators: macek, egami, gesf
:
:
:

<?
$1img="1.gif";
$2img="2.gif";
echo "<script language=\"JavaScript\">
imgName = new Array()
imgName[0] = \"$1img\"
imgName[1] = \"$2img\"
</script>
";
?>
<?php
//--- Set Quick Format options.
if (!isset($this->attributes["quickformatnames"])) {
$this->attributes["quickformatnames"] = array("Normal","Formatted","Address","Heading 1","Heading 2",
"Heading 3","Heading 4","Heading 5","Heading 6","Numbered List","Bulleted List",
"Directory List","Menu List","Definition Term","Definition","Paragraph");
} else {
$this->attributes["quickformatnames"] = explode(",", $this->attributes["quickformatnames"]);
}
?>
<script language="JavaScript">
var quickformatNameArray = new Array();
while (list ($key, $val) = each ($this->attributes["quickformatnames"])) {
$generatedContent .= "quickformatNameArray[$key] = '$val';";
}
</script>
Return to PHP coding => General
Users browsing this forum: Google [Bot] and 4 guests