Free 'no javascript message' script
Link to this article!If you know what you want, then on this page you will find a script you can use now, right now. So, what do you need? This script can do wonders for your web site. Look no further, if you want a free 'no javascript message' script.
Author: AptArticle.com
Description: This is a JavaScript that notifies the user to enable JavaScript, because his (or her) JavaScript is disabled.
Method: To demonstrate how this 'no JavaScript' script works, we're going to use an email address obfuscator script from here. Why? Because the latter relies on JavaScript when it produces an email address such as your.name@example.com.
Demo: In order to show what this script can do for you...
Step 1: Ensure the 'your.name@example.com' email address is displayed in the following field:
Step 2: Go to the 'settings' page of your own web browser (Chrome, Opera, Firefox, etc.) and disable JavaScript.
Step 3: Simply refresh this page. When you do, the email address in 'step 1' will be replaced with the following 'no javascript message':
Please enable JavaScript, if you want to view the email address!
Step 4: Now that we have demonstrated that our 'no JavaScript message' is working, you need go back to the 'settings' of your own web browser (Chrome, Safari, etc.), and re-enable the JavaScript.
Directions:
Step 1: Copy the following code, and add it to the 'CSS' file of your web site.
#ShowDemo{
font-family: Arial; /* may edit */
font-size: 15px; /* may edit */
font-color: #000000; /* may edit */
position: relative;
width: 400px; /* may edit */
height: 200px; /* may edit */
background-color: #F1F1F1; /* may edit */
overflow: hidden;
border: 1px solid #0000A0; /* may edit */
border-left: 10px solid #0000A0; /* may edit */
padding-left: 30px; /* may edit */
}
.txt13 {
font-family: Arial; /* may edit */
font-weight: bold; /* may edit */
font-size: 15pt; /* may edit */
color: #FF0000; /* may edit */
}
Step 2: Copy the following code, and add it to the 'body' section of your web page.
<script>
var d="me"; /* may edit */
var c="na"; /* may edit */
var b="ur"; /* may edit */
var a="yo"; /* may edit */
var z="example.com"; /* may edit */
/******* DO NOT EDIT BELOW THIS LINE ************/
document.write('<a href="ma'+'i'+'lt'+'o:'+a+b+'.'+c+d+'@'+z+'">');
document.write(a+b+'.'+c+d+'@'+z+'</a>');
</script>
<noscript>
<div class="txt13">
Please enable JavaScript, if you want to view the email address!
</div>
/*********************************************************
* Copyright © AptArticle.com (http://aptarticle.com)
* This notice MUST stay intact for legal use.
* Visit http://aptarticle.com/ for this script and hundreds more.
*********************************************************************/
</noscript>
Step 3: Carefully edit the above code, so that it produces the 'no JavaScript message' as well as your own email address. However, in your own interest, do limit the editing to the lines we marked /* may edit */.
Carefully edit the code you copied in step 1.
Replace "yo" with the "first half of your first name".
Replace "ur" with the "second half of your first name".
Replace "na" with the "first half of your last name".
Replace "me" with the "second half of your last name".
Replace "example.com" with the "name of your email provider".
Step 4: Enjoy it! Have fun using it!
Tell a friend!