Board Logo

very confused on how to seperate
rawstarr - 7/31/2007 at 08:32 PM

I am using the code below. I am trying to seperate them by putting the first 2 one link and put one on the next i tried to <br> it but it didnt work.. and i am very confused on how to do it.. I hope that makes sense.

wrap(['EngageSpeaking', 'speaking.html', {'tw' : '_self', 'sb' : 'EngageSpeaking'}]),
wrap(['EngageAdvice', 'advice.html', {'tw' : '_self', 'sb' : 'EngageAdvice'},
['MotherSonAdvice column', 'motherson.html', {'tw' : '_self', 'sb' : 'MotherSonAdvice column'}],
['RaceRelations Advice', 'relations.html', {'tw' : '_self', 'sb' : 'RaceRelations Advice'}],]),
wrap(['EngageSocialChange', 'socialchange.html', {'tw' : '_self', 'sb' : 'EngageSocialChange'},
['Mask of a Different Color', 'mask.html', {'tw' : '_self', 'sb' :
'Mask of a Different Color'}],]),
wrap(['EngageRace', 'race.html', {'tw' : '_self', 'sb' :
'EngageRace'},
['Race and Ethnic Relations Course', 'ethnic.html', {'tw' : '_self', 'sb' : 'Race and Ethnic Relations Course'}],]),


tigra - 7/31/2007 at 10:58 PM

I don't know what your "wrap" function does, but usually only the text of the item is passed to the wrapper.
Also I don't quite understand what you're trying to achieve.


rawstarr - 8/1/2007 at 05:27 AM

the code below is what I am using. It all runs on the exact same line. I was trying to keep the code but put some of the links under the others.. I am trying to seperate it at a certain spot to have 5 on Top and 4 on bottom.



<!-- A 'stingrey MOS-Solutions' module www.stingrey.biz -->

<!-- START module 'Display Menu - Tigra 2-0-1' -->
<script type = "text/javaScript" src="menu.js"></script>
<script type = "text/javascript">
<!--
var link = document.createElement( 'link' );
link.setAttribute( 'href', 'num2.css' );
link.setAttribute( 'rel', 'stylesheet' );
link.setAttribute( 'type', 'text/css' );
var head = document.getElementsByTagName('head').item(0);
head.appendChild(link);
//-->
</script>

<script type = 'text/javascript'>
<!--
var MENU_ITEMS143466 =

[


wrap(['EngageSpeaking', 'speaking.html', {'tw' : '_self', 'sb' : 'EngageSpeaking'}]),
wrap(['EngageAdvice', 'advice.html', {'tw' : '_self', 'sb' : 'EngageAdvice'},
['MotherSonAdvice column', 'motherson.html', {'tw' : '_self', 'sb' : 'MotherSonAdvice column'}],
['RaceRelations Advice', 'relations.html', {'tw' : '_self', 'sb' : 'RaceRelations Advice'}],]),
wrap(['EngageSocialChange', 'socialchange.html', {'tw' : '_self', 'sb' : 'EngageSocialChange'},
['Mask of a Different Color', 'mask.html', {'tw' : '_self', 'sb' : 'Mask of a Different Color'}],]),
wrap(['EngageRace', 'race.html', {'tw' : '_self', 'sb' : 'EngageRace'},
['Race and Ethnic Relations Course', 'ethnic.html', {'tw' : '_self', 'sb' : 'Race and Ethnic Relations Course'}],]),



wrap(['EngageBlackMen', 'blackmen.html', {'tw' : '_self', 'sb' : 'EngageBlackMen'}]),


wrap(['EngageFamily', 'family.html', {'tw' : '_self', 'sb' : 'EngageFamily'}]),
wrap(['EngageRelationships', 'index.php?option=com_frontpage&Itemid=1', {'tw' : '_self', 'sb' : 'EngageRelationships'}]),

wrap(['EngageMentoring', 'mentoring.html', {'tw' : '_self', 'sb' : 'EngageMentoring'},
['Real Life Mentoring', 'reallife.html', {'tw' : '_self', 'sb' : 'Real Life Mentoring'}],]),

wrap(['EngageResources', 'resources.html', {'tw' : '_self', 'sb' : 'EngageResources'},
['EngageMovies', 'movies.html', {'tw' : '_self', 'sb' : 'EngageMovies'}],
['EngageBooks', 'books.html', {'tw' : '_self', 'sb' : 'EngageBooks'}],
['EngageWebsites', 'website.html', {'tw' : '_self', 'sb' : 'EngageWebsites'}],
['Minoritees T-shirts', 'tshirt.html', {'tw' : '_self', 'sb' : 'Minoritees T-shirts'}],
['Diversified Solutions', 'solutions.html', {'tw' : '_self', 'sb' : 'Diversified Solutions'}],
['EngageQuotes', 'quotes.html', {'tw' : '_self', 'sb' : 'EngageQuotes'}],
['EngageNews', 'news.html', {'tw' : '_self', 'sb' : 'EngageNews'}],
['EngagePics', 'pics.html', {'tw' : '_self', 'sb' : 'EngagePics'}],]),


];

function wrap( item ) {
var url_current = String(window.location);
var url_link = 'http://www.EngageDiversity.net' + '/' + item[1];

if ( url_current == url_link )
item[0] = '<span id="dm_t-active_link">' + item[0] + '</span>';
return (item);

}

-->
</script>


<script type = 'text/javascript'>
<!--
var MENU_POS143466 =
[

// parent level
{
'width': 150,
'height': 15,
'top': 0,
'left': 150,
'block_top': 0,
'block_left': 0,
'hide_delay': 100,
'expd_delay': 100,
'css' : {
'outer': '',
'inner': ['dm_t-0', 'dm_t-0_over', 'dm_t-0_down']
}
},
// 1st Sublevel
{
'width':60,
'height': 25,
'top': 25,
'left': 0,
'block_top': 10,
'block_left': 100,
'css': {
'outer': '',
'inner': ['dm_t-1', 'dm_t-1_over', 'dm_t-1_down']
}
},
// 2nd Sublevel
{
'block_top': 0,
'block_left': 100,
'css': {
'outer': '',
'inner': ['dm_t-2', 'dm_t-2_over', 'dm_t-2_down']
}
},
// 3rd Sublevel
{
'block_top': 0,
'block_left': 100,
'css': {
'outer': '',
'inner': ['dm_t-3', 'dm_t-3_over', 'dm_t-3_down']
}
},


];

-->
</script>



<div style="position: relative; z-index: 1000;">
<script type = "text/javascript">
<!--
new menu( MENU_ITEMS143466, MENU_POS143466 );
-->
</script>
</div>

<div class="dm_t-whole" ></div>

<!-- END module 'Display Menu - Tigra 2-0-1' -->


tigra - 8/1/2007 at 03:01 PM

If you need two row menu it is easier to implement that with two horizontal menu instances, one under another.


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/