954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

switch type menu

Hi All,

I designed one website useing div tags (its completed). for that website, left vertical menu is there for that i want use like switch type buttons can any one tell me how to do that.

And i know switch type menu but not like vertical menu bar. only i can give one link as a switch type but i want in that some links tobe switch type some should be normal links.
plzzzzzzzzzzzzzzzzzzzzzzzzz can any one help me in this.

thanq

kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

I am not too sure if this will help but you can check out dynamic drive for a lot of really good free resources. The link to the switch menu is
here
hope this helps

enque
Newbie Poster
8 posts since Feb 2008
Reputation Points: 10
Solved Threads: 2
 

ya i visited this link, but for my links i used images as background. i tryd in the same code to change how i want but no use.

kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

Are you embedding the images? I think since you are using a list for the menu you can give them ids and you can then set the background images using css to call this ids.

enque
Newbie Poster
8 posts since Feb 2008
Reputation Points: 10
Solved Threads: 2
 

can u just give code so that i can understand what u want

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 






        Ornaments
        Automobiles
      Miscellaneous
  Computer Hardware


Create Case left-div.jpgSearch Case left-div.jpgAdvertisement left-div.jpgCOO Speaks left-div.jpgLeave Rules left-div.jpgList of Holidays 2008 left-div.jpgObituary left-div.jpgFocus Coimbatore Magazine left-div.jpgExtracurricular Facilities left-div.jpgLine Count Records of Focusites left-div.jpgAccounts Documents left-div.jpg User Login Sign In

My Links
News / Events


About Company Services exp.jpg
This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading. This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys.

Products exp2.jpg
This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading. This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys.



main-bullet.jpg Intranet main-bullet-arrow.jpgThis is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading.

B'days cb-bullet.jpgThis is an internal website (intranet) for all
office-based and home-based
employees of Focus Infosys.
Please click on any of the
sections for more details
of that respective
heading.

Events cb-bullet.jpgThis is an internal website (intranet) for all
office-based and home-based
employees of Focus Infosys.
Please click on any of the
sections for more details
of that respective
heading.

Latest News cb-bullet.jpgThis is an internal website (intranet) for all office-based and home-based employees
of Focus Infosys. Please click on any of the sections for more details of that
respective heading. This is an internal website (intranet) for all office-based and
home-based employees of Focus Infosys. Please click on any of the
sections for more details of that respective heading. This is an
internal website (intranet) for all office-based and home-based
more...

This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading.







Copyright © 2008 Designed By: Focus Infosys (India) Pvt Ltd






kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

You could try something like this:

CSS

#button1 {
  width: 50px;
  height : 25px;
  overflow : hidden;
  background-image: url('/images/image.jpg');
}

#button1:hover {
  background-image: url('/images/imageon.jpg');
}


HTML

<div id='button1'>
 &#160;
</div>
FC Jamison
Posting Pro in Training
Team Colleague
446 posts since Jun 2004
Reputation Points: 92
Solved Threads: 21
 






        Ornaments
        Automobiles
      Miscellaneous
  Computer Hardware


Create Case left-div.jpgSearch Case left-div.jpgAdvertisement left-div.jpgCOO Speaks left-div.jpgLeave Rules left-div.jpgList of Holidays 2008 left-div.jpgObituary left-div.jpgFocus Coimbatore Magazine left-div.jpgExtracurricular Facilities left-div.jpgLine Count Records of Focusites left-div.jpgAccounts Documents left-div.jpg User Login Sign In

My Links
News / Events


About Company Services exp.jpg
This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading. This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys.

Products exp2.jpg
This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading. This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys.



main-bullet.jpg Intranet main-bullet-arrow.jpgThis is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading.

B'days cb-bullet.jpgThis is an internal website (intranet) for all
office-based and home-based
employees of Focus Infosys.
Please click on any of the
sections for more details
of that respective
heading.

Events cb-bullet.jpgThis is an internal website (intranet) for all
office-based and home-based
employees of Focus Infosys.
Please click on any of the
sections for more details
of that respective
heading.

