Results 1 to 6 of 6
  1. #1
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    character length of <a title> (2003)

    I am using Front Page and have an issue, but it may also be relevant to the Web Design forum. Leif, I am sure you will move it if appropriate.

    When I put images on a page for our joggers site Griffith Ferals , I always put a 'screen tip' attached to the hyperlink to the larger image. Front Page says that it uses the <title> tag to do this, and in the code behind the page, I can see that it is in fact <a title>.

    What I want to know is what is the maximum length of the text that will go in that attribute. I have been to w3schools and to a few other sites, but have not been able to find an answer.

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: character length of <a title> (2003)

    Hi Joh

    Happens to the best of us <img src=/S/grin.gif border=0 alt=grin width=15 height=15>. Have a look at this link <!post=Longdesc,537025>Longdesc<!/post>

    At one point I only got 79 characters in a normal title attribute, alternatively if you want to go a little further down the line I can put together some CSS for you which should do the job
    Jerry

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: character length of <a title> (2003)

    Hi Joh

    I hope you don't mind but I made a facsimile of your gossip page (be very careful as you are hosting on a unix box and the url is case sensitive) and am hosting it on my webserver for this demo. It is an orphna link so it can only be accessed via this link

    http://www.magicforest.co.uk/fun/joh/gossip.html

    I have created a set of CSS styles within the new page but just for looks I placed the images in a table just to get a bit of lay out (I prefer this but it is my opinion)

    The CSS is:
    <pre>
    <style>
    a.info{
    position:relative;
    z-index:24;
    color:#000000;
    text-decoration:none;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    height: 100px;
    width: 88px;
    border: 1px none;
    }

    a.info:hover{
    z-index:25;
    background-color:#3399FF;
    text-decoration: none;
    }

    a.info span{
    display: none;
    text-decoration: none;
    }

    a.info:hover span{
    display:block;
    position:absolute;
    top:2em;
    left:2em;
    width:10em;
    border:1px solid #000000;
    background-color:#00CCFF;
    color:#000000;
    text-align: center;
    text-decoration: none;
    }
    </style>
    </pre>


    and the general layout for the image to allow the hover over is:

    <pre><span>Here is my very long text</span>[img]mypic.jpg[/img]
    </pre>


    It will be quite a lot of work to get it right but it should be worth it
    Jerry

  4. #4
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: character length of <a title> (2003)

    Jezza,

    Now I know where to go to get the inspiration for the comments in the screen tips!! I am still laughing, and I know that two out of the three runners would laugh too!.

    Thank you for all that work. I will get on to it and play and see what I can do with it. And I will also have a look at the link you gave me.

    I posted the question after a comment by Mr Johbot (my chief proof reader and president of the club) without further checking. He uses Netscape or Firefox for browsing. He has the text truncated in Firefox (I have just been able to verify this). I use IE7 and have no problems. Most of my visitors use IE7 (98%) so I have been a bit remiss in checking how my site looks in other browsers.

    The particular photo and caption is under Race Three photos, in the second row extrreme right. The caption for Keryn finishes with ellipses in FF.

    <img src=/S/yikes.gif border=0 alt=yikes width=15 height=15> if you scroll right to the bottom to find the photo with the caption that says "glad that's over", you will find me. I'm the taller one

  5. #5
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: character length of <a title> (2003)

    Fantastic.

    You Aussies, any excuse for a brew <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16> <img src=/S/grin.gif border=0 alt=grin width=15 height=15>

    <img src=/S/whisper.gif border=0 alt=whisper width=29 height=17>26 minute 5K run this evening <img src=/S/grin.gif border=0 alt=grin width=15 height=15>....but it hurt <img src=/S/sad.gif border=0 alt=sad width=15 height=15>...feet up tomorrow though
    Jerry

  6. #6
    4 Star Lounger
    Join Date
    Mar 2004
    Location
    Griffith, New South Wales, Australia
    Posts
    507
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: character length of <a title> (2003)

    Its a well kept secret that running is a dirnking sport!

    We dont often indulge after the race. This was a special day for John. He had reached his 3000th kilometre with us.

    The tally is one that started in 1992 and memorialises a runner who was killed in a car accident. He was never fast, he was just always there. So we tally up the kms and reward those who achieve through just being there. On this day, John ran his 3000th kilometre. He was the third person to achieve this milestone, so beer was in order. (Shame the tally is not retrospective. If I could count the pre 1992, I would be on that list too)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •