Problem adding colored image button to dropdown menu

They have: 5 posts

Joined: Jan 2005

Laughing out loud Hi, I'm new to the group here. I borrowed the below code from which to design a basic drop down menu. However, I'm a brand new webmaster and I don't know how to add my "Go" custom designed image button to replace the "Go" form button in the below script. I'm doing this for my best friend, and am not getting paid for these services. Additionally, she would like to know if the background where the links are could be altered to light yellow and, if so, where in this code would I adjust the background color? I attained my webmaster designation 2 years ago; however, I haven't used this designation for 1.5 years, accounting for why I'm so rusty with this. Can I use colorization and add in my colored "Go" button in the below script? If not, do you know where I can find a script that I could customize with colorization? Many thanks for your expertise and help. Below is the code that I am using to build her dropdown menu: Confused

Amalgam and Dental Shame
Confused and Misleading Medical Reporting
Flu Crimes at the CDC
Multiple Causes of Autism Spectrum Disorders
The Darkening Age of Medicine
IMVA Home

:roll:

Roo's picture

She has: 840 posts

Joined: Apr 1999

input type="image" src="imagenamehere.gif" alt="Go" border="0" height="??" width="??"

Replace height and width ?? with your image dimentions. Replace src= with your image name and extention type.

Roo

They have: 5 posts

Joined: Jan 2005

Roo, thanks so much for your instructions here. I applied my image code and dimensions to the script below; however, I know that I haven't done something right because I tested it on the website and now this navigation menu's links aren't working. I did upload the image graphic to the site's correct folder. When time allows, plz. let me know if I have added my image data incorrectly to this script. Does the onClick line of code, below, stay where it is in the script, or is this interfering with the image data that I just added? I do not know JavaScript; however, I'm registered to take an IWA online JavaScript course starting in March.

Thanks a million for your expertise. Here is the navigation drop down script into which I just added my image location and dimensions:

Mercury on the Horizon
Amalgam and Dental Shame
Confused and Misleading Medical Reporting
Flu Crimes at the CDC
Multiple Causes of Autism Spectrum Disorders
The Darkening Age of Medicine
IMVA Home

They have: 13 posts

Joined: Jan 2005

Something is wrong with your image url here I can't see your img

check the file name Laughing out loud

I have had problems on some servers with images with Capital
and lower case mixed and with _ spaces if this is the proper
img file name try renaming it lower case with no spaces.

They have: 5 posts

Joined: Jan 2005

Hi Debspicks. Thanks so much for the recommendation. Unfortunately, when I renamed my image to lowercase with no spaces (I renamed the image "publications", without quotes or spaces), this form still does not allow user to go to link of his choice. What it does is it returns to the top of the page that this form is built into; this form is on 4 Web pages of site. If anyone else knows why I can't get my image to act as a "Go" link in this form, I'd greatly appreciate your suggestions. I'm trying to get my custom button to replace the traditional "Go" form button in this script and work like the form button typically does. Many thanks for all of you who are helping me. Unfortunately, I have a time constraint with this issue. Thanks for coming to my rescue.

Roo's picture

She has: 840 posts

Joined: Apr 1999

You have a javascript declaration in there. Is there a bit of additional script that needs to be between the head tags?

If you are having them click the button/image to 'go', then why have the onclick event in there?

Roo

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.