PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Tue Aug 04, 2020 3:25 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: If noscript show text?
PostPosted: Mon Aug 30, 2010 12:52 pm 
Offline
Forum Contributor

Joined: Thu Jul 20, 2006 11:00 am
Posts: 434
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


Top
 Profile  
 
PostPosted: Thu Sep 02, 2010 2:51 pm 
Offline
Forum Commoner

Joined: Thu Apr 01, 2010 11:36 am
Posts: 39
you can use php to check javascript enabled:

Syntax: [ Download ] [ Hide ]

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

<script></script>

}
else { echo "javas not enabled";}

 


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group