Wordpress plugins
Allow Javascript in Posts and Pages

Allow Javascript in Posts and Pages

Version : 0.0.1
Tested up to : 3.0.5
Number of download : 20295
Author : Hit Reach
Average rating : 0 / 5 on 0 votes 0 votes, 0 avg.rating

Screenshots

Allow Javascript in Posts and Pages
Allow Javascript in Posts and Pages
Allow Javascript in Posts and Pages
Allow Javascript in Posts and Pages

Allow Javascript in posts and pages adds the functionality to include Javascript in wordpress posts and pages by adding a simple shortcode [js].code.[/js] This plugin strips away the automatically generated wordpress <p> and <br/> tags but still allows the addition of your own <p> and <br/> tags by using [p] and [/p] or [br/] or [a href=’void(0)’]link[/a] Please submit bugs Usage To add the Javascript code to your post or page simply place any Javascript code inside the shortcode tags. For example: If you wanted to add content that is visible to a particular user id: For example: a simple alert [js] alert('helloWorld'); [/js] This code will cause a popup when the page is loaded. in addition, should this code not be working (for example a missing “;”) simply just change the [js] to be [js debug=1] [js debug=1] alert('helloWorld'); [/js] Some Important Notes This plugin strips away all instances of <p> and <br /> therefore code has been added so that if you wish to use tags in your output (e.g.): [js] alert(“hello <br /> world”); [/js] the < and > tags will need to be swapped for [ and ] respectively so <p> becomes [p] and </p> becomes [/p] which is converted back to </p> at runtime. these [ ] work for all tags (p, strong, em etc.). [js] alert(“hello [br /] world”); [/js] Misc Developed by Hit Reach Check out our other WordPress Plugins Version: 1.0 Support & Comments

Download now