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

Want to expand text with onmouseover but with a delay

Ian
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 user places the
mouse pointer over it but only after a delay of say a second or two.

I did manage to find the following:

<style type="text/css">
<!-- .roll { font-family:Arial; font-size:14t;

font-style:normal; font-weight:normal; letter-spacing:normal;

text-decoration:none; text-transform:none; color:#8b0000; }

A.roll:hover { font-family:Serif; font-size:26pt; font-style:oblique;

font-weight:bold; letter-spacing:normal; text-decoration:none;

text-transform:none; color:NAVY; }--></style>
but its unusable as its virtually impossible to move from one row to the
next in the table as the second you hover over a cell the text expands
and pushes you away from the next cell above or below. It would however
be ok if it could be delayed for one or two seconds before takiing
effect. Is there any way of achieving this either with the code above
or possibly a better way altogether ?

Thanks in advance for any help.

Jul 23 '05 #1
1 4768
Ian,
This works in MSIE:
setup a css class with name 'bigtext' and set the text to your desired
font-size.
-------------------------------------------------
<table id="mytable" border="3" width="50%"
onMouseover=setTimeout("document.getElementById('m ytable').className='bigt
ext'",2000)>
<tr><td>item1</td></tr>
<tr><td>item2</td></tr>
<tr><td>item3</td></tr>
</table>
Jul 23 '05 #2

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

Similar topics

4
by: Tim | last post by:
Hope someone in the big wide world can help... What I want to do is have an image slideshow which automatically scrolls through a series of images very fast, then pauses when you move your mouse...
8
by: lawrence | last post by:
Under the domain publicpen.com I've several dozen sites in subdiretories, such as www.publicpen.com/honenbeger. I've no trouble with any of these sites. But under one, which I put in yesterday,...
1
by: Sketcher | last post by:
Hi all, I have a basic menu (compatible with IE and N6), the code of which is shown below. Is there any way that I can tidy this up - perhaps define the criteria once only for the entire menu....
1
by: s.shahzaib.ali | last post by:
I want to make analog clock skin of windows media player so how can i roteate the layer upto 360 degrees with the help of javascript please tell me iam very anxious about it. iam the first and only...
17
by: Christopher Nelson | last post by:
I have a menu tree made up of anchors inside list items in a multi-level list that includes HTML like: <ul id='xx'> <li><a href='conf.cgi' class='menu' target='main' title='Configure stuff'...
5
by: remon87 | last post by:
I need some help. I have javasript that creates the submenu but it works if I have a text with css. I need it to do the same with a roll over images. so when I click on the image the submenu...
3
by: kronus | last post by:
Hi Everyone, It's been a long time and I'm always appreciative of your help. I'm working on a Datagrid at the component level in Flex. I know that I can expand a row within the Datagrid by...
2
by: chotu99 | last post by:
I have a table in which there are several rows , I would like to know how to expand a row when mouse moves over that particular row and give some description about and gets back to normal when mouse...
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
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.