?
Solved

rollover, button and sub

Posted on 2003-02-19
2
Medium Priority
?
196 Views
Last Modified: 2012-05-07
I have a slice of an graphic (photoshop) which has a rollover and mousedown effect applied to it.  This happens on the html page.  Now I want to apply an onclick event to the to the slice and run an fuction.  How do I keep the java onmouseover,onmousedown and onmouseout and add an onclick event? I have the function on the .aspx.vb page.

TIA

jtr  
0
Comment
Question by:akjtr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
aponcealbuerne earned 400 total points
ID: 7984367
Hi,
You can keep the code in html and java script just editing the html part of your .aspx

Or by code you can do something like this.

Put an image button of with the image of your button then

In the Page_Load

Btn.Attributes.Add("onmouseover", "src='yourbuytton_01-over.gif'")
Btn.Attributes.Add("onmouseout", "src='yourbutton_01.gif'")

and the same for onclick          
Btn.Attributes.Add("onclick", "yourJavaScriptFunction();")


About the function again you can put it in your html code directly or again with code:

RegisterClientScriptBlock("IDx", "<Script language=javascript>function yourfunction(){yourcode}</script>"


hope helps



         

0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9645134
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by aponcealbuerne

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question