Expand|Select|Wrap|Line Numbers
- w('<input type=radio name=rad onclick="myImg.src=\'../Audio Streaming/'+myPhoto+'\';">');
I need to accomplish several tasks when "onclick" is executed and I am trying to setup a subroutine "mySub" to perform the various tasks. I created a subroutine as follows, located in the <body> of the html routine.
Expand|Select|Wrap|Line Numbers
- <sub mySub(x)
- {
- myImg.src=\'../Audio Streaming/'+x);
- }
Expand|Select|Wrap|Line Numbers
- w('<input type=radio name=rad onclick="mySub(myPhoto)">');
Can anyone tell me what I am doing wrong?
Thanks - Patrick Russell