The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

HTML Coding Question

View previous topic View next topic Go down

In progress HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 3:32 am

Hello i Have this code bu the loading image stays on the screen and does not fade anyone have a idea why?

Overall_header find </ head> Then write the following code placed on top
Code:
<style>#loading {
background: #000 url(http://i41.tinypic.com/j92cy8.gif) no-repeat center center;
height: 50px;
width: 50px;
position: fixed;
left: 50%;
top: 50%;
margin: -25px 0 0 -25px;
z-index: 1000;
border-radius: 5px;
} </style><script>
jQuery(window).load(function(){
jQuery('#loading').fadeOut(2000);
});
</script>

Find <body>
paste this underneath.

Code:
<div id="loading"></div>

maybe someone can help e sort this out.

thanks.

Regards
FrOsTyXi

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: HTML Coding Question

Post by _Twisted_Mods_ on January 2nd 2015, 3:51 am

try placing
Code:
<div id="loading"></div>
above <script>


Code:
<style>#loading {
background: #000 url(http://i41.tinypic.com/j92cy8.gif) no-repeat center center;
height: 50px;
width: 50px;
position: fixed;
left: 50%;
top: 50%;
margin: -25px 0 0 -25px;
z-index: 1000;
border-radius: 5px;
} </style>
<div id="loading"></div>
<script>
jQuery(window).load(function(){
jQuery('#loading').fadeOut(2000);
});
</script>

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 4:15 am

Nope still the same loading image stays center of the screen lol Sometime you just want a hammer haha

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: HTML Coding Question

Post by Ange Tuteur on January 2nd 2015, 4:38 am

It seemed to work fine for me. I'm gonna go out on a limb and say it's because something is throwing an error on your forum.

Apparently widget is null.

Code:
        jQuery(window).on('load', function () {
            var currentValue = document.getElementById(widget).innerHTML;
            sessionStorage.setItem('online_staff', currentValue)
        })

It's like a train wreck, something throws an error and everything goes with it. Dawa

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 4:47 am

Ah that must be the online staff widget! sux is there a way to fix the error?

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: HTML Coding Question

Post by Ange Tuteur on January 2nd 2015, 4:53 am

Try replace this :
Code:
        jQuery(window).on('load', function () {
            var currentValue = document.getElementById(widget).innerHTML;
            sessionStorage.setItem('online_staff', currentValue)
        })

With this :
Code:
        jQuery(window).on('load', function () {
            if (!document.getElementById(widget)) return;
            var currentValue = document.getElementById(widget).innerHTML;
            sessionStorage.setItem('online_staff', currentValue)
        })

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 5:07 am

Ok that's done did a test with the HTML still had a loading screen not fade away, another error?

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: HTML Coding Question

Post by Ange Tuteur on January 2nd 2015, 5:11 am

Nope, I don't even see it on your forum.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 5:16 am

Ok thank you for correcting that error i will play with it a bit see what i get thanks again!

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

In progress Re: HTML Coding Question

Post by _Twisted_Mods_ on January 2nd 2015, 6:42 am

if you still have the recent post widget remove it for now because you removed the topic it gets info from so its trying to get info that's not even there

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: HTML Coding Question

Post by FrOsTyXi on January 2nd 2015, 6:46 am

I have everything in pace widget and forum that it gets data from but all is set to admin only till completion.

Regards

FrOsTyXi
Forumember

Male Posts : 460
Reputation : 12
Language : english

http://team-psn.forum-board.net/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum