Connecting Tech Pros Worldwide Help | Site Map

Images & Alt tags

  #1  
Old October 27th, 2008, 01:25 PM
UKuser
Guest
 
Posts: n/a
Hi Folks,

Is there a way, I can hide images through CSS and then display the alt
tags?

I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?

Any help would be great.

Many thanks

A
  #2  
Old October 27th, 2008, 01:55 PM
rf
Guest
 
Posts: n/a

re: Images & Alt tags



"UKuser" <spidercc21@yahoo.co.ukwrote in message
news:4b5b7a1d-be65-4977-b2de-db45009a35b8@d45g2000hsc.googlegroups.com...
Quote:
Hi Folks,
>
Is there a way, I can hide images through CSS and then display the alt
tags?
No.
Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
Why do you want to do this?


  #3  
Old October 27th, 2008, 02:05 PM
Johannes Koch
Guest
 
Posts: n/a

re: Images & Alt tags


UKuser schrieb:
Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
Something like

content: attr(alt);

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
  #4  
Old October 27th, 2008, 03:25 PM
Harlan Messinger
Guest
 
Posts: n/a

re: Images & Alt tags


UKuser wrote:
Quote:
Hi Folks,
>
Is there a way, I can hide images through CSS and then display the alt
tags?
There are no alt tags in HTML. Surely you've never seen <alt>. I assume
you mean the alt attribute.
Quote:
I want to create a Javascript free CSS/Cookies approach to doing text-
only. I've set the style for images display:none (I know it still
requires CSS) and then don't display my main stylesheet. But is there
a way to display the alt tags if a certain attribute is applied to
images?
I don't understand what you mean by "doing text-only", or why you are
including images in your page if you want text, and not images, to
appear. Can you clarify what you're looking for?
  #5  
Old October 27th, 2008, 03:45 PM
Johannes Koch
Guest
 
Posts: n/a

re: Images & Alt tags


Harlan Messinger schrieb:
Quote:
I don't understand what you mean by "doing text-only", or why you are
including images in your page if you want text, and not images, to
appear. Can you clarify what you're looking for?
Maybe he OP wants to create something like

webdeveloper extension -Images -Replace Images With Alt Attributes

--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
  #6  
Old October 27th, 2008, 03:45 PM
Harlan Messinger
Guest
 
Posts: n/a

re: Images & Alt tags


Johannes Koch wrote:
Quote:
Harlan Messinger schrieb:
Quote:
>I don't understand what you mean by "doing text-only", or why you are
>including images in your page if you want text, and not images, to
>appear. Can you clarify what you're looking for?
>
Maybe he OP wants to create something like
>
webdeveloper extension -Images -Replace Images With Alt Attributes
So that just turns off images as though you'd used the browser's
built-in UI to do that. Correct, it can't be done without Javascript; it
could be done in CSS with hover, but only for as long as the hover
continued.
  #7  
Old October 27th, 2008, 03:45 PM
Harlan Messinger
Guest
 
Posts: n/a

re: Images & Alt tags


Harlan Messinger wrote:
Quote:
Johannes Koch wrote:
Quote:
>Harlan Messinger schrieb:
Quote:
>>I don't understand what you mean by "doing text-only", or why you are
>>including images in your page if you want text, and not images, to
>>appear. Can you clarify what you're looking for?
>>
>Maybe he OP wants to create something like
>>
>webdeveloper extension -Images -Replace Images With Alt Attributes
>
So that just turns off images as though you'd used the browser's
built-in UI to do that. Correct, it can't be done without Javascript; it
could be done in CSS with hover, but only for as long as the hover
continued.
I mean, not directly from the alt text; the text would have to appear in
an adjacent element that's hidden by default.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse errors after intalling JBook lolamk answers 6 June 28th, 2007 09:56 PM
After 1 hour web page (.jsp) expires on tomcat 5.5 puneit1234 answers 4 June 4th, 2007 06:51 AM
Links & Pictures Mikaël Hautin answers 2 July 23rd, 2005 09:24 PM
chat with you friends |-|erc answers 0 July 17th, 2005 06:28 AM