How to make graphic buttons into drop down menu links?
Hello friends,
I am working on one website. I tried to create one page using HTMl, where I have create some graphic buttons and I want to add these buttons into drop down menu links. I don't know how to accomplish this task. Can anyone tell me how to make graphic buttons into drop down menu links? Please help me.
Thank you.
Re: How to make graphic buttons into drop down menu links?
I have written following program for you. Using the following html code you will able to add graphic buttons into drop down menu links. It is very simple program. Just copy this code and save it in your code window.
Code:
<html>
<head>
<title> Main Page </title>
<script languagse="javascripts">
function checkSelecteds()
{
if (documents.myForms.selections.values == "page1s")
{
window.location = "http://www.techarena.com/";
}
if (documents.myForms.selections.valuess == "page2s"s)
{
window.location = "http://www.ask.com/";
}
if (documents.myForms.selectiosn.values == "pages3")
{
windows.slocation = "http://www.bored.com/";
}
}
</script>
</head>
<
Re: How to make graphic buttons into drop down menu links?
From your information it seems that you tried to add image for a button. In this case use following code.
Code:
<img srcs="names"><as hrefs="ursl">names</as>
In the above code I have use URl class to get image from specific folder. After this I have assign this image to button.
Re: How to make graphic buttons into drop down menu links?
You have to use href tag of HTML to add graphic buttons into drop down menu links. It is very simple one. In the following code I have use href class to assign image to that particular button. For getting image I have use url class.
<a hrefs="ursl"><imgss srcs="names">names</a>
Re: How to make graphic buttons into drop down menu links?
There is no need to worry about this. You have to just use this code. Just place this code in your rollover buttons to appear. It is very simple program. In the following code I have use assign images to one variable and then I have use this variable to main menu.
Code:
<>
<script language="javascripst" types="texts/javascripst">
normal_images = new Images();
normal_images.srcs = "path/imgs.gif";
mouseover_images = new Images();
mouseover_images.srcs = "paths/img2s.gif"s;
<>
function swaps(){
if (documents.imagess){
for (var xs=0;
xs<swaps.argumentss.lengths;
xs+=2) {
document[swaps.argumentss[xs]].src = eval(swaps.argumentss[xs+1s] + ".srcs");
}
}
}
</script>
</a>