Показать сообщение отдельно
  #2 (permalink)  
Старый 28.09.2011, 20:19
Аватар для Sadist_dead
Профессор
Отправить личное сообщение для Sadist_dead Посмотреть профиль Найти все сообщения от Sadist_dead
 
Регистрация: 08.08.2011
Сообщений: 191

Решил задачу всем спасибо
присоединил файл

function include( filename ) {	// The include() statement includes and evaluates the specified file.
	// 
	// +   original by: mdsjack ([url]http://www.mdsjack.bo.it[/url])
	// +   improved by: Legaev Andrey
	// +   improved by: Kevin van Zonneveld ([url]http://kevin.vanzonneveld.net[/url])
	// +   improved by: Michael White ([url]http://crestidg.com[/url])
	// %		note 1: Force Javascript execution to pause until the file is loaded. Usually causes failure if the file never loads. ( Use sparingly! )

	var js = document.createElement('script');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src', filename);
	js.setAttribute('defer', 'defer');
	document.getElementsByTagName('HEAD')[0].appendChild(js);

	// save include state for reference by include_once
	var cur_file = {};
	cur_file[window.location.href] = 1;

	if (!window.php_js) window.php_js = {};
	if (!window.php_js.includes) window.php_js.includes = cur_file;
	if (!window.php_js.includes[filename]) {
		window.php_js.includes[filename] = 1;
	} else {
		window.php_js.includes[filename]++;
	}

	return window.php_js.includes[filename];
}

а после
onComplete : написал
include ('blocks/bd.php')
Ответить с цитированием