New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Change style sheet by javascript


Post Reply New Thread Subscribe

 
Thread Tools
michelangelo

 
michelangelo's Avatar
 
Member Since: Apr 24, 2008
Location: West of Paris
Posts: 84
michelangelo is on a distinguished road
Mac Specs: MacBookPro, OS 10.9.4, iMac, OS 10.9.4, iPhone iOS 10.7.2, iPad iOS 10.7.2

michelangelo is offline
On the website, we want to have "screen view" for viewing and "print view" for printing.

In the past and when floated objects are located on the webpage, we prepare a pdf file for that.

When no floated objects appear on the page, we want to use instead as "print view" an html view of the same page (same.html file) to reduce work and footprint on the hosting server. In other words, the "print view" is a reliable screen view of what will be printed if we print the "print view" page using the printer

We access the print view via a link called 'print view" which opens a reduced size pop-up window with a degradable javascript

The way the site is programmed today, two stylesheets exist: a standard one for screen viewing called "styles.css" and a special one for print called styles_print.css"

The print view is accessed throug a copy of the original html file "original.html" called original_print.html" and containing a link modified to point to "styles_print.css"

This is cumbersome. Could I simplify this with javascript (or else) to use only one html file (the original.html)

Example page: see <http://tinyurl.com/59m7ar>

TIA

-- Michelangelo
http://abeille-cyclotourisme.fr/
MacBookPro, OS 10.9.4, iMac, OS 10.9.4, iPhone iOS 7.1.2, iPad iOS 7.1.2, plenty of other useful stuff
QUOTE Thanks

Post Reply New Thread Subscribe


« Do OS X users have issues accessing phpBB3 based forums? | iweb has disappeared »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Javascript Image Change FinnIII Web Design and Hosting 6 04-19-2008 07:45 AM
change dock style? ricecook OS X - Operating System 5 12-04-2007 11:21 PM
Are there any settings so I can change these things back to 10.4 style? mynameis OS X - Operating System 6 11-04-2007 09:03 AM
default app change not sticking apostrophe OS X - Operating System 0 09-09-2006 09:00 AM
Javascript and Frames problem in Safari HarrySpier Web Design and Hosting 3 11-09-2004 04:47 PM

All times are GMT -4. The time now is 12:29 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?