Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 6 of 6
  1. #1
    Member Mist's Avatar
    Join Date
    Dec 2002
    Posts
    61
    Member #
    395
    Firstly look at this example code:

    Code:
    <img src="images/myimage.gif" width="100" height="100" border="0" alt="" />
    Now what i want is that when a user hovers their mouse over the image i can specify a line break in the alt tag. So for example it would look like so:


    -------------------
    This is one line
    This is another line
    And this is the third line
    -------------------

    Any ideas on how to achieve this - i googled it and had a quick peek around w3c.org to no avail

    Thanks in Advance

    - miSt

  2.  

  3. #2
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    hmmm,

    try \n - doubt it will work though.

    Edit: No it doesn't.
    JR

  4. #3
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    this is the only way i can get it to work...

    Code:
    <img src="images/myimage.gif" width="100" height="100" border="0"
    alt="This is one line
    This is another line
    And this is the third line" />
    JR

  5. #4
    Member Mist's Avatar
    Join Date
    Dec 2002
    Posts
    61
    Member #
    395
    Excellent - exactly what i needed !

  6. #5
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    No problem
    JR

  7. #6
    Senior Member Brak's Avatar
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    3,413
    Member #
    1217
    Liked
    2 times
    That might throw some browsers off just so you know.. html is tricky with whitespace.
    Kyle Neath: Rockstar extraordinare
    The blog | The poetry site | The Spore site


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:35 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com