SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable/Enable CSS with a link

    I'm trying to figure out how I can make a link onto my website that enables the CSS and when the user clicks the link the HTML goes straight to (text) only. How can you do this? http://career.kent.edu/home/employer/index.cfm
    Example - is on the right top hand side.
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/


  2. #2
    SitePoint Addict fattyjules's Avatar
    Join Date
    Dec 2005
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this; How to create a CSS style switcher.

    The Kent State example you supplied does it differently (they parse a URL through a script), but style switching should meet your needs. Just switch to a stylesheet with no (or minimal) rules.

    It seems like a strange thing to do - may I ask why? (mobile?)
    Last edited by fattyjules; Apr 6, 2009 at 20:43.

  3. #3
    billycundiff{float:left;} silver trophybronze trophy RyanReese's Avatar
    Join Date
    Oct 2008
    Location
    Whiteford, Maryland, United States
    Posts
    13,564
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You can use PHP to determine if a $_GET string is present, if it is then load the stylesheet..are you trying to imitate lynx?
    Twitter-@Ryan_Reese09
    http://www.ryanreese.us -Always looking for web design/development work

  4. #4
    SitePoint Wizard silver trophybronze trophy
    Join Date
    Jul 2008
    Location
    New York, NY
    Posts
    1,432
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are a jQuery advocate
    http://www.kelvinluck.com/assets/jquery/styleswitch/

    You can swap stylesheets using a basic.css that would only give minor styling instead of css-layout

  5. #5
    SitePoint Wizard Blake Tallos's Avatar
    Join Date
    Jun 2008
    Location
    Cuyahoga Falls, Ohio.
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cooper.semantics View Post
    If you are a jQuery advocate
    http://www.kelvinluck.com/assets/jquery/styleswitch/

    You can swap stylesheets using a basic.css that would only give minor styling instead of css-layout
    Cooper Semantics - I can always count on you. THANK YOU! This is perfect to because im starting to learn JS & jQuery.
    Blake Tallos - Software Engineer for Sanctuary
    Software Studio, Inc. C# - Fanatic!
    http://www.sancsoft.com/



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •