[PSF-Volunteers] [pydotorg-www] International Symbol - request for addition

grubert at users.sourceforge.net grubert at users.sourceforge.net
Tue Apr 27 13:34:07 CEST 2010


>
> Urgh... JS without jQuery feels so clunky... :)
>
> Georg

but it is only 20 lines of code and the request did not mention "add a lot 
of other things to www.python.org"

anyway the real questions are

* does it work on ie
* are the languages fixxed or dynamic or configurable (halfdynamic)
* should the link below change too ? maybe not, because it is the
   entry point, the toc.

cheers


On Tue, 27 Apr 2010, Georg Brandl wrote:

> Am 26.04.2010 20:47, schrieb grubert at users.sourceforge.net:
>> this way (i am javascript ignorant)
>>
>> <html>
>> <head>
>> <script type="text/javascript">
>>      var lang_idx = 0;
>>      var Languages = new Array(
>>                  "Afrikaans", "Ahmara", "Algerian"
>>              );
>>      function language_rotator( Element ) {
>>          Element = document.getElementById("lang-img-ref");
>>          if (Element) {
>>              lang_idx += 1;
>>              if (lang_idx >= Languages.length) {
>>                  lang_idx = 0;
>>              }
>>              Element.title = Languages[lang_idx];
>>              Element.href =
>> "http://wiki.python.org/moin/"+Languages[lang_idx]+"Language";
>>          }
>>      }
>> </script></head>

-- 


More information about the PSF-Volunteers mailing list