473,326 Members | 2,147 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,326 software developers and data experts.

Rollover makes text appear below image?

I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.
Jul 20 '05 #1
6 10015
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.

The specific answer I will leave to those more skilled. The general answer
is that CSS alone can do this in nearly every browser, except for that one
most people are using :\ so the solution here is normally a script.
Jul 20 '05 #2
Els


Neal wrote:
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make this
happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted text
appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears in
the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.


The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except for
that one most people are using :\ so the solution here is normally a
script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #3
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >
Neal wrote:
On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make
this happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted
text appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears
in the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.


The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except
for that one most people are using :\ so the solution here is
normally a script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)


I generally worry about changing expected behaviour but, since the hand
pointer is in itself unexpected in this context, how about styling the link
with style="cursor:default" ?
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #4
Els


PeterMcC wrote:
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >
Neal wrote:

On 13 Feb 2004 06:05:17 -0800, ki********@hotmail.com
<ki********@hotmail.com> wrote:
I am new to CSS and would like to know if there is a way to make
this happen with CSS:

image1 and image 2 are laid out at the top of the page.

when the mouse hovers over image1, a paragragh or so of formatted
text appears below,
when the mouse leaves the image, the text disappears;

when the mouse hovers over image2, a different body of text appears
in the same area where the text appeared for image1, which also
disappears when the mouse moves away.

If this is a common question, I apologize. Thank you in advance for
any help.

The specific answer I will leave to those more skilled. The general
answer is that CSS alone can do this in nearly every browser, except
for that one most people are using :\ so the solution here is
normally a script.


I'm not saying I'm more skilled, but I'd say it can be done,
at least if image1 and image2 are links, so the CSS hover
function will work in IE, following the example of Eric Meyer:
http://www.meyerweb.com/eric/css/edge/popups/demo.html
And if the images aren't meant to be links, well, 'link'
them to "#" and it'll work without linking anywhere. (yes,
confusing people by showing the little hand ...)


I generally worry about changing expected behaviour but, since the hand
pointer is in itself unexpected in this context, how about styling the link
with style="cursor:default" ?


Yep, good one. Never realised that could be done with CSS as
well. Just tested it in IE6, Opera 7.23, NS7.1 and Firefox.
However, don't style the a:hover, but a itself, like
a {cursor:default;}
If you only style the a:hover, the hand will appear when
touching the border of the link, in NS7.1 and Firefox.

I learned something new again today. :-)
Leaves one question though:
Is this what the op was looking for?

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #5
Els <el***********@tiscali.nl.invalid> wrote in
<40**********************@dreader2.news.tiscali.nl >

I learned something new again today. :-)
Pleased to have been of service.
Leaves one question though:
Is this what the op was looking for?


Nope - he'll be like the rest of us, just looking for a little warmth and
affection.

;-)

--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.

Jul 20 '05 #6
Els


PeterMcC wrote:
Els wrote:
Leaves one question though:
Is this what the op was looking for?


Nope - he'll be like the rest of us, just looking for a little warmth and
affection.


LOL

--
Els

Mente humana é como pára-quedas; funciona melhor aberta.

Jul 20 '05 #7

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

Similar topics

9
by: pablo | last post by:
Dear NGers, I would like to change the alt-text with the changing of the image during a mouseover action. Can document.images.altView be changed dynamically? TIA, pablo
5
by: jedbob | last post by:
I used Adobe Imageready to build a simple rollover navigation bar, where the text will change color on a mouse over. The working example can be found at:...
3
by: JOSEPHINE ALVAREZ | last post by:
I have this code that I want to use to do a rollover. However, because the company I am doing it for is continually changing the text, I want to be able to use dynamic text to change the text on...
5
by: Patrick.O.Ige | last post by:
I want to have a rollover image on an hyperlink inside a Repeater control but when i run the page i get "Image1 is undefined" Any ideas? I have a Hyperlink and an Image control in a repeater...
2
by: mix2plix | last post by:
ok.. been bangin by brains the past few days with this one and decided to seek you'z help. so here ya go. based on the code below and this concept.. how should i proceed? I have a table of 4...
1
by: twst3d | last post by:
Thanks in advance. Not very well versed in javascript but I'm pretty good at piecing together code that works. I am creating a page that has will have definitions on one side and a blank area...
2
by: eholz1 | last post by:
Hello CSS and StyleSheet members, I have decided to move away from Dreamweaver javascript rollover buttons, in favor of a CSS type rollover button. (hope that is ok). I plan to use PHP to...
1
by: Iain Wilson | last post by:
Hi all I have a simple 2 column page (see below) styled by CSS In column 1 there are a list of href's. What I want to do is to have an image displayed in column 2 in response to a href...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.