MooTools 1.2 Image Protector: dwProtector

Image protection is a hot topic on the net these days, and why shouldn’t it be? If you spent two hours designing an awesome graphic, would you want it ripped of in matter of seconds? Hell no! That’s why I’ve created an image protector class to help designers and artists protect their images. Here’s how …

Send This page to a frind Javascript Script

<script type=”text/javascript”><!– var SubjectLine=’Take a look at this web page I found, ‘+top.document.title; var BodyText=’You can see this page at: ‘+top.location.href; var Message=’ <A CLASS=contact HREF=”mailto:?SUBJECT=’+escape(SubjectLine)+’&BODY=’+escape(BodyText)+’” OnMouseOver=”status=\’Envoyer cette page &agrave; vos amis\’; return true;” TITLE=”Send your friends e-mail about this page”>Send this page<\/A>’; var MessageIE=’ <A CLASS=contact HREF=”mailto:?SUBJECT=’+(SubjectLine)+’&BODY=’+(BodyText)+’” OnMouseOver=”status=\’Envoyer cette page &agrave; vos amis\’; return …

Tiny MCE HTML editor Set Height / Width

<script language=”javascript” type=”text/javascript”> // Notice: The simple theme does not use all options some of them are limited to the advanced theme tinyMCE.init({ mode : “textareas”, height : “380”, width : “380”, theme : “advanced”, valid_elements : “a[href|target=_blank],b/strong,div[align],br,ol,li,ul,p,blockquote”, entity_encoding : “utf-8” }); </script>

Setup TinyMCE

<script language=”javascript” type=”text/javascript” src=”Scripts/editors/tiny_mce/tiny_mce.js”></script> <script language=”javascript” type=”text/javascript”> // Notice: The simple theme does not use all options some of them are limited to the advanced theme //tinyMCE.init({ // mode : “textareas”, //theme : “advanced”, //valid_elements : “a[href|target=_blank],b/strong,div[align],br,ol,li,ul,p,blockquote”, //entity_encoding : “utf-8” //}); tinyMCE.init({ mode : “textareas”, theme : “advanced”, entity_encoding : “utf-8”, content_css : “http://www.domain.gr/css/style.css”, entities …

FCK editor Greek Character

Open The fckconfig.js code: FCKConfig.AutoDetectLanguage   = true ;  FCKConfig.DefaultLanguage = ‘el’ ;  FCKConfig.ContentLangDirection   = ‘ltr’ ;  FCKConfig.EnableXHTML = true ;  FCKConfig.EnableSourceXHTML   = true ;  FCKConfig.ProcessHTMLEntities   = true ;  FCKConfig.IncludeLatinEntities   = true ;  FCKConfig.IncludeGreekEntities   = false ;  FCKConfig.FillEmptyBlocks   = true ;  FCKConfig.FormatSource = true ;  FCKConfig.FormatOutput = true ;  FCKConfig.FormatIndentator = ‘    ‘ ; code: …

Print DIV

<script> function go() { var a = window.open(”,”,’width=300,height=300′); a.document.open(“text/html”); a.document.write(document.getElementById(‘foo’).innerHTML); a.document.close(); a.print(); } </script> <div id=”foo”>This is a test</div> <input type=”button” onclick=”go()” value=”Print this Page”>