Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Java Script] analiza skryptu
grzehotnik
post
Post #1





Grupa: Zarejestrowani
Postów: 76
Pomógł: 0
Dołączył: 8.01.2009

Ostrzeżenie: (0%)
-----


Witam
Chciałbym się dowiedzieć jak wywołać poniższy skrypt w php.

Kod
function SwitchImg()
            { //start
              var rem, keep=0, store, obj, switcher=new Array, history=document.Data;
                for (rem=0; rem < (SwitchImg.arguments.length-2); rem+=3) {
                    store = SwitchImg.arguments[(navigator.appName == 'Netscape')?rem:rem+1];
                if ((store.indexOf('document.layers[')==0 && document.layers==null) ||
                    (store.indexOf('document.all[')==0 && document.all==null))
                     store = 'document'+store.substring(store.lastIndexOf('.'),store.length);
                     obj = eval(store);
                if (obj != null) {
                      switcher[keep++] = obj;
                  switcher[keep++] = (history==null || history[keep-1]!=obj)?obj.src:history[keep];
                  obj.src = SwitchImg.arguments[rem+2];
              } }
              document.Data = switcher;
            } //end

Dzięki
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 04:48