11
fbb803
Re: Loading Please Wait
  • 2005/4/20 22:26

  • fbb803

  • Just popping in

  • Posts: 14

  • Since: 2005/3/11


Quote:

ilivanov wrote:
to fbb803: And your sollution doesnt look good, it comes on the top of the page, not in the center like power-dreams.com who will see it somewhere aroung the page...

All forks who was created on the top of XOOPS show it (the loading bar) in the center of the page, no mater wich module are u trying to select, but XOOPS nope, dosent support it


The values you need to change are somewhere inside the <div> </div> tag - left and top - which determines the position of the preload message. "Left" - determines position from the left side of the screen in pixels (example left=100 will move the box 100 pixels from left, 200 will move it to 200 px from left and so on). "Top" dtermines the position from the top. Used in combination, these will put your preloader where u want it. You may need to experiment a little. I arrived at my own solution doing this by trial and error. Not an expert, just trying to help.
The best guys to explain the powerdreams script will be the ones who wrote it.



12
fbb803
Re: Loading Please Wait
  • 2005/4/17 3:32

  • fbb803

  • Just popping in

  • Posts: 14

  • Since: 2005/3/11


Great! will try your suggestion.

I did some search and here's what i came up with (maybe considered as another option):

1. in the head section of theme.html:
<SCRIPT LANGUAGE="JavaScript">

<!-- 
Begin
function clearPreloadPage() { //DOM
if (document.getElementById){
document.getElementById('prepage').style.visibility='hidden';
}else{
if (
document.layers){ //NS4
document.prepage.visibility 'hidden';
}
else { 
//IE4
document.all.prepage.style.visibility 'hidden';
}
}
}
// End -->
</SCRIPT>


2. add this line in the body tag:
<body [b][color=006600]onLoad="clearPreloadPage()[/color][/b] ;">


3. add right after above line:
<!-- start prelaod message -->
<
div id="prepage" style="position:absolute; font-family:arial; font-size:16; left:300px; 
top:70px; background-color:none; layer-background-color:none; height:100%; width:40%;"

<
table width=100%><tr><td>
<
font color="#000000">&nbsp;&nbsp;  Loading ...... Please wait.</font><br>&nbsp;&nbsp;<img src="<{$xoops_imageurl}>/images/await.gif" alt="" /></td></tr></table>
</
div>
<!-- 
end prelaod message -->


Change the appropriate elements as needed.

One note though, sometimes the preloader remains visible after the whole page is can be seen (probably as a result of other javascripts still loading images). this has been the case with my site athttp://oragonrepublic.com, particularly in the homepage - other pages worked as expected. to partly solve this, the black font color was chosen so the message would not be visible once the header part appears since the bg is also black.

Credit for the script belongs to original author(s)(modifications added). Source Website :http://www.usingit.com/



13
fbb803
Re: Loading Please Wait
  • 2005/4/17 1:12

  • fbb803

  • Just popping in

  • Posts: 14

  • Since: 2005/3/11


Trie this but it didn't work. I guess the problem is the scripts makes a call to a function, which should be included with the javascript to be inserted in theme.html.

Tried a little tweaking but I could not understand the script in the website which uses this. (http://www.power-dreams.com/xoops/)

Neat idea though since there are times when loading a page takes some time. Maybe someone can explain a little more?




TopTop
« 1 (2)



Login

Who's Online

213 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 213


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits