We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Simple Page Preloader; By godkillah
Topic Started: Jan 23 2010, 12:51 AM (119 Views)
Reid
Member Avatar
È una trappola!

This topic has been moved from our official support board.

Originally posted by: godkillah
Simple Page Preloader
 
i kinda disliked the way codes show up slowly,
like you first see the menu normal and than suddenly theres a link added
i thought a preloader might stop that problem
this code shows a replacement untill the page is fully loaded
the replacement is just html for the admin to edit to his or her desires

Preview: http://z9.invisionfree.com/Preloader/index.php

above <% BOARD HEADER %>
 
<div id="tehLoader">
<noscript><hr><h2>uhoh, you have javascript disabled</h2>
<b>In order to to access our community javascript is required, please enable javascript</b><hr>

</noscript>
<h3>Loading... please wait</h3>

</div><div id="tehBoard" style="display:none">
at bottem of footer
 
</div><script>
/*simple page preloader
by godkillah
phantom-designs.net*/
window.onload=function(){
document.getElementById("tehBoard").style.display='block'
document.getElementById("tehLoader").style.display='none'
}
</script>


red is the replacement html
the replacement requires javascript to get removed and to show up the real page, the blue part is for people who got javascript disabled to notify them
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Codes & Modifications · Next Topic »
Add Reply