Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply

ASP Net - Allow multiple image swap onmouseover

 
Thread Tools Search this Thread
Old 12-28-2005, 01:44 PM   #1
hadAnet
 
Posts: n/a
Default Allow multiple image swap onmouseover

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

  Reply With Quote
Old 12-28-2005, 04:02 PM   #2
=?Utf-8?B?Q293Ym95IChHcmVnb3J5IEEuIEJlYW1lcikgLSBNVlA=?=
 
Posts: n/a
Default RE: Allow multiple image swap onmouseover

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
>
>

  Reply With Quote
Old 12-28-2005, 05:56 PM   #3
hadAnet
 
Posts: n/a
Default Re: Allow multiple image swap onmouseover

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.

  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47