473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Images & Alt tags

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
Oct 27 '08 #1
6 2419
rf

"UKuser" <sp********@yahoo.co.ukwrote in message
news:4b**********************************@d45g2000 hsc.googlegroups.com...
Hi Folks,

Is there a way, I can hide images through CSS and then display the alt
tags?
No.
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?
Oct 27 '08 #2
UKuser schrieb:
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.)
Oct 27 '08 #3
UKuser wrote:
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.
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?
Oct 27 '08 #4
Harlan Messinger schrieb:
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.)
Oct 27 '08 #5
Johannes Koch wrote:
Harlan Messinger schrieb:
>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.
Oct 27 '08 #6
Harlan Messinger wrote:
Johannes Koch wrote:
>Harlan Messinger schrieb:
>>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.
Oct 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Michael Kalina | last post by:
Hi! On my website (http://michaelsremarks.blogspot.com) I use a so called flickr-badge. That is some sourcecode that takes a picture out of my flickr-gallery and puts it onto my website. Now...
5
by: Ben Long | last post by:
Hi All, A partner of mine has been charged with identifying a performance / load problem currently experienced on one of our websites. I'm thinking it may be a combination of HTML formatting...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
2
by: Hitesh | last post by:
Hi, I am getting the response from another Website by using the HttpHandler in my current site. I am getting the page but all the images on that page are not appearing only placeholder are...
10
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images....
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
2
by: mouseit101 | last post by:
Hi, I'm writing a script that would (hopefully) search google images for whatever, and then return a list of URLs for the image. Right now I have: $dom = new DomDocument(); $url =...
7
by: John Nagle | last post by:
I've been parsing existing HTML with BeautifulSoup, and occasionally hit content which has something like "Design & Advertising", that is, an "&" instead of an "&amp;". Is there some way I can get...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.