Zoque.Forum
Dirsek Teması:
Geri Dön Zoque.Forum » Webmaster Kaynaklari » ://www » Counter


Yanıt
 
LinkBack Seçenekler
Old 14.05.2001   #1 (permalink)
 
Left_Click's Avatar
 
Üyelik Tarihi: 10.09.2000
Yer: Izmir
Yaş: 33
Mesaj: 60

Merhaba Arkadaşlar.
Yerel intranet ağımızda oluşturduğumuz bir site için counter programı arıyorum. Counter aynızamanda Macromedia ya da uygun olursa iyi olur. Söylerseniz sevinirim.
__________________
Anlamak Cozmeye Yetmez.........
Left_Click şu an çevrimdışı  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl'e kaydet! http://reddit.com/submit?url=%url%&title=%title%Wong'e kaydet!Yahoo'ya kaydet!Google'a kaydet!MSN'e kaydet!Facebook'e kaydet!
Mesajdan alıntı yaparak yeni bir cevap ekleyin
Old 14.05.2001   #2 (permalink)
 
Üyelik Tarihi: 04.08.2000
Yer: Samsun
Yaş: 30
Mesaj: 731
Kod:
<%
'*******************************************************
'*     ASP 101 Sample Code - http://www.asp101.com     *
'*                                                     *
'*   This code is made available as a service to our   *
'*      visitors and is provided strictly for the      *
'*               purpose of illustration.              *
'*                                                     *
'* Please direct all inquiries to webmaster@asp101.com *
'*******************************************************
%>

<%
' Declare our vaiables
Dim objFSO, objCountFile  ' object vars for FSO and File
Dim strCountFileName      ' filename of count text file
Dim iCount                ' count variable
Dim bUseImages            ' boolean whether or not to use images
Dim I                     ' standard looping var


' Determine whether we use images or plain text
' You could just set this to True or False instead
bUseImages = CBool(Request.QueryString("images"))

' Compute our count file's filename
' This is based on the file from which you call count.ASP
' It basically takes that name and appends a .cnt so I don't
' accidently overwrite any files.  If for some reason you have
' a file named script_name.ASP.cnt then change this or watch out!
strCountFileName = server.MapPath("count.txt")
'Request.ServerVariables("SCRIPT_NAME") & ".cnt"

' Create FileSystemObject to deal with file access
Set objFSO = server.CreateObject("Scripting.FileSystemObject")

' Open the file as a text stream (1 = ForReading, True = Create)
Set objCountFile = objFSO.OpenTextFile(strCountFileName, 1, True)

' Read the current count from the file
If Not objCountFile.AtEndOfStream Then
	' Set value to contents of the file
	iCount = CLng(objCountFile.ReadAll)
Else
	' If no file exists or it's empty start at 0
	iCount = 0
End If

' Close the file and destroy the object
objCountFile.Close
Set objCountFile = Nothing


' Increment the count
iCount = iCount + 1


' Overwrite existing file and get a text stream to new one
Set objCountFile = objFSO.CreateTextFile(strCountFileName, True)

' Write updated count
objCountFile.Write iCount

' Close the file and destroy the object
objCountFile.Close
Set objCountFile = Nothing


' Destroy the FSO object
Set objFSO = Nothing


