473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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:IMAGEBUTTON
id="ProductSearch"
onmouseover="this.src='../../images/OrderEntry/ProductSearch-over.gif'"
onmouseout="this.src='../../images/OrderEntry/ProductSearch.gif'"
ImageUrl="../../Images/OrderEntry/ProductSearch.gif" runat="server">
</ASP:IMAGEBUTTON>

<ASP:IMAGEBUTTON
id="Cart"
onmouseover="this.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="this.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 2735
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:IMAGEBUTTON
id="Cart"
onmouseover="this.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="this.src='../../images/OrderEntry/Cart.gif';

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

"Casey" <gr*****@aol.com> wrote in message
news:d7**************************@posting.google.c om...
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:IMAGEBUTTON
id="ProductSearch"
onmouseover="this.src='../../images/OrderEntry/ProductSearch-over.gif'"
onmouseout="this.src='../../images/OrderEntry/ProductSearch.gif'"
ImageUrl="../../Images/OrderEntry/ProductSearch.gif" runat="server">
</ASP:IMAGEBUTTON>

<ASP:IMAGEBUTTON
id="Cart"
onmouseover="this.src='../../images/OrderEntry/Cart-over.gif'"
onmouseout="this.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
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...
14
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...
2
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...
1
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...
2
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...
4
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...
3
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...
23
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...
10
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: ...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.