Very, very neat.
Is there some way to do this for anyone who visits a page?
Or is it only something individuals can do for themselves?

Thank you very much for all your useful answers so far, they've been very
informative and very much appreciated!

Scott


On Thu, Mar 12, 2009 at 1:17 PM, Jim Tittsler <jtitts...@gmail.com> wrote:

>
> On Thu, Mar 12, 2009 at 19:41, Scott Newson <scott.g.new...@gmail.com>
> wrote:
> > Is there some way to do similar things for a specific page on WE?
> > Or, preferably, a page and any subpages of it?
>
> Yes.  It is just Javascript.    Base whatever you want to happen on
> the window.location.pathname property.  For example:
>
> function cleanPages() {
>  var pages = ["/Online_manual", "/Training_resource_development_for_eXe",];
>  for (var i in pages) {
>    if (window.location.pathname.indexOf(pages[i]) == 0) {
>      document.getElementById("p-logo").innerHTML='<a
> href="http://eXeLearning.org/";><img
> src="/images/thumb/4/4a/Exe_RGB_72dpi.jpg/120px-Exe_RGB_72dpi.jpg"></a>';
>    }
>  }
> }
>
> Invoke that in the runOnloadHook() and it will replace the
> WikiEducator logo with the eXe logo when you are reading the eXe
> manual (/Online_manual and its subpages, etc.) at WikiEducator.
>
> Think of this as the same sort of thing you do with Greasemonkey, only
> it will be available regardless of which browser you are using when
> you are logged in to WikiEducator.
>   http://wikieducator.org/User:JimTittsler/monobook.js
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "WikiEducator" group.
To visit wikieducator: http://www.wikieducator.org
To visit the discussion forum: http://groups.google.com/group/wikieducator
To post to this group, send email to wikieducator@googlegroups.com
To unsubscribe from this group, send email to
wikieducator-unsubscr...@googlegroups.com
-~----------~----~----~----~------~----~------~--~---

Reply via email to