Hi,
On my site I have a drop down bar for "Quick Links". Ive added an attatchment. Does anyone know how I would go about recreating this for "Entertainment" with a variety of links dropping down?
Ive had a search through the code to try and find the bit I need, but to no avail.
PHP Code:
<!-- top nav buttons bar -->
<div style="text-align:center;padding:15px 0 0 0">
<table class="tborder" cellpadding="6px" cellspacing="0" border="0" width="100%" align="center" style="border:1px 0 0 0">
<tr>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_home.gif" alt="Dover Locals" border="0" /> <a href="http://www.doverlocals.co.uk">Home</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_quicklinks.gif" alt="Forum" border="0" /> <a href="/forum.php">Forum</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_faq.gif" alt="Frequently Asked Questions" border="0" /> <a href="faq.php" accesskey="5">FAQ</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/music.gif"/> <a href="javascript:openRadioAndTV()">Radio and TV</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_forums.gif" alt="Quiz" border="0" /> <a href="quiz.php?">Quiz</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_purchase.gif" alt="Gallery" border="0" /> <a href="photoplog/index.php?">Gallery</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_download.gif" alt="Arcade" border="0" /> <a href="arcade.php?">Arcade</a></td>
<td class="vbmenu_control"><img class="inlineimg" src="/images/vbevolution/misc/nav_calendar.gif" alt="Dover Events" border="0" /> <a href="calendar.php?">Dover Events</a></td>
</tr>
</table>
</div>
<!-- nav buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_usercp.gif" alt="Your Account" border="0" /> <a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>
<if condition="$show['registerbutton']">
<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_register.gif" alt="Join $vboptions[bbtitle]" border="0" /> <a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="Forums Start Page" border="0" /> $vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="Today's Posts" border="0" /> $vbphrase[todays_posts]</a></td>
</if>
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_search.gif" alt="Search" border="0" /> $vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_memberlist.gif" alt="Member List" border="0" /> $vbphrase[members_list]</a></td>
</if>
<td class="vbmenu_control"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_forums.gif" alt="Forums Rules" border="0" /> <a href="rules.php$session[sessionurl_q]">$vbphrase[vbrules_rules]</a></td>
<if condition="$show['member']">
<td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_quicklinks.gif" alt="Quick Links" border="0" /> $vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_search.gif" alt="Search" border="0" /> $vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="New Posts" border="0" /> $vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_new.gif" alt="$vbphrase[todays_posts]" border="0" /> $vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
</if>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><img class="inlineimg" src="$stylevar[imgdir_misc]/nav_logout.gif" alt="$vbphrase[log_out]" border="0" /> $vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div>
<!-- / nav buttons bar -->
<if condition="$bbuserinfo[userid] != '0' AND $vboptions[enhancedinfobar]">
<div class="topinfo-center" align="center">
<div id="fscroller" class="fader" style="border:1px inset $stylevar[tborder_bgcolor]; background-color: $stylevar[alt1_bgcolor] width: 50%;">
<script type="text/javascript">
/* <![CDATA[ */
/***********************************************
* Fading Scroller- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
var delay = 2000; //set delay between message change (in miliseconds)
var maxsteps=30; // number of steps to take to change from start color to endcolor
var stepdelay=40; // time in miliseconds of a single step
//**Note: maxsteps*stepdelay will be total time in miliseconds of fading effect
var startcolor= new Array(155,155,155); // start color (red, green, blue)
var endcolor=new Array(0,0,0); // end color (red, green, blue)
var fcontent=new Array();
begintag='<div class="smallfont" style="color: black; margin-left:5px; margin-top:2px;">'; //set opening tag, such as font declarations
fcontent[0]='Most Recent Topic: <a style="color: black;" href="$vboptions[bburl]/showthread.php?t=$enhthread[threadid]">$enhthread[title]</a> posted by <a style="color: black;" href="$vboptions[bburl]/member.php?u=$enhthread[postuserid]">$enhthread[postusername]</a>, $enhthread[dateline] ago.';
fcontent[1]='Welcome to our newest community member, <a style="color: black;" href="$vboptions[bburl]/member.php?u=$enhuser[userid]">$enhuser[username]</a>.';
fcontent[2]='Most Recent Post: <a style="color: black;" href="$vboptions[bburl]/showthread.php?t=$enhpost[threadid]">$enhpost[title]</a> posted by <a style="color: black;" href="$vboptions[bburl]/member.php?u=$enhpost[userid]">$enhpost[username]</a>, $enhpost[dateline] ago.';
fcontent[3]='<strong>Your Message Here!</strong>';
closetag='</div> ';
var fadelinks=0; //should links inside scroller content also fade like text? 0 for no, 1 for yes.
///No need to edit below this line/////////////////
var ie4=document.all&&!document.getElementById;
var DOM2=document.getElementById;
var faderdelay=0;
var index=0;
/*Rafael Raposo edited function*/
//function to change content
function changecontent(){
if (index>=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
if (fadelinks)
linkcolorchange(1);
colorfade(1, 15);
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag;
index++
}
// colorfade() partially by Marcio Galli for Netscape Communications. ////////////
// Modified by Dynamicdrive.com
function linkcolorchange(step){
var obj=document.getElementById("fscroller").getElementsByTagName("A");
if (obj.length>0){
for (i=0;i<obj.length;i++)
obj[i].style.color=getstepcolor(step);
}
}
/*Rafael Raposo edited function*/
var fadecounter;
function colorfade(step) {
if(step<=maxsteps) {
document.getElementById("fscroller").style.color=getstepcolor(step);
if (fadelinks)
linkcolorchange(step);
step++;
fadecounter=setTimeout("colorfade("+step+")",stepdelay);
}else{
clearTimeout(fadecounter);
document.getElementById("fscroller").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")";
setTimeout("changecontent()", delay);
}
}
/*Rafael Raposo's new function*/
function getstepcolor(step) {
var diff
var newcolor=new Array(3);
for(var i=0;i<3;i++) {
diff = (startcolor[i]-endcolor[i]);
if(diff > 0) {
newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step);
} else {
newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step);
}
}
return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")");
}
if (ie4||DOM2)
document.write('<div class="smallfont" style="color: black; margin-left:5px; margin-top:2px;">Welcome to our newest community member, <a href="$vboptions[bburl]/member.php?u=$enhuser[userid]">$enhuser[username]</a>.</div>');
if (window.addEventListener)
window.addEventListener("load", changecontent, false)
else if (window.attachEvent)
window.attachEvent("onload", changecontent)
else if (document.getElementById)
window.onload=changecontent
/* ]]> */
</script>
</div></div></if>
<br />
<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<form action="search.php?do=process" method="post">
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</td>
</tr>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</form>
</tr>
$google_navadsearch
$template_hook[navbar_search_menu]
$zointstags_searchform
</table>
</div>
<!-- / header quick search form -->
</if>
<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
<!-- [START HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 4 ] -->
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('$vboptions[bburl]/pager.php?$session[sessionurl]do=buddylist','pagerbuddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=$vboptions[vbpager_width],height=$vboptions[vbpager_height]'); return false;">$vbphrase[pager_open_vbpager]</a></td></tr>
<!-- [END HACK='vB Pager' AUTHOR='UAEWEB.COM' VERSION='3.0.3' CHANGEID= 4 ] -->
<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
<tr><td class="vbmenu_option"><a href="mysmiliesvb.php?$session[sessionurl]">$vbphrase[mysmiliesvb_mysmilies]</a></td></tr>
<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
</table>
</div>
<!-- / user cp tools menu -->
</if>
<!-- / NAVBAR POPUP MENUS -->
<!-- PAGENAV POPUP -->
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
$globalannounce
</if>
Anyhelp will be greatly appreciated.