473,386 Members | 2,050 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,386 software developers and data experts.

onclick CSS change

Hi All,

I have two buttons on my web page that need to print the content with
or without images.

I want to use CSS to determine what is and isnt printed:

How can I change which print.css is loaded depending on which button is
clicked? Or how can I add a new line into my existing CSS: img
{display:none;}

Thanks,
Mark

Jul 23 '05 #1
1 1677

Several ways, the simplest is possible just addressing the LINK element
loading the .css file, <link id="CSSFILE" href="" rel="stylesheet"
type="text/css"> ..
document.getElementById('CSSFILE').href='YOURFILEN AMEHERE.css'; upon some
event.

Danny
On Sun, 19 Jun 2005 07:45:36 -0700, Cuperman <ma**@liquidjelly.co.uk>
wrote:
Hi All,

I have two buttons on my web page that need to print the content with
or without images.

I want to use CSS to determine what is and isnt printed:

How can I change which print.css is loaded depending on which button is
clicked? Or how can I add a new line into my existing CSS: img
{display:none;}

Thanks,
Mark


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Jul 23 '05 #2

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

Similar topics

3
by: Catherine Lynn Smith | last post by:
I am creating a webpage with dhtml <DIV> layers and I want a link on one layer to modify the content on another but I seem to keep running into errors. Basically I create a layer in the middle...
5
by: kj | last post by:
Is there a way to dynamically (e.g. upon onClick) change the bgColor attribute of a table cell? I tried cell.setAttribute("bgColor", someColor), where someColor was a string of the form "#RRGGBB",...
1
by: Franck | last post by:
Hi, is it possible to change datagrid cell backcolor when user click on it ? Thks for help.
2
by: Arielle | last post by:
Okay I've been wracking my brain all morning trying to figure this one out. It seems like to me it -should- work so kudos for anyone who can tell me what I'm doing wrong. <html> <head> <style...
7
by: prash.marne | last post by:
Hello, I have a simple form <form method="POST"> <select name="activity"> <option value="0">None</option> <option value="M" onclick="popup_onclick()">Select Multiple</option> <option...
3
by: printline | last post by:
Hi' I have a little problem with the onclick event. I have an image that i use as a button. When i click this image/button some text appears and a new image/button also appears. when i then click...
1
by: =?Utf-8?B?WmVsamtv?= | last post by:
Hello! I am new in programing and I have this problem: I must on button5_Click move current form. The code of form is: using System; using System.Collections.Generic; using...
1
by: sainak | last post by:
I need to know the javascript code for the following action:when I select a radio button a listbox should be made visible dynamically,otherwise it should be in invisible
4
by: samslists | last post by:
Hi... I've seen code which changes a paragraph into a textarea (to allow it to be edited)...by creating a brand new text area, inserting that into the dom at the right place, and deleting the...
3
by: prabhuaradhan | last post by:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.