Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

On mouse click change image and function (experts only)

Status
Not open for further replies.

pthompson23

Programmer
Mar 28, 2007
1
GB
i have 2 buttons. one button pauses the video. I want when the user clicks the pause button it to change the button graphic and call a different function.. how do i do this?

i have function resumePressed()
and function pausePressed()

so picture a video player. When u click the pause button it changes to the play graphic. now when u press play the graphic changes to pause..

make sense??
 
On mouse click change image and function [!](experts only)[/!]

Is that a joke? Would it be considered bigotry to outright tell people before they even read the thread that "less experienced coders need not give an opinion".

The funniest thing about this is that you're saying that you only want experts to help with your problem when it's a question that utilizes the most basic of javascript skills, and most novices could easily give the answer.

-kaht

Looking for a puppy? [small](Silky Terriers are hypoallergenic dogs that make great indoor pets due to their lack of shedding and small size)[/small]
 
If I know that this would pass am I an expert

a = b
if(a==b) {}

____________ signature below ______________
The worst mistake you'll ever make is to do something simply the way you know how while ignoring the way it should be done
 
To add to kaht's post, your question is such that the only way to answer it is to do everything for you. I see no attempt by you whatsoever.

[monkey][snake] <.
 
Wow, I did not know that ten minutes of google searching, and ten minutes of debugging my stupid typos could make me an expert on programming javascript!

Here is a hint, you can modify button attributes (including functions for certain events) through your code, and it may involve the words getElementById.

Now, I'm off to update my resume [pipe]

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top