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

Show Title without mouseovering on it.

guys,
i am changing the title of a span.
what i want to also do is, as soon as i change the title of the span, i
want to display that title without moving my mouse over it.
i am trying to do this through javascript.

i dont know if this is in anyways possible, but experts on this group
might help me out and guide me in the right direction.

thanks

Feb 3 '06 #1
3 1567
ComfortablyNumb wrote on 03 feb 2006 in comp.lang.javascript:
guys,
i am changing the title of a span.
what i want to also do is, as soon as i change the title of the span, i
want to display that title without moving my mouse over it.
i am trying to do this through javascript.

i dont know if this is in anyways possible, but experts on this group
might help me out and guide me in the right direction.


<span title='aaa'id='s1'>my title is: <span id='s2'></span></span>

<script type='text/javascript'>
function show(){
document.getElementById('s2').innerHTML =
document.getElementById('s1').title
}
setInterval('show()',30)
</script>

not tested

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 3 '06 #2
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:
ComfortablyNumb wrote on 03 feb 2006 in comp.lang.javascript:
guys,
i am changing the title of a span.
what i want to also do is, as soon as i change the title of the span, i want to display that title without moving my mouse over it.
i am trying to do this through javascript.

i dont know if this is in anyways possible, but experts on this group
might help me out and guide me in the right direction.


<span title='aaa'id='s1'>my title is: <span id='s2'></span></span>

<script type='text/javascript'>
function show(){
document.getElementById('s2').innerHTML =
document.getElementById('s1').title
}
setInterval('show()',30)
</script>

not tested


i got the impression that the OP wanted to have the contents of the title
parameter displayed. ie: if you hover over a div like so:

<div id="party" title="We all love to party"></div>

Then you get a nice pop-up bubble on top of your mouse pointer that says
"We all love to party". However, I don't think its possible to display
the contents of a title parameter without mousing over the tag directly.

Your suggestion would be a good work-around.

Feb 3 '06 #3
Good Man wrote on 03 feb 2006 in comp.lang.javascript:
"Evertjan." <ex**************@interxnl.net> wrote in
news:Xn********************@194.109.133.242:
ComfortablyNumb wrote on 03 feb 2006 in comp.lang.javascript:
guys,
i am changing the title of a span.
what i want to also do is, as soon as i change the title of the
span, i want to display that title without moving my mouse over it.
i am trying to do this through javascript.

i dont know if this is in anyways possible, but experts on this
group might help me out and guide me in the right direction.


<span title='aaa'id='s1'>my title is: <span id='s2'></span></span>

<script type='text/javascript'>
function show(){
document.getElementById('s2').innerHTML =
document.getElementById('s1').title
}
setInterval('show()',30)
</script>

not tested


i got the impression that the OP wanted to have the contents of the
title parameter displayed. ie: if you hover over a div like so:

<div id="party" title="We all love to party"></div>

Then you get a nice pop-up bubble on top of your mouse pointer that
says "We all love to party". However, I don't think its possible to
display the contents of a title parameter without mousing over the tag
directly.

Your suggestion would be a good work-around.


The OP could display a "fake"-title with overlib:

<http://www.bosrup.com/web/overlib/>

And test every 50 milisecond for (title!=oldTitle)

However, since the changing of the title would be a JS DOM maniipulation,
why not trigger it by the same action?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Feb 3 '06 #4

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

Similar topics

6
by: Steve Speirs | last post by:
Hi I'm trying to show/hide a simple piece of text and a text field on a form based on what choice is made from a drop down box. <select name="dropdown" size="1"> <option selected...
20
by: WindAndWaves | last post by:
Hi Gurus I was wondering if you can send me in the right direction: I have a table with about 300 rows. I want to make all of them invisible and when a user enters a code in a form then make...
4
by: jerryyang_la1 | last post by:
I've found this script that allows be to hide/show form elements.. <script language="JavaScript"><!-- var toggle = true; function show(object) { if (document.layers && document.layers)...
3
by: Øyvind Isaksen | last post by:
Hi! I use a Repeater Control (with Item Template/Container.DataItem) to list all the articles in my different categories. The list displays "title", "ingress" and a "read more" link. This is...
2
by: UJ | last post by:
Is there a way with a asp:checkbox to run a JavaScript to display/hide text/input on the screen without doing a postback? I also need to be able to access the stuff at the server so I need to...
1
by: Chicagoboy27 | last post by:
I have all the following site map ... <siteMapNode url="nothing.aspx" title="nothing" description="Home" roles=""> <siteMapNode url="default.asp" title="Home" description="Home" roles="" />...
4
by: frozenade | last post by:
Hello all.. merry christmas.. :) I need to show progress status when a button is clicked. I use this script. but I know that this code is still very bad. <html>
21
by: daydream | last post by:
yeah i need some help(such a common line) ,i have a menu and each link has its own div respectively and yeah obviously when u click the link the div shows, the problem is i would like each div to...
1
oranoos3000
by: oranoos3000 | last post by:
hi would you please help me i have a online shopping center that i show pictures of the my product in home page. in the InterExplorer pictures is shown correctly but in Firefox browser is shown...
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...
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...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.