![]() |
|
|
|||||||
![]() |
ASP Net - Allow multiple image swap onmouseover |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Posts: n/a
|
Here is my question:
I can swap an image with the following line under Page_Load. ImageButton1.Attributes.Add("onmouseover", "this.src='menu1on.gif'") What I want is to swap more than one image onmouseover. Is this possible? What is the syntax? I tried variation sof this: ImageButton1.Attributes.Add("onmouseover", "this.src='menu1on.gif'; image1.src='menuitem1.gif'") THanks |
|
|
|
#2 |
|
Posts: n/a
|
Chain the commands together, separated by semicolons. The
"this.src='menu1on.gif'" portion of the statement is javascript. You will have to know the ids of the other images to complete this. The easiest way to set it up is to create a pure javascript mouseover example (R&D) work. Once you understand syntax, it is an easy thing to do. -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA *************************** Think Outside the Box! *************************** "hadAnet" wrote: > Here is my question: > > I can swap an image with the following line under Page_Load. > > ImageButton1.Attributes.Add("onmouseover", > "this.src='menu1on.gif'") > > What I want is to swap more than one image onmouseover. Is this > possible? What is the syntax? > > I tried variation sof this: > ImageButton1.Attributes.Add("onmouseover", > "this.src='menu1on.gif'; image1.src='menuitem1.gif'") > > THanks > > |
|
|
|
#3 |
|
Posts: n/a
|
HI,
Thanks for the input, but I do not want to use Javascript. I know there are a hundred ways of writing different scripts, but I want to know if I can modify the 'attributes.add' code for multiple images. This is the simplest way to do it and I am striving for clean, efficient app development. If so, please provide working syntax example. Thanks. |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cisco PIX 535 No bootable image in flash | Dmitriy_K | Hardware | 1 | 11-22-2006 03:51 AM |
| DeepBurner Pro - IMAGE? | Terry Pinnell | DVD Video | 2 | 04-28-2006 07:44 AM |
| Image acquires Criterion | Goro | DVD Video | 2 | 08-04-2005 01:28 AM |
| Advantage of 4:3 hdtv over old 4:3 | Adam Smith | DVD Video | 17 | 12-15-2003 06:25 PM |
| New Releases: Short Circuit, Kung Fu Series, Image Horror: Updated complete downloadbable R1 DVD DB & info lists | Doug MacLean | DVD Video | 0 | 12-13-2003 04:31 AM |