tags:

views:

142

answers:

1

can any body help me the create a menu(Home, My Quote, Send a Quote) using for my facebook application. When I select a tab, the menu disappears when a new page opens up. I need to display my page under the menu itself, so how to do that

the code is

  <div>
    <fb:tabs>
      <fb:tab-item href="http://apps.facebook.com/ranpariya/index.php" title="Home"      
      <?php if ($page == 'index.php'):?>selected="true"<?php endif;?>/>
   <fb:tab-item href="http://apps.facebook.com/ranpariya/friends.php" title="Friends" <?php if ($page == 'friends.php'):?>selected="true"<?php endif;?>/>
    <fb:tab-item href="http://apps.facebook.com/ranpariya/my_tab.php" title="Invite Friends" align="right" <?php if ($page == 'invite.php'):?>selected="true"<?php endif;?>/>
    </fb:tabs>
  </div>
A: 

Just have a DIV under the menu and change it's innerHTML (or, if using jQuery, call $("#myDiv").html(sHtml);) with different content, based on the command selected.

Traveling Tech Guy
hello friend , already i have to put menu under the div tab, but there is no making any effect,the menu disappears when a click on the any tab
Ashvin Ranpariya
What I mean is, have a separate DIV element, name it "content". Catch the tab click event. Upon click, change the HTML of content to the HTML you'd ike to see under that tab.
Traveling Tech Guy
can u give me an example of it
Ashvin Ranpariya
thanxs a lot to help me
Ashvin Ranpariya

related questions