Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 135089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:43:51+00:00 2026-05-11T06:43:51+00:00

Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

  • 0

Is it possible to replace javascript w/ HTML if JavaScript is not enabled on the user’s browser?

I know I can use <noscript>this displays in place of javascript</noscript>

That works fine, but it still runs the javascript.

In theory I would want this:

if javascript is enabled
  run javascript

if javascript is not enabled
  don’t run javascript and give alternative method

I am using this jQuery plugin: http://malsup.com/jquery/cycle/int2.html

When I disable javascript on safari, it displays all three of the items, all within a div. The plugin fades in each item, but with it disabled it displays all three in a row, without fading in and out like it does w/ javascript enabled.

With javascript disabled, I would want to stop it from displaying all three items at the same time. I’ll show you what it is suppose to look like and what it does when JavaScript is disabled.

Disabled view: http://i42.tinypic.com/212y1j6.png (notice them 3 stacked on top of eachother) – I want to stop that from happening since the JavaScript is disabled

Enabled view: http://i39.tinypic.com/9gwu3d.png

Here is the code for the div the items are in:

$(document).ready(function() {     $('#featured-programs-left').cycle({          fx:     'fade',          speed:  'slow',         timeout: 15000,         next:   '#next2',         prev:   '#prev2'      }); });  <div id='featured-programs-left'>  <div>     <a href='http://site.com/academics/majors/emergency_medical_technician_-_paramedic/' title='Emergency Medical Technician - Paramedic'><img src='http://site.com/images/uploads/images/emt.jpg' alt='Emergency Medical Technician - Paramedic' /></a>     <strong>Emergency Medical Technician - Paramedic</strong>     <p>This unique A.A.S. degree program, a partnership between College and Faxton-St. Luke&#8217;s Healthcare provides the paramedic student the education necessary to function in an</p>      <p><a href='http://site.com/academics/majors/emergency_medical_technician_-_paramedic/' title='Learn more about Emergency Medical Technician - Paramedic'>Learn more</a></p> </div>  <div>     <a href='http://site.com/academics/majors/travel_tourism_hospitality_events_management/' title='Travel &amp; Tourism: Hospitality &amp; Events Management'><img src='http://site.com/images/uploads/images/hospitality_event_planning.jpg' alt='Travel &amp; Tourism: Hospitality &amp; Events Management' /></a>     <strong>Travel &amp; Tourism: Hospitality &amp; Events Management</strong>     <p>This program prepares students for exciting careers in the travel and tourism industry and the hospitality and events planning field. Graduates are prepared to:<br</p>      <p><a href='http://site.com/academics/majors/travel_tourism_hospitality_events_management/' title='Learn more about Travel &amp; Tourism: Hospitality &amp; Events Management'>Learn more</a></p> </div>  <div>     <a href='http://site.com/academics/majors/fashion_buying_merchandising/' title='Fashion Buying &amp; Merchandising'><img src='http://site.com/images/uploads/images/fashion_merchandising.jpg' alt='Fashion Buying &amp; Merchandising' /></a>     <strong>Fashion Buying &amp; Merchandising</strong>     <p>This program prepares graduates for careers throughout the Fashion Industry including positions in buying, fashion merchandising, retail and wholesale sales, retail</p>      <p><a href='http://site.com/academics/majors/fashion_buying_merchandising/' title='Learn more about Fashion Buying &amp; Merchandising'>Learn more</a></p> </div>  </div> 

CSS for the div’s

#featured-programs-left img, #featured-programs-right img{     xfloat:left;     overflow:auto;     xclear:left;     xwidth:351px;     xpadding:0 5px 5px 0;     border:0; }  #featured-programs-left, #featured-programs-right {     height:625px;     float:left;     overflow:auto;     clear:left;     clear:right;     width:100%;     xborder:2px solid red; }  #featured-programs-left div, #featured-programs-right div {     xborder:1px solid purple;     overflow:auto;     clear:left;     clear:right;     width:352px;     height:345px; }  #featured-programs-left {     float:left; } 
  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:43:52+00:00Added an answer on May 11, 2026 at 6:43 am

    Somewhat like Ates’s solution, you can use Javascript to change the content for the users who have it enabled. For example, let’s say you have a fancy menu that gives Javascript users super-easy navigation, but is worthless to non-JS users. In the HTML set the display property to ‘none’ and then use JS to enable it. In your case, where you have content you don’t want to show for the non-JS users, you can just hide it by default. The downside is if the browser has JS AND CSS turned off, this won’t work. If you’re worried about that, you could use JS to insert the content.

    <html> <head>   <script>     $(document).ready(function() {       $('.jsok').show();     });   </script>   <style>     .jsok { display: none; }   </style>  </head>  <body>    <div class='jsok'><!-- content for JS users here--></div>    <div><!-- content for everyone here --></div>    <noscript><!-- content for non-js users here --></noscript>  </body>  </html> 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 173k
  • Answers 173k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As Corey points out, you'll probably need to go with… May 12, 2026 at 2:39 pm
  • Editorial Team
    Editorial Team added an answer You can directly call the program with something like "/usr/local/bin/python… May 12, 2026 at 2:39 pm
  • Editorial Team
    Editorial Team added an answer Found the solution, the problem lies in the fact that… May 12, 2026 at 2:39 pm

Related Questions

I have this javascript code below that uses jquery, it is suppoed to be
I have a form, the purpose of which is to place the currently displayed
I've been using John Resig's getStyle function from Pro JavaScript Techniques to get the
I would like to have alternate behavior during a print stylesheet on a web

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.