ASP programming

powderqueen

New Member
I am new to ASP. Now I am in the process of modifying some elements in our site. My page has n images displayed. On clicking each images another set of images will be written on the page which is based on the image clicked. So the following code is used.\[code\]for i=1 to nresponse.write"<img src="http://stackoverflow.com/questions/14492102/&SourceFile&" id="&i&" onClick=func(this)>"next\[/code\]And my function code is as follows\[code\]newSrc="http://stackoverflow.com/questions/14492102/myweb.com/Images/img1.gif"function func(x){ switch(parseInt(x.id)) { case 1:x.src=http://stackoverflow.com/questions/14492102/newSrc; break; } }\[/code\]when i checked i found the error x is null or not an object. Can you please help me spot the errors...
 
Back
Top