473,322 Members | 1,538 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,322 software developers and data experts.

Need help with onMouseover

What I would like to do is create 2 rows. Row1 by default will show a div that currently works fine. Row2 will contain 3 pictures (so I guess there can be 3 columns in Row2). When you hover over pic1, the div in Row1 changes to a description of pic1, when you hover over pic2, the div changes to its description, etc. I currently have tried javascript using a script with "onmouseover="CngTxt,..." which works fine but, as far as I can tell, doesn't allow me to alter the font or provide any formatting (centering text, including a thumbnail, etc). Is there a better way to accomplish what I'm looking to do?
Sep 6 '11 #1
1 1179
acoder
16,027 Expert Mod 8TB
You can use the div element's JavaScript Style object (see the link for details/properties).

Alternatively, if you want to have it set from the beginning, use CSS (set the style rules in a class and then set the div to that class).
Sep 9 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Ben | last post by:
I know I can use the status line to display a message 'on mouse over'. However, I would prefer to have the message displayed near the cursor location, but couldn't figure out how. Please help. ...
1
by: Ian | last post by:
I'm wondering if someone can tell me what the best way to do this would be. I have a web page with a table which has some text in and I want the text size to be automatically enlarged when the...
0
by: saravanan_article | last post by:
Hi I am newbie to C#, i am using C# 2005 and DataGridView in my Application. The problem is described here I am using DataGrid and I placed some Headers like Column1,Column2,Column3.... What i...
1
by: pduncan | last post by:
I'm putting custom tooltips on my buttons and am getting a flicker effect with buttons in Internet explorer (not firefox) When you mouse over a button in internet explorer, the outline of the...
3
by: Vear | last post by:
Hi, I'm looking to change the cssclass on a hyperlink with the onmouseover. I've tried the 3 syntax's below but to no success. Can someone point me in the right direction. Thanks ...
2
by: Daz | last post by:
Hi everyone. I think my problem is a simple one, but I am completely baffled as to how to pull it off. I have a piece of code like so... document.write( "<img id=\"slideshow_toggle\"...
5
by: The87Boy | last post by:
I'm trying to make an onmouseover and onmouseout with this script: http://www.dynamicdrive.com/dynamicindex14/leftrightslide2.htm When the mouse is over, it should change to a picture, and when...
1
by: joshwaihi | last post by:
Hi there, my problem seems pretty straight forward I think, possibly I just don't know how to handle IE 6.0 yet. I'm trying to keep my JavaScript unobtrusive to my XHTML and am setting my mouse overs...
2
by: m9817232 | last post by:
hello, my onmouseover won't work on my website. it's working in a simple html document, but not in the advanced one.. goal is to change the image when hovering over the numbers.. both files...
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: 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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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.