Latest News cb-bullet.jpgThis is an internal website (intranet) for all office-based and home-based employees
of Focus Infosys. Please click on any of the sections for more details of that
respective heading. This is an internal website (intranet) for all office-based and
home-based employees of Focus Infosys. Please click on any of the
sections for more details of that respective heading. This is an
internal website (intranet) for all office-based and home-based
more...

This is an internal website (intranet) for all office-based and home-based employees of Focus Infosys. Please click on any of the sections for more details of that respective heading.







Copyright © 2008 Designed By: Focus Infosys (India) Pvt Ltd






kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

u zip the files and give as attachment coz without image not able to understand.

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

Hi,

I attached zip file.

Attachments new.zip (139.51KB)
kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

left vertical menu is there for that i want use like >>switch type buttons can any one tell me how to do that.
what do you mean by switch type buttons.
>>And i know switch type menu but not like vertical menu bar.
can you give example

so that i can understand what actually you want.

[edit] you are talking about vertical or horizontal menu ????

DangerDev
Posting Pro in Training
485 posts since Jan 2008
Reputation Points: 165
Solved Threads: 59
 

HI,
Thanx for spending time. Switch type menu means, If we click on any link in left side it has to expand means sub links has to shown for that link.

kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

Hi All,

I designed one website useing div tags (its completed). for that website, left vertical menu is there for that i want use like switch type buttons can any one tell me how to do that.

And i know switch type menu but not like vertical menu bar. only i can give one link as a switch type but i want in that some links tobe switch type some should be normal links. plzzzzzzzzzzzzzzzzzzzzzzzzz can any one help me in this.

thanq

Hopefully this will help you....

mukund_007
Newbie Poster
6 posts since Feb 2008
Reputation Points: 10
Solved Threads: 1
 

in head part

<style type="text/css">
.menuOut {
width:147px;
height:13px;
font-family:verdana,arial;
font-size:11px;
color:#000000;
font-weight:normal;
text-align:left;
text-decoration:none;
margin:0px;
padding:5px 0px 5px 0px;
border:0px solid #000000;
background-image:url(images/leftlink-bg.jpg);
cursor:pointer;
}

.menuOver {
width:147px;
height:13px;
font-family:verdana,arial;
font-size:11px;
color:#CE2127;
font-weight:normal;
text-align:left;
text-decoration:underline;
margin:0px;
padding:5px 0px 5px 0px;
border:0px solid #000000;
background-image:url(images/r_leftlink_bg.jpg);
cursor:pointer;}

.submenu {
width:140px;
font-family:verdana, arial;
font-size:10px;
padding-left:5px;
}
.submenu a {
color:#CE2127;
text-decoration:none;
font-weight:none;
}
.submenu a:hover {
color:#000000;
text-decoration:underline;
font-style:none;
font-weight:none;
}
</style>

<script type="text/javascript">
function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("cont").getElementsByTagName("DIV");
		if(el.style.display == "none"){
			for (var i=0; i<ar.length; i++){
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}
function ChangeClass(menu, newClass) { 
	 if (document.getElementById) { 
	 	document.getElementById(menu).className = newClass;
	 } 
} 
document.onselectstart = new Function("return true");
</script>


In body part

<div id="cont">
	<p id="menu1" class="menuOut" onclick="SwitchMenu('sub1')" onmouseover="ChangeClass('menu1','menuOver')" onmouseout="ChangeClass('menu1','menuOut')">Work from Home</p>
	<div class="submenu" id="sub1" style="display:none;">
		- <a href="independent-transcription.asp">Independent Transcription Professional</a><br/>
		- <a href="#">HT Calculator</a><br/>
	</div>
</div>
<!-- Menu end -->
kavithakesav
Junior Poster in Training
52 posts since Nov 2007
Reputation Points: 10
Solved Threads: 2
 

Note that Firefox considers 0 followed by a unit of measure (such as 0px or 0%) to be invalid, and throws away the entire style containing it. I see quite a few of those.

MidiMagic
Nearly a Senior Poster
3,319 posts since Jan 2007
Reputation Points: 730
Solved Threads: 182
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You