Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old June 18th, 2004, 06:09 PM
aikidokid aikidokid is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 aikidokid User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 sec
Reputation Power: 0
Don't want to open new browser!

OS = XP Pro
phpBB V 208


I have just started with PHP, although I do have a background of VB.

I found some java code on another web site which was what I wanted to use for my menus on my phpbb forum. I played about a bit with it to change it to suit my needs and came up with the below code.

The problem I don't know how to solve, is that, although the menu works, it opens up a new browser for each menu item, instead of doing it in the same browser, as if using the menu on this forum.

I hope this makes sense.

php Code:
Original - php Code
  1. <script language="JavaScript"
  2.       function toonmenu(elmnt) 
  3.       { 
  4.       document.all(elmnt).style.visibility="visible" 
  5.       } 
  6.       function verstopmenu(elmnt) 
  7.       { 
  8.       document.all(elmnt).style.visibility="hidden" 
  9.       } 
  10.       </script> 
  11.  
  12.       <table width="100%" border="1" bordercolor="#330099">
  13.       <tr bgcolor="#E8EEFF" height="25">
  14.       <td onmouseover="toonmenu('menu1')" onmouseout="verstopmenu('menu1')" class="mainmenu" width="25%">
  15.       <a href="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Membership Details&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br />         
  16.       <table class="menu" id="menu1" width="100%" border="1"  bgcolor="#DDE6FF" bordercolor="#330099">
  17.        
  18.       <tr><td><a href="{U_MEMBERLIST}" class="mainmenu">Members</a></td></tr>
  19.       <tr><td class="menu"><a href="{U_GROUP_CP}" class="mainmenu">{L_USERGROUPS}</a></td></tr>
  20.       </td>       
  21.    </td>
  22.       </tr>
  23.    </table>
  24.       <td onmouseover="toonmenu('menu2')" onmouseout="verstopmenu('menu2')" class="mainmenu" width="25%"><a href="blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Personal Details&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br />
  25.  
  26.       <table class="menu" id="menu2" width="100%" border="1"  bgcolor="#DDE6FF" bordercolor="#330099">       
  27.        
  28.       <tr><td class="menu"><a href="{U_PROFILE}" class="mainmenu">View Your Profile</a></td></tr>
  29.       <tr><td class="menu">
  30.       <!-- BEGIN switch_user_logged_in -->
  31.       <a href="{U_CONTACT_MAN}" class="mainmenu">Contact Management</a>
  32.       <!-- END switch_user_logged_in -->
  33.       </td></tr>
  34.       <tr><td class="menu"><a href="{U_PRIVATEMSGS}" class="mainmenu">{PRIVATE_MESSAGE_INFO}</a></td>
  35.       </table>
  36.  
  37.       <td onmouseover="toonmenu('menu3')" onmouseout="verstopmenu('menu3')" class="mainmenu" width="25%"><a href="blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  38.       &nbsp;&nbsp;&nbsp;Facilities&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  39.       &nbsp;</a><br />
  40.  
  41.       <table class="menu" id="menu3" width="100%" border="1"  bgcolor="#DDE6FF" bordercolor="#330099">       
  42.       <tr><td><a href="{U_FAQ}" class="mainmenu">{L_FAQ}</a></td></tr>
  43.       <tr><td><a href="{U_SEARCH}" class="mainmenu">{L_SEARCH}</a></td></tr>
  44.       <tr><td><a href="{U_CALENDAR}" class="mainmenu">Calendar</a></td></tr>     
  45.       <tr><td><a href="http://www.deftechsolutions.co.uk/forum/task.php" class="mainmenu">To Do List</a></td></tr>
  46.       </table>
  47.  
  48.       <td onmouseover="toonmenu('menu4')" onmouseout="verstopmenu('menu4')" class="mainmenu" width="25%"><a href="blank">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  49.       &nbsp;Login Details&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  50.       &nbsp;&nbsp;&nbsp;</a><br />
  51.  
  52.       <table class="menu" id="menu4" width="100%" border="1"  bgcolor="#DDE6FF" bordercolor="#330099">
  53.       <tr><td class="menu">
  54.       <!-- BEGIN switch_user_logged_out -->
  55.       <a href="{U_REGISTER}" class="mainmenu">{L_REGISTER}</a></span>
  56.       <!-- END switch_user_logged_out -->
  57.       <a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>
  58.       </td>       
  59.       </table>
  60.    </table>
  61.    </td>           
  62. </tr>
  63. </table>
  64.  


Reply With Quote
  #2  
Old June 18th, 2004, 11:02 PM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Message Moved

Thread moved from 'PHP Coding' to 'Client Side Things' by Matt.

Reason: Is Javascript

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Don't want to open new browser!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway