Skip to main content
Finally manage to put some dhtml drop down menu onto WALHI website, though till i write this it still kinda buggy when using M$ IE and work great on Firefox.
I create style element script_dhtml for storing javascript and css file that used by dhtml dropdown menu. For top navbar I modify banner_menu and put javascript function inside html link tag and for left horizontal kampanye I modify the variable in subtopics_menu and change fetch section to
<a class="subtopic2"
href="<?=$site->uri.$topics_array[$subtopic->id];?>/"
onMouseover="ddropdownmenu(this, event, <?=$subtopic->name;?>,
'150px')"
onMouseout="ddelayhidemenu()">&(subtopic.extra);</a>

Add several new global variable on code-global so that the dhtml
can get array for the subtopic.

And to give subtopic array on the javascript dhtml dropdown from
midgard subtopic function,
I came up with following lines of code


<?
$campaigns_topic = mgd_list_topics(169);
?>
var campaign=new Array()
var c = 0
<?
while ($campaigns_topic_menu && $campaigns_topic_menu->fetch())
{ ?>
campaign[c] ='
<a href="<?=$site->uri.$topics_array[$campaigns_topic_menu->id];
?>/">&(campaigns_topic_menu.extra);</a>'
c++
<?}?>

Comments

Popular posts from this blog

Yet another online shop launch

For housewife who use to work, daily activities are dull and boring. So I've been persuade my wife to run online shop to add variation on her daily routine. Finally we decided to start selling clothing goods and knick knacks, some are airbrush paint t shirt, woman snake leather handbag are there also Since I've been working with python, I came out to use satchmo for our online shop framework After doing customizing here and there and build some payment modules, we lauch WarungRupa.com  on early January 2012 We have some ideas which are still in our thoughts and we keen to work on it Hope WarungRupa.com  can have many visitors and buyers Next to do are SEO and promotions ^_^
1 Desember 2003 Spider admin diinstall dari < http://agaipiotras.igk.pl/spider-admin.xml.gz > karena situs cvs di midgard tidak dapat diakses dan situs spider sendiri berbahasa Rusia sehingga mencari di www.google.com dengan keyword "spider-admin.xml.gz". Spider dan aegir dapat berjalan dengan baik.
wheeeww... it been a while since I do my last web bloging since the web project finally hit the road plus I've only lame ass internet connection. I've decided that this blog gonna be my personal blog that would tell you guys about my experience with opensource world and maybe a bit about my presonal things (which is almost imposible since I'm not so much open about my personal life ;) ) one other thing... yeah it would be gado-gado blog entry. That mean sometime I'll post in english and sometime in bahasa due to the limitation of my brain ;)