Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Line break in alt tag
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Line break in alt tag

 Post Reply Post Reply Page  12>
Author
Amateur View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 July 2004
Location: Ireland
Status: Offline
Points: 210
Post Options Post Options   Thanks (0) Thanks(0)   Quote Amateur Quote  Post ReplyReply Direct Link To This Post Topic: Line break in alt tag
    Posted: 20 July 2005 at 4:44am
How do I put a line break into an images ALT tag?

Edited by Amateur - 20 July 2005 at 4:44am
Back to Top
huwnet View Drop Down
Senior Member
Senior Member


Joined: 30 May 2003
Location: England
Status: Offline
Points: 1375
Post Options Post Options   Thanks (0) Thanks(0)   Quote huwnet Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 5:36am
I dont think it is possible but I dont know for sure. Confused
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 10:56am
I think huwnet's right.
Yould do something similar to the alt tag with javascript and have line breaks but you'd still need the alt tag for the page validate. don't know ehat that would look like.


Edited by dpyers - 20 July 2005 at 10:58am

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Amateur View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 July 2004
Location: Ireland
Status: Offline
Points: 210
Post Options Post Options   Thanks (0) Thanks(0)   Quote Amateur Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 11:27am
Alright thanks. If anyone comes accross a way of doing such they might post it please.
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 4:51pm
As said, there is no way to put markup into an alt tag but you can like dpyers mentions use JS instead of the alt tag like here: http://dynamicdrive.com/dynamicindex4/imagetooltip.htm
Back to Top
Amateur View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 July 2004
Location: Ireland
Status: Offline
Points: 210
Post Options Post Options   Thanks (0) Thanks(0)   Quote Amateur Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 5:52pm
Cheers michael.
 
One question - will adding alot of text to an alt tag slow down rendering?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 6:19pm
It's javascript so it's always slow when it executes.
Shouldn't impact page redering unless you're doing something onload. Some of the javascripts for this type of thing also allow images. You'd probably want to preload them before the page renders which might slow things down some.

A search engine will look at alt image text and toss a few points your way if it's got content related stuff in it. Don't beleve they do the same for text in javascript though.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2005 at 6:27pm
You can actually break TITLE not sure about ALTs but it's probably the same, check the picture on this mod I done:

http://forums.webwiz.net/forum_posts.asp?TID=11975

I'm using TITLE to display a tooltip, and use (vbCrLf) for the breaks:

TITLE="<% Response.Write(vbCrLf & "  • " & "myToolTipText") %>"


Try:

ALT="<% Response.Write(vbCrLf & " • " & "myToolTipText") %>"

NOTE: This works great in IE but not in Firefox.

Edited by theSCIENTIST - 20 July 2005 at 6:32pm
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.