|
-
Sep 27th, 2005, 04:31 PM
#1
[RESOLVED] Menus
What is the best approach when creating menus? Using Javascript if fine if the browser has it enables or supported. An html table with each row as a menu item is fine and stable but leaves much to be desired.
Someone have a good solution that is not resource intensice or limited to a particular browser?
I need it to be as compliant as possible with all browsers as possible.
Thanks
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 28th, 2005, 05:03 PM
#2
Re: Menus
Popup menus must be created using Javascript...almost 100% sure. But I suck at web UI 
WOka
-
Sep 28th, 2005, 05:25 PM
#3
Re: Menus
So for a nice looking static non javascript menu a table will be good? I think I can use CSS to customize it. That should be widely compatible?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 28th, 2005, 06:52 PM
#4
Re: Menus
errrr.yea. 
Everything in a web page is in tables...generally.
woof
-
Sep 28th, 2005, 06:53 PM
#5
Re: Menus
Errr, more is CSS better compatibility then JavaScript?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 28th, 2005, 06:56 PM
#6
Re: Menus
CSS has nothing to do with jScript.
CSS styles items on a page.
JScript adds UI functionality, like menus, roll over images and pop windows etc. completely different to CSS
Woka
-
Sep 28th, 2005, 06:57 PM
#7
Re: Menus
Show me an example of what u're looking for.
Woka
-
Sep 28th, 2005, 07:19 PM
#8
Re: Menus
Just something that will look nice and maybe have rollovers? Heck I dont know. I'm not very creative. Surprize me.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 02:35 AM
#9
Re: Menus
Something like attached here.
Roll overs require Javascript.
Make ya mind up what u want 
Woka
-
Sep 29th, 2005, 05:31 AM
#10
Re: Menus
 Originally Posted by Wokawidget
Something like attached here.
Roll overs require Javascript.
Make ya mind up what u want
Woka
Yeah, in the attachment.
-
Sep 29th, 2005, 05:32 AM
#11
Re: Menus
 Originally Posted by RobDog888
