Simple Image Button Question

G

Guest

Hi,

I am designing a simple ASP.NET web page. I have an image button. What I
want to do is: when the cursor is over the image button, a drop down meny
should display. This menu should have tabs which are images. What can be the
C# code for this.

Please help.

Thanks
 
B

Bruce Barker

there is no C# code, its all client script - pickup any book on javascript.

-- bruce (sqlwork.com)
 
G

Guest

Hi,

I am using the following javascript code in the Head scetion of the HTML file.
function disp_menu()
{
document.images['3'].src='Images\test.jpg'
}

Then I am using the following code to call the function: <img src=''
onMouseOver="function_disp()">

But when I mouse over the image , the image is not displaying. Its
displaying a red cross mark in place of the image. I have a folder in my
ASP.nET project called Imges in which the image is placed. Any idea why the
image is not displaying?

Any help is appreciated.

Thanks
 

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top