Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8739347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:55:14+00:00 2026-06-13T10:55:14+00:00

I wrote a abbrevation in html something like this, <abbr title=How are you>HAY</abbr> This

  • 0

I wrote a abbrevation in html something like this,

  <abbr title="How are you">HAY</abbr>

This piece of code show the abbrevation just for 4 or 5 seconds.
Is is posible to customize this time ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:55:16+00:00Added an answer on June 13, 2026 at 10:55 am

    No, this is handled entirely by the browser, and is inaccessible to the user or web-developer to change, read or edit the time of visibility.

    You could, with JavaScript create an element that will contain the text of the title attribute the visibility of which would be explicitly under your control.


    Edited because it occurred to me that I should try and offer an example of alternatives (rather than just saying ‘they exist’), so, a CSS example (I’m using CSS generated content in this implentation, which unfortunately doesn’t allow for CSS transitions, so it just appears, and remains in place until you mouse-out from the abbr element):

    HTML:

    <abbr data-title="Cascading Style Sheets">CSS</abbr>​
    

    CSS:

    abbr[data-title] {
        position: relative;
        border-bottom: 2px dashed #aaa;
        cursor: help;
    }
    abbr[data-title]::after{
        display: none;
        position: absolute;
        content: attr(data-title);
        top: 90%;
        left: 90%;
        color: #f90;
        background-color: rgba(0,0,0,0.7);
        padding: 0.4em;
        border-radius: 0.7em;
    }
    abbr[data-title]:hover::after {
        display: block;
    }
    

    JS Fiddle demo.

    This does require the user to have a browser that supports CSS generated content, since if there was a title attribute you’d have both the CSS pop-up and the default title showing up which is neither terribly useful or particularly pretty.

    An alternative is using nested elements and CSS transitions, which gracefully degrades in those browsers that don’t support transitions (the content simply ‘appears’, but at least it’s available):

    HTML:

    <abbr>CSS<span>Cascading Style Sheets</span></abbr>​
    

    CSS:

    abbr {
        position: relative;
        border-bottom: 2px dashed #aaa;
        cursor: help;
    }
    
    abbr span {
        position: absolute;
        top: 90%;
        left: 90%;
        padding: 0.4em;
        color: #f90;
        background-color: rgba(0,0,0,0.7);
        border-radius: 0.7em;
        opacity: 0;
        width: 0;
        height: 0;
        overflow: hidden;
        -moz-transition: all 1s linear;
        -ms-transition: all 1s linear;
        -o-transition: all 1s linear;
        -webkit-transition: all 1s linear;
        transition: all 1s linear;
    }
    
    abbr:hover span {
        opacity: 1;
        width: 8em;
        height: 4em;
        -moz-transition: all 1s linear;
        -ms-transition: all 1s linear;
        -o-transition: all 1s linear;
        -webkit-transition: all 1s linear;
        transition: all 1s linear;
    }
    

    JS Fiddle demo.

    And a JavaScript approach (which is kind of ugly, frankly):

    if (document.querySelectorAll) {
        var elems = document.querySelectorAll('[title]');
    }
    else {
        var firstPass = document.getElementsByTagName('*'),
            elems = [];
        for (var i = 0, len = firstPass.length; i < len; i++) {
            if (firstPass[i].title) {
                elems.push(firstPass[i]);
            }
        }
    }
    
    for (var i = 0, len = elems.length; i < len; i++) {
        elems[i].onmouseover = function(e) {
            // cache variables for subsequent use:
            var that = this,
                helpText = this.getAttribute('data-title') || this.title;
            // create a useable attribute and stop the original title from showing up,
            // if the attribute to use doesn't already exist:
            if (!that.getAttribute('data-title')) {
                that.setAttribute('data-title', helpText);
                that.removeAttribute('title');
            }
            // create an element to contain the popup-text or find the
            // already-created element if it already exists:
            var id = helpText.replace(/(\W)/g, ''),
                popup = document.getElementById(id) || document.createElement('div');
            // setting the id to its own id (if it already existed)
            // or, if it's newly-created, to the white-space-removed help-text
            popup.id = popup.id || id;
            // creating a text-node for the help-text:
            var text = document.createTextNode(helpText);
            // appending that text-node to the popup if that text node doesn't already exist:
            if (!popup.firstChild) {
                popup.appendChild(text);
            }
            // setting the styles (adjust to taste):
            popup.style.display = 'block';
            popup.style.color = '#f90';
            popup.style.backgroundColor = '#000';
            popup.style.position = 'absolute';
            popup.style.top = that.offsetHeight * 0.9 + 'px';
            popup.style.left = that.offsetWidth * 0.9 + 'px';
            popup.style.padding = '0.3em';
            document.getElementsByTagName('body')[0].appendChild(popup);
        };
        elems[i].onmouseout = function() {
            // finding the id of the popup (since it's predictably created)
            var id = this.getAttribute('data-title').replace(/(\W)/g, '');
            // finding the element with that id, and hiding it
            document.getElementById(id).style.display = 'none';
        }
    }​
    

    JS Fiddle demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wrote this simple test of Pybrain neural networks, but it doesn't act like
I wrote a php code that display error in red color. But somehow, this
I wrote this code which is working but it made me start thinking how
I wrote this code to do the IEEE 754 floating point arithmetic on a
Wrote some code to help with Find special markers in sequence and do something
I wrote this code: float b = 3.6; and I get this: Error:Unresolved compilation
I wrote an application that use MKMapView. This application use a timer to update
I wrote the code as follows: <?php array_shift($argv); $taskid=$argv[0]; $file1=file_get_contents($argv[1]); $file2=fopen($argv[2],w); echo $taskid.\n.$file1.\n.$file2.\n; ?>
I wrote some code: output = File.open(text_file).collect.reverse.join(<BR>) It seems to work okay on 1.8.7
I have a .plist file that looks like this: <plist version=1.0> <array> <dict> <key>name</key>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.