' We're all done with the hard part
' All that's left is to display the results
If bUseImages Then
	' Loop through the count integer showing each digit
	' You can grab the images one at a time or get the zip
	' http://www.asp101.com/samples/download/counter_imgs.zip
	For I = 1 to Len(iCount)
		' Output the IMG tag using the right digit
		Response.Write "<IMG SRC=""./images/digit_"
		Response.Write Mid(iCount, I, 1)
		Response.Write ".gif"" ALT="""
		Response.Write Mid(iCount, I, 1)
		Response.Write """ WIDTH=""20"" HEIGHT=""27"">"
	Next 'I
Else
	' No image wanted just show the variable
	Response.Write iCount
End If
%>
Bu kodun tek kötü yanı refresh yapınca bir count daha atması.

ASP işinizi görür sanırım.Başka bir script denemek isterseniz http://www.hotscripts.com adresinde ASP,PHP ve cgi scriptlerde bulabilirsiniz.
antivitamin şu an çevrimdışı  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl'e kaydet! http://reddit.com/submit?url=%url%&title=%title%Wong'e kaydet!Yahoo'ya kaydet!Google'a kaydet!MSN'e kaydet!Facebook'e kaydet!
Mesajdan alıntı yaparak yeni bir cevap ekleyin
Old 16.05.2001   #3 (permalink)
 
Left_Click's Avatar
 
Üyelik Tarihi: 10.09.2000
Yer: Izmir
Yaş: 33
Mesaj: 60
Ama tek sıkıntı intranet bağlantısında bu dediğin sitelerin olmayışı. ve dolayısı ile u scriptleri kullanamamam.
Başka önerileriniz var mı?
__________________
Anlamak Cozmeye Yetmez.........
Left_Click şu an çevrimdışı  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl'e kaydet! http://reddit.com/submit?url=%url%&title=%title%Wong'e kaydet!Yahoo'ya kaydet!Google'a kaydet!MSN'e kaydet!Facebook'e kaydet!
Mesajdan alıntı yaparak yeni bir cevap ekleyin
Old 16.05.2001   #4 (permalink)
 
Üyelik Tarihi: 04.08.2000
Yer: Samsun
Yaş: 30
Mesaj: 731
?
intranet ile bu sitelerin ne alakası var.Siz intranet için hangi programı kullanıyorsunuz?
Pws,Apache,Xitami yada başka birşey?
Ve counter için nasıl bir script düşünüyorsunuz?
ASP, PHP, cgi, JavaScript ?
Benim yolladığım ASP script, aradığınız başka script varsa o sitelerden bulabilirsiniz demek istemiştim size...
antivitamin şu an çevrimdışı  
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl'e kaydet! http://reddit.com/submit?url=%url%&title=%title%Wong'e kaydet!Yahoo'ya kaydet!Google'a kaydet!MSN'e kaydet!Facebook'e kaydet!
Mesajdan alıntı yaparak yeni bir cevap ekleyin
Sponsorlu Bağlantılar
Zoque.Forum
Reklam
Yanıt

Etiketler

counter


 
Zoque'a hoşgeldiniz!
Zoque 27.02.1999 tarihinde yayın hayatına başlamış, paylaşıma dayalı bir oluşumdur. Tasarım, teknoloji, web, kültür ve sanat ana başlıkları altında bilgi paylaşımı ve benzer değerlere sahip katılımcıların birbirleriyle iletişime girmelerine imkan sağlar. "Az ama Öz" sloganından yola çıkarak, kaliteli ve nitelikli katılımı temel alır.

Saygın ve ciddi bir ortamda yardımlaşmak, haberleşmek, kendi bildiklerini diğer katılımcılarla paylaşmak isteyen, oluşumumuza düzenli katılımda bulunacağı inancını taşıyan konuklarımızı üye olmaya davet ediyoruz. [ » ]


Üye Girişi:

En popüler ilk 100 etiket
Tag Cloud
acil adsl ajax almak arama araniyor ariyorum ariyoruz asp bilen bilgi bilgisayar blog calisma css dijital div domain dosya eleman film firefox flash font form forum fotograf freelance google gore grafik grafiker hakkinda hangi hata hatasi hosting html ilgili ilk image internet istanbul istiyorum java javascript karakter kayit kisisel kullanimi link logo mac mail menu microsoft muzik mysql nasil neden nedir online photoshop php problemi program programi reklam resim satilik sayfa script server ses sistemi site sitesi son soru sorun sorunsali sorunu sql swf tasarim tasarimci tasarimcisi tasarimi turk turkce veri video web windows wordpress xml yardim yazi yeni zoque
Zoque RSS Aboneliği
Son eklenen konuları e-posta ile haber verelim mi?

Forum Yazılımı: vBulletin® Version 3.7.4 Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

Arayüz/Skin "Güneş" © www.zoque.com / net. Copyright © 1999 - 2008
Forum Saati GMT +2. Şu anda saat: 06:52.