Hi
I have installed a counter code in the header.html
<script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1">
<!--
//-->
</script>
It is giving me an error.
How to fix this problem?
Thanks
Hi
I have installed a counter code in the header.html
<script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1">
<!--
//-->
</script>
It is giving me an error.
How to fix this problem?
Thanks
Last edited by SKh; 03-29-2007 at 04:39 AM.
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
do you have an example of the error?
I could be wrong,
but i dont know what the
<!--
//-->
is doing there... maybe try taking that out .. but thats just a guess.. im no expert... but worth a try.
Cheers Ezy
whats the error? i use ccount without any probs.
I suppose the question should be "What is giving you an error?"
Is it Internet Explorer or another browser, is it the W3C Validation tools that are giving you an error, the webserver (apache or?).
If you go to
SyrianSites Directory - All what you could imagine about Syria!.
you can find the (Error on page) triangle
at the bottom of IE browser
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
its showing up as line 2 char 1 as the error in my IE...
but the page displays fine... does that error go away when you take that tracking out???? because its not even on line 2...
Cheers Ezy
yes
without this counter
my page has no error
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
I added the code to mine, and i dont get the errors....
Can you take out only that code, and then ill recheck for errors ...
I took it out now
line 2 after the <body> exactly is the menu on the top left
<script type="text/javascript">
function Go(){return}
</script>
<script type="text/javascript" src="HVmenu/Vmenu_var.js"></script>
<script type="text/javascript" src="HVmenu/menu_com.js"></script>
<noscript>Your browser does not support script</noscript>
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
yeh there is abit of javascript floating around there.. maybe its clashing with the other ones....
have you tried putting just that script in a html page.... and then trying that on its own.. then slowly adding the other ones.. to see if it is a clash?
Cheers Ezy
It is in all other pages
for example
SyrianSites : Web Hosting
SyrianSites: Banner Advertising
etc
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
I have the code back
and get the Error back also
is it because
<script language="Javascript"
while the other scripts whcih does not make error are
<script type="text/javascript">
??
it is 03:00 at morning
I will go to sleep now
thanks
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
Hmm, that's a click counter right? Why did you put it in your header - the way you use that script is :
<script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"> Banner goes here </script>
i cant see how it counts anything where you have it, because its not wrapped around anything that's click able.
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
.: There is no God but ALLAH - Muhammad is the messenger of ALLAH :.
-==[ Believe or Not Believe !! ... That is the Question ]==-
Change
toCode:<script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"></script> <script> //Hide status bar msg II script- by javascriptkit.com
Running this through the W3C validator would have told you this problem.Code:<script language="Javascript" src="http://www.syriansites.net/ccount/click.php?id=1"></script> <script language="Javascript"> //Hide status bar msg II script- by javascriptkit.com
You can't assume a browser knows what "code" is unless you tell it what it is by specifying javascript or xml or java or flash or anything else.
Yes some browsers are smart enough to figure it out, others point out your mistakes.