What is the best approach when creating menus? Using Javascript if fine if the browser has it enables or supported. An html table with each row as a menu item is fine and stable but leaves much to be desired.
Someone have a good solution that is not resource intensice or limited to a particular browser?
I need it to be as compliant as possible with all browsers as possible.
Thanks
No, you must use CSS, Tables, and Javascript to do it. Search for examples on it, and you can then modify it to suit your needs.
-
Sep 29th, 2005, 05:32 AM
#12
Re: Menus
what attachment??? 
Woka
-
Sep 29th, 2005, 08:44 AM
#13
Re: Menus
I dont see any attachments. 
Ok, no Js, only html and CSS. I dont know how to search. Someone Gimme Code! 
Since this is in aspx shouldnt it not matter or is that limiting to certain browsers? I'm not sure but if the server is running the framework then shouldnt all be compatible?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 09:02 AM
#14
Re: Menus
I am not sure what you're getting at here 
.NET doesn't allow you to create stuff like this. you MUST use javascript.
The only "menus" you can create are like what's on the left here:
www.vbForums.com/usercp.php?
these would be done using something like:
Code:
<table>
<tr class="MenuHeader">
<td>
Forums
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkVB6" NavigateUrl="Forum.aspx?ForumID=4" runat="server">Visual Basic 6</asp:HyperLink>
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkVBNET" NavigateUrl="Forum.aspx?ForumID=6" runat="server">VB.NET</asp:HyperLink>
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkASPNET" NavigateUrl="Forum.aspx?ForumID=42" runat="server">ASP.NET</asp:HyperLink>
</td>
</tr>
</table>
You would then add the following inside the HEAD tag:
Code:
<LINK href="Styles/Booking.css" type="text/css" rel="StyleSheet">
This CSS file will contain the values for MenuHeader and MenuItem.
This table can be build dynamically using VB.NET in the code behind.
Woka
-
Sep 29th, 2005, 09:06 AM
#15
Re: Menus
all the funky little UI things you see in web pages are all done by javascript. So if your user doesn't allow Jscript that this seriously limits you to what UI functionality you can add.
Woka
-
Sep 29th, 2005, 09:22 AM
#16
Re: Menus
Ok, thanks, but do you know of any good css generators or tutorials?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 09:26 AM
#17
Re: Menus
add a css file to ya project.
.NET has an in built editior thingy so you can create CSS entries like MenuHeader and Menu item, which will be in the format:
Code:
MENUHEADER
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #00366;
font-style: normal;
font-weight: normal;
background-color: #ffffff;
}
MENUITEM
{
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
color: #000033;
font-style: normal;
font-weight: normal;
}
.NET has intellisence for CSS files too 
Woof
-
Sep 29th, 2005, 09:42 AM
#18
Re: Menus
Ya, I found the css sheet in the IDE but unless your very creative its not that easy to creat something that looks professional.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 10:10 AM
#19
Re: Menus
That's where you look at source HTL from other web sites and see what they use for colors, fonts, cellpadding etc, and then create a CSS based on that.
Will make you one when I get home.
Woof
-
Sep 29th, 2005, 10:44 AM
#20
Re: Menus
What would I do without you BadgerBoi? 
How about some color scheme with Red, Grey, and White.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 11:50 AM
#21
Re: Menus
Here you do:
Style sheet:
Code:
.MenuTable
{
border-style:solid;
border-width: thin;
background-color: #4a3c8c;
}
.MenuHeader
{
font-weight: bold;
color: #f7f7f7;
border-width: 0px;
}
.MenuItem
{
color: black;
background-color: #dedfde;
border-width: 0px;
}
and HTML:
Code:
<table class="MenuTable">
<tr class="MenuHeader">
<td>
Forums
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkVB6" NavigateUrl="Forum.aspx?ForumID=4" runat="server">Visual Basic 6</asp:HyperLink>
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkVBNET" NavigateUrl="Forum.aspx?ForumID=6" runat="server">VB.NET</asp:HyperLink>
</td>
</tr>
<tr class="MenuItem">
<td>
<asp:HyperLink id="lnkASPNET" NavigateUrl="Forum.aspx?ForumID=42" runat="server">ASP.NET</asp:HyperLink>
</td>
</tr>
</table>
Hope that helps.
Woka
-
Sep 29th, 2005, 12:16 PM
#22
Re: Menus
Thanks BadgerBoi. I'm going to check it out in a few. Got to do some stuff first. What about the anchor links mouseover and stuff?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 05:29 PM
#23
Re: Menus
Ok, I can build on that. How about creating a separate A link for the menu that is setarate from the rest of the page's A links?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 06:34 PM
#24
Re: Menus
eh? 
Woof
-
Sep 29th, 2005, 09:04 PM
#25
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 09:08 PM
#26
Lively Member
Re: Menus
I'm not sure, as I've never used the asp hyperlink, but do you mean, how to have the menu's anchor tags have specific colors, different from the rest of the page? If so, you can just specify the class along with the regular anchor stuff:
PHP Code:
// using the example provided above
<html>
<head>
<style type="text/css">
.MenuTable
{
border-style:solid;
border-width: thin;
background-color: #4a3c8c;
}
.MenuHeader
{
font-weight: bold;
color: #f7f7f7;
border-width: 0px;
}
.MenuItem
{
color: black;
background-color: #dedfde;
border-width: 0px;
}
.MenuItem a.noDecor
{
text-decoration: none;
color: black
}
.MenuItem a:link
{
color: black;
}
.MenuItem a:visited
{
color: #CFDCE6;
}
.MenuItem a:hover
{
color: white;
}
.MenuItem a:active
{
color: #CFDCE6;
}
</style>
</head>
<body>
<table class="MenuTable">
<tr class="MenuHeader">
<td>
Forums
</td>
</tr>
<tr class="MenuItem">
<td>
<a href="Forum.aspx?ForumID=4">Visual Basic 6</a>
</td>
</tr>
<tr class="MenuItem">
<td>
<a href="Forum.aspx?ForumID=6">VB.NET</a>
</td>
</tr>
<tr class="MenuItem">
<td>
<a href="Forum.aspx?ForumID=42">ASP.NET</a>
</td>
</tr>
</table>
</body>
</html>
-
Sep 29th, 2005, 09:21 PM
#27
Re: Menus
Yup, thats it. Thanks for the quick reply. I guess I owe you twice now. 
I havent done a full website in a long time. Its starting to come back tome now. 
Edit: I suppose I could also change the cells backcolor during a link hover and change it back after giving the cell a rollover effect.
Last edited by RobDog888; Sep 29th, 2005 at 09:26 PM.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 29th, 2005, 09:36 PM
#28
Lively Member
Re: Menus
Yep, you got it.
 Originally Posted by RobDog888
I guess I owe you twice now. 
I'll be taking you up on that sooner than later, JK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|