Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Webmaster Zone > Web Development
Register

Reply
 
LinkBack Thread Tools
Old 12.05.2004, 19:08   #1
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Question circle.am - HTML code

I have nothing to say, guys did a great job. But two things I have to ask.
Is this HTML code perfect for counter system?

PHP Code:
<!-- Circle.Am: DO NOT MODIFY THIS CODEStart -->
<
script language="javascript">
  
string "bid=Z&sid=XXXX&seek="+Math.random()+"&ref=";
  
string += escape(document.referrer)+"&page="+escape(window.location.href);
  
js_version "1.0"document.cookie="CircleCookieTest=1; path=/";
  
string += "&cookie="+(document.cookie?"y":"n");
</script><script language="javascript1.1">
    string += "&java="+(navigator.javaEnabled()?"y":"n")
</script><script language="javascript1.2">
  string += "&res="+screen.width+'x'+screen.height;
  string += "&colors="+(((navigator.appName.substring(0,5)=="Micro"))?
  screen.colorDepth:screen.pixelDepth)
</script><script language="javascript1.1">js_version = "1.1";</script>
<script language="javascript1.2">js_version = "1.2";</script>
<script language="javascript1.3">js_version = "1.3";</script>
<script language="javascript1.4">js_version = "1.4";</script>
<script language="javascript1.5">js_version = "1.5";</script>
<script language="javascript1.6">js_version = "1.6";</script>
<script language="javascript1.7">js_version = "1.7";</script>
<script language="javascript1.8">js_version = "1.8";</script>
<script language="javascript1.9">js_version = "1.9";</script>
<script language="javascript">
  document.write("<a href='http://www.circle.am/?w=XXXX' target='_top'><img"+
  " src='http://www.circle.am/service/?"+string+"&jver="+js_version+
  "&' border='0' width='Y' height='Y' alt='Circle.Am'></a>");
</script><noscript>
     <a href='http://www.circle.am/?w=XXXX' target='_top'><img
     src='http://www.circle.am/service/?bid=Z&sid=XXXX' border='0'
     width='Y' height='Y' alt='Circle.Am'></a>
</noscript><!-- Circle.Am: End --> 
It's about 1.7kb of traffic. Couldn't it be smaller ? The rambler's code is about 200 BYTES !

--------------------

Next thing is less technical - it's been a long time we see "pending" on most of the buttons in circle.am. Is this project is near to be freezed or some financial issues ?
Reply With Quote
Old 12.05.2004, 20:21   #2
Главный Лысый
 
Pascal's Avatar
 
Join Date: 10 2001
Location: AM
Age: 39
Posts: 2,829
Downloads: 4
Uploads: 0
Reputation: 28 | 4
Default

Eto vse odnoznachno optimizuruetsya. Prosto nado zamenit' imena peremennykh na bolee korotkie. Umen'****sya raza v 3.....
Reply With Quote
Old 13.05.2004, 07:14   #3
Moderator
 
acid's Avatar
 
Join Date: 09 2001
Location: South Korea, Gumi
Posts: 7,699
Downloads: 102
Uploads: 34
Blog Entries: 16
Reputation: 561 | 6
Default

Code:
 
<a href="http://top100.rambler.ru/top100/">
<img src="http://counter.rambler.ru/top100.cnt?583881" alt="" width=1 height=1 border=0></a>
и

Code:
 
<div align="center">
<a href="http://top100.rambler.ru/top100/">
<img src="http://top100-images.rambler.ru/top1...-darkblue2.gif" alt="Rambler's Top100" width=88 height=31 border=0></a>
Reply With Quote
Old 13.05.2004, 07:38   #4
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

could anybody explain please, what's a meaning of these lines?
Code:
<script language="javascript1.1">js_version = "1.1";</script>
<script language="javascript1.2">js_version = "1.2";</script>
<script language="javascript1.3">js_version = "1.3";</script>
<script language="javascript1.4">js_version = "1.4";</script>
<script language="javascript1.5">js_version = "1.5";</script>
<script language="javascript1.6">js_version = "1.6";</script>
<script language="javascript1.7">js_version = "1.7";</script>
<script language="javascript1.8">js_version = "1.8";</script>
<script language="javascript1.9">js_version = "1.9";</script>
<script language="javascript">
Reply With Quote
Old 13.05.2004, 08:50   #5
Главный Лысый
 
Pascal's Avatar
 
Join Date: 10 2001
Location: AM
Age: 39
Posts: 2,829
Downloads: 4
Uploads: 0
Reputation: 28 | 4
Default

Eto dlya togo, chtob opredelit' kakaya versiya JavaScdripta ispol'zuetsya klientom.
Delo v tom, chto pole User-Agent chasto rezhetsya, ili poddelyvaetsya, a javascriptom mozhno poymat' raznitsua mezhde browserami dazhe na urovne minor versions....

Regards
Reply With Quote
Old 14.05.2004, 08:29   #6
СволочЪ
 
Вирус's Avatar
 
Join Date: 08 2002
Location: Yerevan
Age: 36
Posts: 357
Downloads: 0
Uploads: 0
Reputation: 0 | 0
Arrow

Quote:
Originally Posted by greka
could anybody explain please, what's a meaning of these lines?
Code:
<script language="javascript1.1">js_version = "1.1";</script>
<script language="javascript1.2">js_version = "1.2";</script>
<script language="javascript1.3">js_version = "1.3";</script>
<script language="javascript1.4">js_version = "1.4";</script>
<script language="javascript1.5">js_version = "1.5";</script>
<script language="javascript1.6">js_version = "1.6";</script>
<script language="javascript1.7">js_version = "1.7";</script>
<script language="javascript1.8">js_version = "1.8";</script>
<script language="javascript1.9">js_version = "1.9";</script>
<script language="javascript">
Таким вот образом устанавливается значение переменной js_version, которая, по замыслу программиста, несет в себе номер версии скрипта, которую поддерживает текущий броузер клиента. Из предложеных вариантов script language="javascript1.Х" сработает только один, который соответсвует поддерживаемой версии (он и инициализирует переменную js_version), прочие объявления будут просто игнорированы броузером. Зачем все это надо уже объяснил г-н. Паскаль.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 13:47.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.