Hi guys,
Today I'll explain how to use alaa's jquery_bidi in mediawiki
First: you have to get jquery and jquery_bidi
Second: you will put the js files on the style directory
Third and Last: Edit the style itself.
First: get the javascript files
dont forget to rename the jquery-1.2.6.js --> jquery.js
and from jquery_bidi get only this file --> jquery.bidi.js
Second: Put the files on the style directory
the default style directory is
put the two files there
Third: edit the style
edit this file
add the following lines before body in the head of the html
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.js"></script>
<script type="text/javascript" src="<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/jquery.bidi.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("address, blockcode, blockquote, h1, h2, h3, h4, h5, h6, p, pre, li, dt, dd, ul, ol, dl").filter(":not([dir])").bidi();
});
</script>
that's all
have a nice wiki :)