Sitex

Sitex (Simple Text) is a module for Joomla! 1.5 that outputs plain text content on the front-end without any filtering.

It is a module that helps webmasters output plain text, HTML, JavaScript or other types of content to the front-end.

 

Examples

 

Popup window

This script opens a popup window with an image:

<a href="javascript:void(0)"
onclick="window.open('images/stories/large_image.jpg', '',
'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes
,width=500,height=450')">
<img src="images/stories/small_image.jpg" alt="My image" />
</a>

 


 

Display current date

This script displays a date like "Thursday 1, January 2009":

<script type="text/javascript">
// <![CDATA[
var weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday",
"Friday", "Saturday"];
var months = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"];
var dt = new Date();
document.writeln(weekdays[dt.getDay()] + " " + dt.getDate() + ", " + months[dt.getMonth()] + " " + dt.getFullYear())
// ]]>
</script>

 


 

Display random image

This script displays an image from a group of 5 images in a random order:

<script type="text/javascript">
// <![CDATA[
var idx = Math.floor(5 * Math.random()) + 1;
document.writeln('<img src="images/stories/image' + idx + '.jpg" alt="Image" />');
// ]]>
</script>

 


 

Email obfuscation

This script displays an email link in a way that makes it hard for email miners to read:

<script type="text/javascript">
// <![CDATA[
document.writeln('<a href="mai'+'lto:em'+'ail@'+'example.' +'com">Email me<'+'/a>');
// ]]>
</script>
     
Download Sitex v1.0

Compatibility: Joomla!™ 1.5
License: GNU/GPLv2

Sitex v1.0 for Joomla! 1.5

Sitex v1.0 Manual

(C)2004-2010 Creative Pulse, Greece. All rights reserved. Site map | News | Contact us