Page 1 of 1

If noscript show text?

Posted: Mon Aug 30, 2010 12:52 pm
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

Re: If noscript show text?

Posted: Thu Sep 02, 2010 2:51 pm
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";}