Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 10-05-2003, 11:31 PM
escoson escoson is offline
 
Join Date: Sep 2002
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default [VB Question]Button Placement....

Ok im new to the DHTML, and i made these drop down buttons etc... now i need to know where i place them........ i figured in Sytle>Modify>Colors etc> then go to header where the buttons etc are located... however ive tried putting it in various places and im not getting good results... so here is the code..

<html>
<head>
<style>
body{font-family:tahoma;}
table{font-size:75%;background:777777}
a{color:white;text-decoration:none;font:bold}
a:hover{color:#cc0000}
td.menu{background:#999999}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
</head>
<body>

<table width="125%">
<tr bgcolor="#777777">
<td onmouseover="showmenu('control panel')" onmouseout="hidemenu('control panel')">
<a href="usercp.php?s=$session[sessionhash]">Control Panel</a><br />
<table class="menu" id="control panel" width="100%">
<tr><td class="menu"><a href="register.php?s=$session[sessionhash]&amp;action=signup">Register</a></td></tr>
<tr><td class="menu"><a href="misc.php?s=$session[sessionhash]&amp;action=faq">Help</a></td></tr>
<tr><td class="menu"><a href="search.php?s=$session[sessionhash]">Search</a></td></tr>
<tr><td class="menu"><a href="index.php?s=$session[sessionhash]">Home</a></td></tr>
<tr><td class="menu"><a href="member.php?s=$session[sessionhash]&amp;action=logout">Logout</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('events')" onmouseout="hidemenu('events')">
<a href="/ahh.com">Events</a><br />
<table class="menu" id="events" width="100%">
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('artist')" onmouseout="hidemenu('artist')">
<a href="/site/site_validate.asp">Artist</a><br />
<table class="menu" id="artist" width="100%">
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('Affiliates')" onmouseout="hidemenu('Affiliates')">
<a href="/ahh.com">Affiliates</a><br />
<table class="menu" id="affiliates" width="100%">
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
</table>
</td>
</tr>
</table>

</body>
</html>

AND HERE IS THE VB HEADER CODE...

<!-- logo and buttons -->
<center>
<table border="0" width="{tablewidth}" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="left" background="{imagesfolder}/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
<td valign="bottom" align="right" nowrap background="{imagesfolder}/menu_background.gif">
<!-- toplinks -->
<a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
<a href="register.php?s=$session[sessionhash]&amp;action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
<a href="calendar.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_calendar.gif" alt="Calendar" border="0"></a>
<a href="memberlist.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_members.gif" alt="Find other members" border="0"></a>
<a href="misc.php?s=$session[sessionhash]&amp;action=faq"><img src="{imagesfolder}/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
<a href="search.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_search.gif" alt="Search" border="0"></a>
<a href="index.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_home.gif" alt="Home" border="0"></a>
<!-- <a href="member.php?s=$session[sessionhash]&amp;action=logout"><img src="{imagesfolder}/top_logout.gif" alt="Logout" border="0"></a> -->
&nbsp;
<!-- /toplinks -->
</td>
</tr>
</table>
<!-- /logo and buttons -->
<!-- content table -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0">
<tr>
<td>


CAN SOMEONE PLEASE TELL ME WHERE I WOULD PLACE THE DHTML DROP DOWN CODE?

THANKS IN ADVANCE.
Reply With Quote
  #2  
Old 10-06-2003, 01:44 AM
iyouth iyouth is offline
 
Join Date: Apr 2003
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey

Go into your ADMIN CP

Styles > Modify> Colors etc..

Place:

Quote:
<style>
body{font-family:tahoma;}
table{font-size:75%;background:777777}
a{color:white;text-decoration:none;font:bold}
a:hover{color:#cc0000}
td.menu{background:#999999}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script>
in the head include (you should see a <style> tag that you can add your stuff to, and then you can place the <script></script> stuff right above $headnewpm

--------------------------------------------

Replace the entire Header section with
Quote:
<table width="125%">
<tr bgcolor="#777777">
<td onmouseover="showmenu('control panel')" onmouseout="hidemenu('control panel')">
<a href="usercp.php?s=$session[sessionhash]">Control Panel</a><br />
<table class="menu" id="control panel" width="100%">
<tr><td class="menu"><a href="register.php?s=$session[sessionhash]&amp;action=signup">Register</a></td></tr>
<tr><td class="menu"><a href="misc.php?s=$session[sessionhash]&amp;action=faq">Help</a></td></tr>
<tr><td class="menu"><a href="search.php?s=$session[sessionhash]">Search</a></td></tr>
<tr><td class="menu"><a href="index.php?s=$session[sessionhash]">Home</a></td></tr>
<tr><td class="menu"><a href="member.php?s=$session[sessionhash]&amp;action=logout">Logout</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('events')" onmouseout="hidemenu('events')">
<a href="/ahh.com">Events</a><br />
<table class="menu" id="events" width="100%">
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('artist')" onmouseout="hidemenu('artist')">
<a href="/site/site_validate.asp">Artist</a><br />
<table class="menu" id="artist" width="100%">
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">None Yet</a></td></tr>
</table>
</td>
<td onmouseover="showmenu('Affiliates')" onmouseout="hidemenu('Affiliates')">
<a href="/ahh.com">Affiliates</a><br />
<table class="menu" id="affiliates" width="100%">
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
<tr><td class="menu"><a href="/ahh.com">Coming</a></td></tr>
</table>
</td>
</tr>
</table>

<!-- logo and buttons -->
<center>
<table border="0" width="{tablewidth}" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" align="left" background="{imagesfolder}/menu_background.gif"><a href="index.php?s=$session[sessionhash]"><img src="{titleimage}" border="0" alt="$bbtitle"></a></td>
<td valign="bottom" align="right" nowrap background="{imagesfolder}/menu_background.gif">
<!-- toplinks -->
<a href="usercp.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_profile.gif" alt="Here you can view your subscribed threads, work with private messages and edit your profile and preferences" border="0"></a>
<a href="register.php?s=$session[sessionhash]&amp;action=signup"><img src="{imagesfolder}/top_register.gif" alt="Registration is free!" border="0"></a>
<a href="calendar.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_calendar.gif" alt="Calendar" border="0"></a>
<a href="memberlist.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_members.gif" alt="Find other members" border="0"></a>
<a href="misc.php?s=$session[sessionhash]&amp;action=faq"><img src="{imagesfolder}/top_faq.gif" alt="Frequently Asked Questions" border="0"></a>
<a href="search.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_search.gif" alt="Search" border="0"></a>
<a href="index.php?s=$session[sessionhash]"><img src="{imagesfolder}/top_home.gif" alt="Home" border="0"></a>
<!-- <a href="member.php?s=$session[sessionhash]&amp;action=logout"><img src="{imagesfolder}/top_logout.gif" alt="Logout" border="0"></a> -->
&nbsp;
<!-- /toplinks -->
</td>
</tr>
</table>
<!-- /logo and buttons -->
<!-- content table -->
<table bgcolor="{pagebgcolor}" width="{tablewidth}" cellpadding="10" cellspacing="0" border="0">
<tr>
<td>
That should do it

Regards,
Patrick
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:31 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03844 seconds
  • Memory Usage 2,195KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (2)postbit
  • (2)postbit_onlinestatus
  • (2)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete