Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Design and HTML
Reload this Page Can I remove the HTML code that 000webhost adds to my Website ?
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
ismael2009's Avatar
Junior Member
ismael2009 is on a distinguished road
 
Posts: 13
Join Date: Apr 2009
Location: Abidjan
Question Can I remove the HTML code that 000webhost adds to my Website ? - 05-25-2009, 02:45 PM

When 000webhost hots your site, it adds this following code at the end of your initial code:
HTML Code:
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
Then, your website isn't valid. I want to remove this code. How to do ?
Reply With Quote
(#2 (permalink))
Old
Senior Member
FnCool is on a distinguished road
 
Posts: 904
Join Date: Feb 2009
Location: Barrie On CA
Default 05-25-2009, 03:00 PM

yup
Disabling analytics code
Reply With Quote
(#3 (permalink))
Old
ismael2009's Avatar
Junior Member
ismael2009 is on a distinguished road
 
Posts: 13
Join Date: Apr 2009
Location: Abidjan
Thumbs up thanks FnCool - 05-25-2009, 03:08 PM

Thank you for your help. I removed the code.
Reply With Quote
(#4 (permalink))
Old
mehashi's Avatar
Junior Member
mehashi is on a distinguished road
 
Posts: 15
Join Date: May 2009
Location: UK
Default 05-27-2009, 02:51 PM

Quote:
Originally Posted by ismael2009 View Post
When 000webhost hots your site, it adds this following code at the end of your initial code:
HTML Code:
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
Then, your website isn't valid. I want to remove this code. How to do ?
For what reason does this code make the page not valid?

I have left the code as the analytics can be handy, google can stiill see my site and it doesnt display to the user so I cannot tell what the problem is?

If somebody can point me in the right direction as to why it is bad I would be greatful! I would not want this to be an issue later on >.<


Konnichi wa! Watashi wa mehashi desu, baka ne? Ja mata!
(*^_^*)//

Support Open Source, Support freedom!
Reply With Quote
(#5 (permalink))
Old
Senior Member
FnCool is on a distinguished road
 
Posts: 904
Join Date: Feb 2009
Location: Barrie On CA
Default 05-27-2009, 03:48 PM

"they say" you'll get a better page rank if all your code is valid, but i've never seen any proof of this, and i HAVE checked.
if the analytics code is your only problem, i wouldn't worry too much.

validate your site here:
http://validator.w3.org/
Reply With Quote
(#6 (permalink))
Old
mehashi's Avatar
Junior Member
mehashi is on a distinguished road
 
Posts: 15
Join Date: May 2009
Location: UK
Default 05-28-2009, 12:01 AM

Thank you!

I checked out the link you gave, and it returned loads of "errors" on my site. I checked the lines it suggested and they are fine, just closing statements and things. eg, end tag for paragraph that wasnt opened (but it WAS!).

All of them work in the major browsers so I am thinking these "errors" are a bit of a fuss? I have never had a complaint about my apparantly unusable site!

And telling me that I cant have aligned center when it was w3schools who tought us all that anyway! Lol, I think it is silly fuss! >.<


Konnichi wa! Watashi wa mehashi desu, baka ne? Ja mata!
(*^_^*)//

Support Open Source, Support freedom!
Reply With Quote
(#7 (permalink))
Old
Senior Member
FnCool is on a distinguished road
 
Posts: 904
Join Date: Feb 2009
Location: Barrie On CA
Default 05-28-2009, 01:31 PM

well, you should clean up what you can, but most remote connected counter/stats type scripts will cause validation errors because of what they need to be compatible for everyone.
Reply With Quote
(#8 (permalink))
Old
Junior Member
sdcb is on a distinguished road
 
Posts: 1
Join Date: Jun 2009
Default 06-27-2009, 10:35 AM

Quote:
Originally Posted by mehashi View Post
And telling me that I cant have aligned center when it was w3schools who tought us all that anyway! Lol, I think it is silly fuss! >.<


I realise that this thread is a month old but it seems you may not have caught on to "deprecated" that W3Schools mentions from time to time. When they say something is "deprecated" they mean that you should stop using it and find out what the latest recommendation is. Center alignment is one of the deprecated tags:
http://www.w3schools.com/TAGS/tag_center.asp

When you want to validate a page, if the stats script seems to be causing it to not validate, remove the script and then try again to validate. If you get ALL the errors removed, no modern browser should have trouble displaying it properly.

Hope that helps!
Reply With Quote
(#9 (permalink))
Old
mehashi's Avatar
Junior Member
mehashi is on a distinguished road
 
Posts: 15
Join Date: May 2009
Location: UK
Default 06-27-2009, 03:18 PM

Hello sdcb!

Thank you for the comment. Over the last month I have in fact been building a nice new and shiny site. As I have started using php I have become much more "over the top" than before and now all of my pages pass w3c standards.

(xHtml 1.0, CSS 2.0)

I also use the Web developer add-on for firefox now and would recommend it to others. With this enabled I can see whether a page is ok or in "quirks" mode, as well as css and javascript errors. Since being able to see these I have become obsessive about making sure everything I do passes all these checks. (for example, this forum has a css error "-x-system-font" declaration dropped amongst others)

I have learnt on my way about how ridiculous MS IE is when building websites. There are many things that must be specifically worked around - just for IE - that work fine between other browsers. Spacing and alignment is a nightmare as well! I'll stick to decent browsers I think!

I will follow the instructions in the link from this thread when I upload my site, and hopefully keep my untainted code. I was wondering though if the code is actually written into the uploaded pages or just run as the page is requested?

Once again I would recommend the "web developer" and "Firebug" extentions for Firefox if you use it. They will help greatly in de-bugging and now I always use them I can see how shoddy "professional" websites are. (google returns errors for example!)

Thank you for the help guys! ^_^b


Konnichi wa! Watashi wa mehashi desu, baka ne? Ja mata!
(*^_^*)//

Support Open Source, Support freedom!
Reply With Quote
(#10 (permalink))
Old
Junior Member
prodigygm is on a distinguished road
 
Posts: 4
Join Date: Jul 2009
Location: Chicago,IL, USA USA USA
Send a message via MSN to prodigygm Send a message via Yahoo to prodigygm
Default 07-14-2009, 02:48 PM

well he may not appreciate it that they add code to his html, probaly for editing reasons.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com