If noscript show text?

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

If noscript show text?

Post by thiscatis »

Hi phpdn'ers

I'm using jQuery & innerFade to display a slideshow in a div.
When I test it with javascript disabled it just shows the images under/next to eachother obiously.
Is there a way to just display some 'Javascript disabled' tekst instead of the images if that's the case?
I've tried it with the <noscript> tag but no luck.


Greetings,

thiscatis
wurdup
Forum Commoner
Posts: 39
Joined: Thu Apr 01, 2010 11:36 am

Re: If noscript show text?

Post by wurdup »

you can use php to check javascript enabled:

Code: Select all


$results = get_browser();
if ($results["javascript"] == 1) {

<script></script>

}
else { echo "javas not enabled";}

Post Reply