class_sick 3 Report post Posted May 4, 2007 (edited) salam.firstly sori la klo dah ader topik cam nie.klo ader korang bg tau link dia.nnt aku close topik nie.nak mintak tlg kwn2 skit.aku baru nak blaja2 buat website nie.nak mintak tlg,korang tau xcoding tuk buat menu bar mcm nie.biler kiter klik satu menu,pastu dia akan kuar sub menu dia.contoh kat sini,biler klik ikon tambah(+) kat sblh menu tu,pas2 dia akan kuar sub menunyer.try gie kat http://www.articlesbase.comaku nak cari kat tenet pun xtau per org panggil tuk coding mcm nie.aku dah try copy coding dr website tu,tp biler try xjd lak.mayb ader yg tertinggal.thanks kpd yg sudi membantu. Edited May 4, 2007 by class_sick Quote Share this post Link to post Share on other sites
unexistance 3 Report post Posted May 4, 2007 g: css cascading menug: dhtml cascading menuada dua choice- vertical (mcm link ko bagi tu)- horizontal (menu biasa kat browser)kalau CSS je, ko tak payah klik dia da expandkalau nak klik, kena pakai yang javascript/dhtml Quote Share this post Link to post Share on other sites
class_sick 3 Report post Posted May 4, 2007 thanks unexistance,balik nie aku try.aku cuma kompius psl nama coding mcm nie org panggil per.klo dah tau,senang nak cari akt google.nnt aku try.apa2 aku msj kat sini nnt. Quote Share this post Link to post Share on other sites
class_sick 3 Report post Posted May 7, 2007 nie aku baru jumpa. http://deluxe-tree.com/ . try cari tree menu kat google.aku tgh godek2 lg benda alah nie.nampak mcm best.tp xtau la.saper2 pernah guna,plz komen... Quote Share this post Link to post Share on other sites
unexistance 3 Report post Posted May 8, 2007 sanggup nak beli sebab nak buat menu? silakan Quote Share this post Link to post Share on other sites
class_sick 3 Report post Posted May 8, 2007 hehehe...tu la psl...tp kan,bila aku guna firefox,ok jer.tp bile aku view guna IE,kat menu tu kuar la plak TRIAL VERSION...adeihhh...ada sapa2 leh tulun?huhuhu Quote Share this post Link to post Share on other sites
zal 0 Report post Posted May 17, 2007 (edited) salam.firstly sori la klo dah ader topik cam nie.klo ader korang bg tau link dia.nnt aku close topik nie.nak mintak tlg kwn2 skit.aku baru nak blaja2 buat website nie.nak mintak tlg,korang tau xcoding tuk buat menu bar mcm nie.biler kiter klik satu menu,pastu dia akan kuar sub menu dia.contoh kat sini,biler klik ikon tambah(+) kat sblh menu tu,pas2 dia akan kuar sub menunyer.try gie kat http://www.articlesbase.comaku nak cari kat tenet pun xtau per org panggil tuk coding mcm nie.aku dah try copy coding dr website tu,tp biler try xjd lak.mayb ader yg tertinggal.thanks kpd yg sudi membantu.cuba try yg ni....ada dua file...run kan file menu1.phpmenu.php<?phpclass menu { var $name; var $items; var $open; var $closed; var $indent; function menu($name, $open = '(-)', $closed = '(+)', $indent = ' ' ) { $this->items = array(); $this->name = $name; $this->open = $open; $this->closed = $closed; $this->indent = $indent; } function add($name, $href = "", $target = "") { $n = count($this->items); if (is_object($name)) { $this->items[$n] = $name; } else { $this->items[$n]['name'] = $name; $this->items[$n]['href'] = $href; $this->items[$n]['target'] = $target; } } function show($nest = 0) { $urlname = strtr($this->name, ' ', '_'); $indent = ''; global $$urlname; global $PHP_SELF; global $QUERY_STRING; if ($nest) { $indent = str_repeat($this->indent, $nest); } if (isset($$urlname)) { printf('%s<a href="%s?%s">%s</a><br>', $indent . $this->open, $PHP_SELF, ereg_replace("{$urlname}=&", '', $QUERY_STRING), $this->name); echo "n"; while (list(,$item) = each($this->items)) { if (is_object($item)) { $item->show($nest + 1); } else { printf('%s<a href="%s"%s>%s</a><br>', $indent . $this->indent, $item['href'], (!empty($item['target']) ? ' target="' . $item['target'] . '"' : ''), $item['name']); echo "n"; } } } else { printf('%s<a href="%s?%s=&%s">%s</a><br>', $indent . $this->closed, $PHP_SELF, $urlname, $QUERY_STRING, $this->name); echo "n"; } }}?>[/codebox]menu1.php[codebox]Example<?phpinclude('menu.php');$submenu = new menu('Sub Menu');$submenu->add('Sub Item 1', 'http://www.yahoo.com', '_new');$submenu->add('Sub Item 2', 'link.html');$main = new menu('Main');$main->add('Main Item 1', 'link.html');$main->add('Main Item 2', 'link.html');$main->add($submenu);$main->add('Main Item 3', 'link.html');$second = new menu('Secondary Menu');$second->add('Secondary Item 1', 'link.html');$second->add('Secondary Item 2', 'link.html');$main->show();$second->show();?> cuba cari kat sini....http://www.js-examples.com/ Edited May 17, 2007 by zal Quote Share this post Link to post Share on other sites