473,396 Members | 1,758 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,396 software developers and data experts.

using stylish to turn off input button images with css in firefox

I'm currently using the following custom Stylish style sheet in
Firefox 2.0.0.11...
*{ color: black !important ; background: none !important; background-
color: white !important }
a:link { color: gray !important }
a:visited { color: purple !important }
a:hover, a:active { color: red !important }
img {display: none !important;}
When combined with proxomitron ad blocking, it does a pretty good job
of rendering web pages in black and white with no images.

The only problem is forms with an input tag with type=image. These
images are not blocked.

There are test cases at the bottom of this page...

http://htmlhelp.com/feature/art3c.htm

Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.

You can get the Stylish plugin here...
https://addons.mozilla.org/en-US/firefox/addon/2108
Dec 10 '07 #1
9 4133
William Krick wrote:
>
The only problem is forms with an input tag with type=image. These
images are not blocked.

There are test cases at the bottom of this page...

http://htmlhelp.com/feature/art3c.htm

Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.
input[type="image"] { display: none ! important; }
Dec 10 '07 #2
William Krick wrote:
Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.
You don't need a style for that. Just use your browser's option not to
display images.
Dec 10 '07 #3
On Dec 10, 12:34 pm, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
William Krick wrote:
Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.

You don't need a style for that. Just use your browser's option not to
display images.
I could do that, but it takes a minimum of 5 clicks, plus a browser
refresh to toggle the images on and off.

With a stylish stylesheet, I can do it with 2 clicks and no refresh,
plus, I get the black & white look that I want at the same time.

There used to be a firefox plugin that added an image toggle button to
the toolbar, but it doesn't work in the current version of firefox.
Dec 10 '07 #4
On Dec 10, 12:33 pm, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
William Krick wrote:
The only problem is forms with an input tag with type=image. These
images are not blocked.
There are test cases at the bottom of this page...
http://htmlhelp.com/feature/art3c.htm
Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.

input[type="image"] { display: none ! important; }
Yep. That works.

It completely eliminates the button as one would expect.

I'm still wondering if there is there any way to force it show the alt
text instead.

Or maybe I could just make up a small black and white image with some
generic text on it and replace the image using the style sheet.

Are there any monochrome image filters that can by applied using css?
I know there used to be glowing text effects in IE that could be
applied with styling.
Dec 10 '07 #5
William Krick wrote:
On Dec 10, 12:34 pm, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
>William Krick wrote:
>>Ideally, I want to show
the alt text in place of the image but simply blocking the image would
be an improvement.
You don't need a style for that. Just use your browser's option not to
display images.

I could do that, but it takes a minimum of 5 clicks, plus a browser
refresh to toggle the images on and off.

With a stylish stylesheet, I can do it with 2 clicks and no refresh,
plus, I get the black & white look that I want at the same time.

There used to be a firefox plugin that added an image toggle button to
the toolbar, but it doesn't work in the current version of firefox.
http://chrispederick.com/work/web-developer/
Web Developer

One click and off go images...
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Dec 10 '07 #6
Jonathan N. Little wrote:
William Krick wrote:
>There used to be a firefox plugin that added an image toggle button
to the toolbar, but it doesn't work in the current version of
firefox.

http://chrispederick.com/work/web-developer/
Web Developer

One click and off go images...
There is also the PrefBar, which is equally as effective for en/disable
of images, colors, fonts (and UA string, Java/JavaScript/Flash and lots
more). Still works fine in all the current Mozilla products.
http://prefbar.mozdev.org/

--
-bts
-Motorcycles defy gravity; cars just suck
Dec 10 '07 #7
Harlan Messinger wrote:
William Krick wrote:
>>
The only problem is forms with an input tag with type=image. These
images are not blocked.

There are test cases at the bottom of this page...

http://htmlhelp.com/feature/art3c.htm

Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image
would be an improvement.

input[type="image"] { display: none ! important; }
Please can you give me a link to some doc where this syntax is defined? I mean
syntax
element[type=....]

I have some docs for CSS1 and CSS2 but I never seen this.
Thanks.
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your
mail from another non-spammer site please.)

Please reply to <petr AT practisoft DOT cz>

Dec 11 '07 #8
Petr Vileta wrote:
Harlan Messinger wrote:
>William Krick wrote:
>>>
The only problem is forms with an input tag with type=image. These
images are not blocked.

There are test cases at the bottom of this page...

http://htmlhelp.com/feature/art3c.htm

Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image
would be an improvement.

input[type="image"] { display: none ! important; }
Please can you give me a link to some doc where this syntax is defined?
I mean syntax
element[type=....]

I have some docs for CSS1 and CSS2 but I never seen this.
Thanks.
http://www.w3.org/TR/CSS21/selector....bute-selectors

IE6 doesn't recognize these but IE7 and Firefox 2 do.
Dec 11 '07 #9
On Dec 11, 12:21 am, Harlan Messinger
<hmessinger.removet...@comcast.netwrote:
Petr Vileta wrote:
Harlan Messinger wrote:
William Krick wrote:
>The only problem is forms with an input tag with type=image. These
images are not blocked.
>There are test cases at the bottom of this page...
>>http://htmlhelp.com/feature/art3c.htm
>Is there any way to block these through css? Ideally, I want to show
the alt text in place of the image but simply blocking the image
would be an improvement.
input[type="image"] { display: none ! important; }
Please can you give me a link to some doc where this syntax is defined?
I mean syntax
element[type=....]
I have some docs for CSS1 and CSS2 but I never seen this.
Thanks.

http://www.w3.org/TR/CSS21/selector....bute-selectors

IE6 doesn't recognize these but IE7 and Firefox 2 do.

This is what I've settled on for the moment...

input[type="image"]{ opacity: 0.25 !important }

It's not greyscale, but it fades out the button images enough that
they don't distract from the rest of the page while in black & white
mode, while still keeping them usable.
Dec 11 '07 #10

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

Similar topics

0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
7
by: C.Joseph Drayton | last post by:
I have a problem that I am hoping someone can help me with. First let me describe the problem. I have an HTML form that in one field has an onBlur call to a JavaScript function. When you exit the...
16
by: Ian Davies | last post by:
Hello Needing help with a suitable solution. I have extracted records into a table under three columns 'category', 'comment' and share (the category column also holds the index no of the record...
2
by: OBAFGKM_RNS | last post by:
Let's say I have a Javascript function that loops over and over. In that function i have it alternating images on a button this way: if(var==0){ var myHTML = "<input type='button'...
1
by: Arpit Nagar | last post by:
Hi... I am creating a dummy project for collage. Here I had choosen my project as Jewelleryshoping. Now the scenerio is like that thier are jewellry item which I had display in table format with...
1
by: Manil | last post by:
I usually have no problem with Firefox, but here is a rare instance of IE displaying a table with image slices correctly and Firefox adding space where I seemingly have none. Is there anything I can...
1
by: javediq143 | last post by:
Hi All, This is my first post in this forum. I'm developing a CMS for my latest website. This CMS is also in PhP & MySQL. I'm done with the ADD section where the Admin can INSERT new records in...
5
by: thatcollegeguy | last post by:
Below are my 3php and 2js files. I create a table using ajax/php and then want to change the values in the tables add(+ number for teamid) id's for each specific td in the table. I don't know...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.