Jump to content

PHP Page Load Message


JesseToxik

Recommended Posts

Hey everyone,

 

This is probably an odd request/question.

 

I was recently searching for a website that offers a free SMS bomber so I could spam my girlfriends phone for a few hours.
I found one(didn't work) and on their page they have an interesting feature.

The webpage is http://www.clamtxt.com/

 

In the top left there is a message that says "Page Load: Complete" or "Page Load: Loading" depending on if the page is fully loaded or not.

 

Can this be done by PHP?

 

I know they are not doing this via javascript(as far as I can honestly tell) since when I inspect the element(chrome) it shows up as plain HTML 

<div class="black btn" style="color:gray" align="center">Page load status: <b id="statusc"><font color=green>Complete</font></b></div>

 

Thanks for any replies. 

 

Also I'm a bit tired so I may have missed some javascript that changes the innerHTML of the element.

I will look at the code again but any replies are thanked.

 

EDIT ::: Upon further inspection(inspecting the element and clicking links) it appears that when it changes from "Complete" to "Loading" the html changes as well. Javascript cannot change source code so this has to be a server side code.

Link to comment
https://forums.phpfreaks.com/topic/276284-php-page-load-message/
Share on other sites

Manipulate yes but anything dynamically created by javascript wouldn't show in source code from what I have seen.

I.E: If I used a js code to fill a div with 200 words for filler text, if I viewed the source code I wouldnt see the words inside the div I would only see a div with an id and a javascript code targeting that divs id to fill the text.

That is because JavaScript is used to change the value to loading when a function is triggered, probably by a button being clicked/pressed.

 

This is the flow:

 

Page loads [Element PRESET to "complete"]

Button Click [Element set to "loading"]

Content loads [Element set back to "complete"]

 

Not that hard to follow right?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.