jAZZMAN
05-10-2007, 17:04
Witam,
Preloader działa na mojej stronie pod joomla_1.0.13_JIE-pl-utf.zip. Doskonale zgrywa się z Multithumb. Nie jest to mój projekt.
Na stronie
http://forum.mamboserver.com/showthread.php?t=74314 wyczytać można:
1. Wyedytuj plik index.php Twojej templarki.
2. Tuż przed</head> dodaj kod:
<script type="text/javascript">
<!-- Begin
function hideLoading() {
document.getElementById('pageIsLoading').style.dis play = 'none'; // DOM3 (IE5, NS6) only
}
// End -->
</script>3. Tuż po <body> dodaj kod:
<div id="pageIsLoading" style="position: absolute; display: block; padding-left: 44px; padding-right: 12px; width: auto; height: 46px; line-height: 46px; border: 1px solid #890000; color: #000000; font-weight: bold; background-color: #e5e5e5; background-image: url(http://designformambo.com/templates/d4m_allnew2006/images/loadingcircle.gif); background-position: 6px center; background-repeat: no-repeat;">
<script type="text/javascript">
var window_width;
var window_height;
if( typeof( window.innerWidth ) == 'number' ) {
window_width = window.innerWidth;
window_height = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
window_width = document.documentElement.clientWidth;
window_height = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
window_width = document.body.clientWidth;
window_height = document.body.clientHeight;
}
var left = Math.round((window_width - 200) / 2);
var top = Math.round(((window_height - 46) / 3) + 46);
document.getElementById('pageIsLoading').style.lef t = left+'px';
document.getElementById('pageIsLoading').style.top = top+'px';
</script>
Loading... Please wait...
</div>gdzie http://designformambo.com/templates/d4m_allnew2006/images/loadingcircle.gif to adres do pliku ukazującego postęp ładowania
4. Tuż przed </body> dodaj kod:
<script type="text/javascript">
if (window.addEventListener) {
window.addEventListener('load', hideLoading, false);
} else if (window.attachEvent) {
var r = window.attachEvent("onload", hideLoading);
} else {
hideLoading();
}
</script>
Preloader działa na mojej stronie pod joomla_1.0.13_JIE-pl-utf.zip. Doskonale zgrywa się z Multithumb. Nie jest to mój projekt.
Na stronie
http://forum.mamboserver.com/showthread.php?t=74314 wyczytać można:
1. Wyedytuj plik index.php Twojej templarki.
2. Tuż przed</head> dodaj kod:
<script type="text/javascript">
<!-- Begin
function hideLoading() {
document.getElementById('pageIsLoading').style.dis play = 'none'; // DOM3 (IE5, NS6) only
}
// End -->
</script>3. Tuż po <body> dodaj kod:
<div id="pageIsLoading" style="position: absolute; display: block; padding-left: 44px; padding-right: 12px; width: auto; height: 46px; line-height: 46px; border: 1px solid #890000; color: #000000; font-weight: bold; background-color: #e5e5e5; background-image: url(http://designformambo.com/templates/d4m_allnew2006/images/loadingcircle.gif); background-position: 6px center; background-repeat: no-repeat;">
<script type="text/javascript">
var window_width;
var window_height;
if( typeof( window.innerWidth ) == 'number' ) {
window_width = window.innerWidth;
window_height = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
window_width = document.documentElement.clientWidth;
window_height = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
window_width = document.body.clientWidth;
window_height = document.body.clientHeight;
}
var left = Math.round((window_width - 200) / 2);
var top = Math.round(((window_height - 46) / 3) + 46);
document.getElementById('pageIsLoading').style.lef t = left+'px';
document.getElementById('pageIsLoading').style.top = top+'px';
</script>
Loading... Please wait...
</div>gdzie http://designformambo.com/templates/d4m_allnew2006/images/loadingcircle.gif to adres do pliku ukazującego postęp ładowania
4. Tuż przed </body> dodaj kod:
<script type="text/javascript">
if (window.addEventListener) {
window.addEventListener('load', hideLoading, false);
} else if (window.attachEvent) {
var r = window.attachEvent("onload", hideLoading);
} else {
hideLoading();
}
</script>