Имя пользователя:
Пароль:
 

Название темы: Мощь DHTML
Показать сообщение отдельно
mar mar вне форума

Аватара для mar

just mar


Moderator


Сообщения: 3906
Благодарности: 165

Профиль | Отправить PM | Цитировать


Igor_I
имеется в виду это? ( http://static.php.net/www.php.net/userprefs.js )
PHP код: Выделить весь код

// Restore the last search as stored in a cookie

function searchHistory()
{
    
// Something is already typed in, do not try to overwrite it
    
if (document.forms["topsearch"].pattern.value.length 0) {
        return;
    }

    
// Try to get the lastsearch cookie
    
lastSearch getCookie("LAST_SEARCH");
    if (
typeof(lastSearch) == "string") {
        
        
// Get pattern and show information from cookie
        
option  lastSearch.substr(0lastSearch.indexOf(","));
        
pattern lastSearch.substr(lastSearch.indexOf(",") + 1);
        
        
// Set pattern in form
        
document.forms["topsearch"].pattern.value pattern;
        
        
// Set the last selected search method in the dropdown
        
for (var 0document.forms["topsearch"].show.lengthi++) {
            if (
document.forms["topsearch"].show[i].value == option) {
                
document.forms["topsearch"].show[i].selected true;
                break;
            }
        }
    }



Отправлено: 00:10, 21-12-2005 | #21

Название темы: Мощь DHTML