[Pmwiki-users] include javascript in wiki page
mtra
mtra
Sat Nov 22 19:00:20 CST 2003
hi,
I want to include Java script in wiki page. ie i want a random picture
for each refresh.
after several search i've found nothing on
http://www.pmichaud.com/wiki/PmWiki.
I'm not a programmer but i try this and it works ! in local.php :
$ScriptPath = 'http://your.domain.com/pmwiki/jscript';
$jscript = array ( "/jscript:($UrlPathPattern)/" => "<script
src='$ScriptPath/$1' type='text/javascript'></script>");
$InlineReplacements = array_merge_recursive ($InlineReplacements,
$jscript);
create a myscript.js, then just insert jscript:myscript.js in wiki
page..
i'm looking for a better solution, any idea?
________________________________________________________
mtra
________________________________________________________
More information about the pmwiki-users
mailing list