Senokai lankiausi forume, kaip visi laikotes?

Parasiau scripta, kadangi savo puslapiuose naudoju nemazai meniu su flash, susiduriau su problemele, reikejo, kad flashas keistu mygtukai, kai pereini i kita puslap:
var fo = new FlashObject("flash/menu_v8.swf?button={page}", "movie", "100%", "127", "8", "");
Ikeliau UDT:
global $gCms;
global $smarty;
$manager =& $gCms->GetHierarchyManager();
$var = 'root_page_id';
if( isset($params['assign']) && $params['assign'] != '' )
{
$var = $params['assign'];
}
$result = "NO RESULT";
$thisPage = $gCms->variables['content_id'];
$currentNode = &$manager->sureGetNodeById($thisPage);
while( isset($currentNode) && $currentNode->getLevel() >= 0 )
{
$currentContent =& $currentNode->getContent();
$result = $currentContent->Hierarchy();
$currentNode =& $currentNode->getParentNode();
}
$smarty->assign($var,$result);
echo $result;
Gal kam pravers kiek veliau...
Iki
