Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I HAVE MENUBAR IN PHOTOSHOP

HOME Login Logout


I will act as a single image.


How i handle it in visualstudio,beacuse i want to give link Home to Home.aspx

Login to login.aspx

Logout to logout.aspx

Please help me..

Thanks.
Posted
Updated 21-May-11 1:49am
v2

Don't keep on creating new questions that ask basically the same thing (how to add menubar in visual studio[^]).

Basically, I understand that you have one image that should represent three links: Home, Login and Logout. To do this, choose one of these approaches:

* Split up the image into three portions, one for Home (called "home.jpg" for example), one for Login (called "login.jpg") and one for Logout ("logout.jpg"). Then create three image hyperlinks, next to each other (or below, whatever makes sense for the image you're using), like so:
HTML
<a href="Home.aspx"><img src="home.jpg" /></a>
<a href="Login.aspx"><img src="login.jpg" /></a>
<a href="Logout.aspx"><img src="logout.jpg" /></a>

It might be an idea to put these into a table structure of some sort.

* Use one image, but add an image map that describes areas of the image that can be clicked on and link to other pages, like this:
HTML
<img src="MyMenuBar.jpg" width="180" height="20" usemap="#menumap" />
<map name="menumap">
  <area shape="rect" coords="0,0,59,20" href="Home.aspx" alt="Home" />
  <area shape="rect" coords="60,0,119,20" href="Login.aspx" alt="Login" />
  <area shape="rect" coords="120,0,179,20" href="Logout.aspx" alt="Logout" />
</map>

Also see http://www.image-maps.com/[^]; this seems to be a tool that can do this for you automatically. Note that I haven't used it myself.
 
Share this answer
 
Comments
Wonde Tadesse 21-May-11 19:42pm    
Good answer. My 5 :)
R. Hoffmann 21-May-11 20:19pm    
Thanks!
If you use Process.Start and pass in a URL, that URL will open in the default browser. IF that's not what you wanted to know, please provide further detail.
 
Share this answer
 
Comments
[no name] 21-May-11 7:50am    
Good Call Christian...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900