wyo
Posts: 3
|
Posted: 07/31/2004, 4:00 PM |
|
I am unable to get javascript to execute on image links.
I have this in the html file:
<a onmouseover="alert('here')" href="{Continue_Link}"><img src="{Continue_Link_Src}" onmouseover="alert('here')" border="0"></a>
trying both the image and the link.
The source from the web page is as follows:
<a id="Continue_Link" href="Home.aspx?"><img src="Images/Continue_A.jpg" border="0" />
The following (a plain link):
<a onmouseover="alert('here')" href="{Link1_Src}">{Link1}</a>
Will generate this in the source and works:
<a href="Home.aspx?" id="Link1" onmouseover="alert('here')">Home</a>
If anyone has any ideas or suggestions, I would appreciate hearing from you.
Thanks
|
|
|
E43509
Posts: 283
|
Posted: 08/01/2004, 9:48 AM |
|
In .net you don't edit the html file, you need to do it in code (or alter the aspx file itself). The best way is to google how to add javascript to a .net object and do it in a before show event. If you touch the aspx file, it won't regenerate anymore.
|
|
|
|