473,549 Members | 3,109 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mouseover Effects

Greetings,

I have an ASP .NET page that contains three images which give the
appearance of a tabbed folder. The images contain the words Product
Search, Cart, and Summary respectively.

The idea is that when the user is on the Product Search page, an image
is displayed to give the appearance that the tab is selected. The
user can mouse over the other images and with roll over effects, those
tabs appear selected as well for the user allowing them to click on
that image to go to the specified web page. My problem is this. If
the user is on the Product Search web page and then mouses over the
Cart image, (the cart image would display the mouse over effect) but
decides to not click the cart image, I need to not only set the cart
image back to the original image, but set the Product Search image
back to the mouse over image.

Here is my code. It does everything but set the images back to their
original state in the case of this mouse out scenerio explained above.

<ASP:IMAGEBUTTO N
id="ProductSear ch"
onmouseover="th is.src='../../images/OrderEntry/ProductSearch-over.gif'"
onmouseout="thi s.src='../../images/OrderEntry/ProductSearch.g if'"
ImageUrl="../../Images/OrderEntry/ProductSearch.g if" runat="server">
</ASP:IMAGEBUTTON >

<ASP:IMAGEBUTTO N
id="Cart"
onmouseover="th is.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="thi s.src='../../images/OrderEntry/Cart.gif'"
ImageUrl="../../Images/OrderEntry/Cart.gif" runat="server">
</ASP:IMAGEBUTTON >

How do I reference the Product Search imagebutton when mousing out of
the cart image button?

Thanks in advance.

Casey
Nov 18 '05 #1
1 2746
normally you do not have a mouseover behavior for the selected tab, as
clicking has no effect (you are already there). you can do two statement on
the mouseout:

<ASP:IMAGEBUTTO N
id="Cart"
onmouseover="th is.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="thi s.src='../../images/OrderEntry/Cart.gif';

document.getEle mentById('Produ ctSearch').src= '../../images/OrderEntry/Produc
tSearch-over.gif'';"
ImageUrl="../../Images/OrderEntry/Cart.gif" runat="server">
</ASP:IMAGEBUTTON >

"Casey" <gr*****@aol.co m> wrote in message
news:d7******** *************** ***@posting.goo gle.com...
Greetings,

I have an ASP .NET page that contains three images which give the
appearance of a tabbed folder. The images contain the words Product
Search, Cart, and Summary respectively.

The idea is that when the user is on the Product Search page, an image
is displayed to give the appearance that the tab is selected. The
user can mouse over the other images and with roll over effects, those
tabs appear selected as well for the user allowing them to click on
that image to go to the specified web page. My problem is this. If
the user is on the Product Search web page and then mouses over the
Cart image, (the cart image would display the mouse over effect) but
decides to not click the cart image, I need to not only set the cart
image back to the original image, but set the Product Search image
back to the mouse over image.

Here is my code. It does everything but set the images back to their
original state in the case of this mouse out scenerio explained above.

<ASP:IMAGEBUTTO N
id="ProductSear ch"
onmouseover="th is.src='../../images/OrderEntry/ProductSearch-over.gif'"
onmouseout="thi s.src='../../images/OrderEntry/ProductSearch.g if'"
ImageUrl="../../Images/OrderEntry/ProductSearch.g if" runat="server">
</ASP:IMAGEBUTTON >

<ASP:IMAGEBUTTO N
id="Cart"
onmouseover="th is.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="thi s.src='../../images/OrderEntry/Cart.gif'"
ImageUrl="../../Images/OrderEntry/Cart.gif" runat="server">
</ASP:IMAGEBUTTON >

How do I reference the Product Search imagebutton when mousing out of
the cart image button?

Thanks in advance.

Casey

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
78166
by: al | last post by:
Hi, I've been trying to create a image mouseOver effect using CSS - is this possible? Or will I have to use DIV tags or something along those lines? I've tried a number of things - the code below will work for the border no problem, but I can't seem to get the SRC to work - is this not an option in CSS?
14
2323
by: J. Makela | last post by:
Hallo. This should be a pretty entertaining question for you *real* javascript writers.. I, being the lowly photoshop guy at an ad agency made the mistake of actually saying "HTML" in a conversation once.. and now I have been tasked with building a big website with LOTS of fancy javascripting. Image rollovers mostly. Only problem is that I...
2
3335
by: Alex | last post by:
On my page I have a lot string like this: <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc1</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc2</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc3</span> <span onmouseover="callMe(this)" onmouseout="callMe(null)" >abc4</span> How can I...
1
2249
by: TJS | last post by:
trying to use this code for mouseover highlight of row but it is not working on the datagrid, nothing happens. Page compiles without errors but no highlighting effects take place. can anyone tell me what is missing ? Sub Grid_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs)
2
400
by: Casey | last post by:
Greetings, I have an ASP .NET page that contains three images which give the appearance of a tabbed folder. The images contain the words Product Search, Cart, and Summary respectively. The idea is that when the user is on the Product Search page, an image is displayed to give the appearance that the tab is selected. The user can mouse...
4
6066
by: Bastardx | last post by:
Hi Can I change newsContainer background color with mousover in following example of my code? <div class="newsContainer"><div class="newsTitle><a href="#">My news title</a></div> <div class="newsText">My news text My news text My news text My news text </div></div>
3
19492
by: Annette Acquaire | last post by:
I have and image map with a dozen hotspot links on it that I'm trying to get to open a new image over existing one on mouseover of each COORD. The only thing I was able to do was swap image on mouseover entire image, I want it on each hotspot only, so an image pertaining to each link shows up. I have done it in JavaScript, but the website I'm...
23
2731
by: Schannah | last post by:
I'm trying to create a design which mimics the Radiohead website in the action on this page, but the problem is that they use PHP for the effect and I have no idea about PHP. I'm very amateur: fairly confident with HTML and can scrape together codes with JavaScript with a lot of research and cursing, but for the life of me I can't see how to...
10
2670
by: jjamjatra | last post by:
I am struggling with a event model handling problem in Javascript that shows up only in Firefox. I have 2 little websites I'd like you to take a look at: http://gis.cbmiweb.com/MexicoExported/default.asp http://gis.cbmiweb.com/MDWmaps/default.asp The issue involves the code behind the "Zoom Box"...
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5088
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.