MasterPage Menu Item


M

MDB

Hello All,

I have a master page that has a menu built from images. When a user goes to
a page, the menu item of that page then has a different back ground. How do
you accompulish this using master pages? Below is what my menu looks like,
Images with "A" means it is the active menu item, so when a user clicks on
b.aspx, then new current image should be 2A.jpg instead of 2.jpg.



<a href=a.aspx" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image1','','images/1.jpg',1)"><img
src="images/1A.jpg" alt="" name="1" border="0" align="top" /></a>
<a href="b.aspx" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image2','','images/2A.jpg',1)"><img
src="images/2.jpg" alt="" name="2" border="0" align="top" /></a>
<a href="c.aspx" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image3','','images/3A.jpg',1)"><img
src="images/3.jpg" alt="" name="3" border="0" align="top" /></a>
<a href="d.aspx" onMouseOut="MM_swapImgRestore()"
onMouseOver="MM_swapImage('Image4','','images/4A.jpg',1)"><img
src="images/4.jpg" alt="" name="4" border="0" align="top" /></a>
 
Ad

Advertisements

H

Hillbilly

You'll have to learn to write server-side code and specifically learn to use
the FindControl method to find the menu as a control and change its
properties.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top