/ Forside / Teknologi / Udvikling / ASP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
ASP
#NavnPoint
smorch 9259
Harlekin 1866
molokyle 1040
Steffanst.. 758
gandalf 657
smilly 564
gibson 560
cumano 530
MouseKeep.. 480
10  Random 410
Tid på ASP chat
Fra : Michael


Dato : 27-01-05 10:14

Jeg har en simpel ASP chat på min side...
Jeg vil gerne have en tid på hvornår folk har logget in og ud...

Starten af asp koderne ser således ud :


if (InStr(application("emchatusers"), ","& request("login") &",")<>0) then
response.redirect("default.asp?error=1&username=" & request("login"))
Response.Cookies("emchatlogin")=request("login")
application("emchatusers") = application("emchatusers") & request("login")
&"," & minute(now) & ","

Application(40)=Application(39)
Application(39)=Application(38)
Application(38)=Application(37)
Application(37)=Application(36)
Application(36)=Application(35)
Application(35)=Application(34)
Application(34)=Application(33)
Application(33)=Application(32)
Application(32)=Application(31)
Application(31)=Application(30)
Application(30)=Application(29)
Application(29)=Application(28)
Application(28)=Application(27)
Application(27)=Application(26)
Application(26)=Application(25)
Application(25)=Application(24)
Application(24)=Application(23)
Application(23)=Application(22)
Application(22)=Application(21)
Application(21)=Application(20)
Application(20)=Application(19)
Application(19)=Application(18)
Application(18)=Application(17)
Application(17)=Application(16)
Application(16)=Application(15)
Application(15)=Application(14)
Application(14)=Application(13)
Application(13)=Application(12)
Application(12)=Application(11)
Application(11)=Application(10)
Application(10)=Application(9)
Application(9)=Application(8)
Application(8)=Application(7)
Application(7)=Application(6)
Application(6)=Application(5)
Application(5)=Application(4)
Application(4)=Application(3)
Application(3)=Application(2)
Application(2)=Application(1)

Application("1")="<font color='#2D7BBC'><b>"& request.Cookies("emchatlogin")
& "</b> enters chatroom</font>"
Response.Redirect "chat.asp"
end if

if request.Cookies("emchatlogin")="" then Response.Redirect"default.asp"
if mid(request.Cookies("emchatlogin"),1,1)=" " then
Response.Redirect"default.asp"



Jeg har ikke den store forstand på ASP programmering, men jeg kan se at der
står Enters chatroom, og jeg har også selv skrevet font color osv på.. Så
det er her jeg gerne ville have den til at skrive ex : 12:35 Søren enters
chatroom

Kan det lade sig gøre.. ??



 
 
Yoda.dk - Lars (30-01-2005)
Kommentar
Fra : Yoda.dk - Lars


Dato : 30-01-05 14:30

Application("1")="<font color='#2D7BBC'><b>"& request.Cookies("emchatlogin")
& "</b> enters chatroom</font>"

skal bare være:

Application("1")="<font color='#2D7BBC'>"&hour(now)&":"&minute(now)&"<b>"&
request.Cookies("emchatlogin")
& "</b> enters chatroom</font>"


--
Venlig hilsen
Lars Andersen



"Michael" <m@h.dk> wrote in message
news:41f8b070$0$195$edfadb0f@dread11.news.tele.dk...
> Jeg har en simpel ASP chat på min side...
> Jeg vil gerne have en tid på hvornår folk har logget in og ud...
>
> Starten af asp koderne ser således ud :
>
>
> if (InStr(application("emchatusers"), ","& request("login") &",")<>0) then
> response.redirect("default.asp?error=1&username=" & request("login"))
> Response.Cookies("emchatlogin")=request("login")
> application("emchatusers") = application("emchatusers") & request("login")
> &"," & minute(now) & ","
>
> Application(40)=Application(39)
> Application(39)=Application(38)
> Application(38)=Application(37)
> Application(37)=Application(36)
> Application(36)=Application(35)
> Application(35)=Application(34)
> Application(34)=Application(33)
> Application(33)=Application(32)
> Application(32)=Application(31)
> Application(31)=Application(30)
> Application(30)=Application(29)
> Application(29)=Application(28)
> Application(28)=Application(27)
> Application(27)=Application(26)
> Application(26)=Application(25)
> Application(25)=Application(24)
> Application(24)=Application(23)
> Application(23)=Application(22)
> Application(22)=Application(21)
> Application(21)=Application(20)
> Application(20)=Application(19)
> Application(19)=Application(18)
> Application(18)=Application(17)
> Application(17)=Application(16)
> Application(16)=Application(15)
> Application(15)=Application(14)
> Application(14)=Application(13)
> Application(13)=Application(12)
> Application(12)=Application(11)
> Application(11)=Application(10)
> Application(10)=Application(9)
> Application(9)=Application(8)
> Application(8)=Application(7)
> Application(7)=Application(6)
> Application(6)=Application(5)
> Application(5)=Application(4)
> Application(4)=Application(3)
> Application(3)=Application(2)
> Application(2)=Application(1)
>
> Application("1")="<font color='#2D7BBC'><b>"&
request.Cookies("emchatlogin")
> & "</b> enters chatroom</font>"
> Response.Redirect "chat.asp"
> end if
>
> if request.Cookies("emchatlogin")="" then Response.Redirect"default.asp"
> if mid(request.Cookies("emchatlogin"),1,1)=" " then
> Response.Redirect"default.asp"
>
>
>
> Jeg har ikke den store forstand på ASP programmering, men jeg kan se at
der
> står Enters chatroom, og jeg har også selv skrevet font color osv på.. Så
> det er her jeg gerne ville have den til at skrive ex : 12:35 Søren enters
> chatroom
>
> Kan det lade sig gøre.. ??
>
>



T (30-01-2005)
Kommentar
Fra : T


Dato : 30-01-05 18:26

Mange tak..

Det vil jeg straks afprøve

"Yoda.dk - Lars" <lars@yXoXdXa.dk> skrev i en meddelelse
news:41fcde6b$0$274$edfadb0f@dread11.news.tele.dk...
> Application("1")="<font color='#2D7BBC'><b>"&
request.Cookies("emchatlogin")
> & "</b> enters chatroom</font>"
>
> skal bare være:
>
> Application("1")="<font color='#2D7BBC'>"&hour(now)&":"&minute(now)&"<b>"&
> request.Cookies("emchatlogin")
> & "</b> enters chatroom</font>"
>
>
> --
> Venlig hilsen
> Lars Andersen
>
>
>
> "Michael" <m@h.dk> wrote in message
> news:41f8b070$0$195$edfadb0f@dread11.news.tele.dk...
> > Jeg har en simpel ASP chat på min side...
> > Jeg vil gerne have en tid på hvornår folk har logget in og ud...
> >
> > Starten af asp koderne ser således ud :
> >
> >
> > if (InStr(application("emchatusers"), ","& request("login") &",")<>0)
then
> > response.redirect("default.asp?error=1&username=" & request("login"))
> > Response.Cookies("emchatlogin")=request("login")
> > application("emchatusers") = application("emchatusers") &
request("login")
> > &"," & minute(now) & ","
> >
> > Application(40)=Application(39)
> > Application(39)=Application(38)
> > Application(38)=Application(37)
> > Application(37)=Application(36)
> > Application(36)=Application(35)
> > Application(35)=Application(34)
> > Application(34)=Application(33)
> > Application(33)=Application(32)
> > Application(32)=Application(31)
> > Application(31)=Application(30)
> > Application(30)=Application(29)
> > Application(29)=Application(28)
> > Application(28)=Application(27)
> > Application(27)=Application(26)
> > Application(26)=Application(25)
> > Application(25)=Application(24)
> > Application(24)=Application(23)
> > Application(23)=Application(22)
> > Application(22)=Application(21)
> > Application(21)=Application(20)
> > Application(20)=Application(19)
> > Application(19)=Application(18)
> > Application(18)=Application(17)
> > Application(17)=Application(16)
> > Application(16)=Application(15)
> > Application(15)=Application(14)
> > Application(14)=Application(13)
> > Application(13)=Application(12)
> > Application(12)=Application(11)
> > Application(11)=Application(10)
> > Application(10)=Application(9)
> > Application(9)=Application(8)
> > Application(8)=Application(7)
> > Application(7)=Application(6)
> > Application(6)=Application(5)
> > Application(5)=Application(4)
> > Application(4)=Application(3)
> > Application(3)=Application(2)
> > Application(2)=Application(1)
> >
> > Application("1")="<font color='#2D7BBC'><b>"&
> request.Cookies("emchatlogin")
> > & "</b> enters chatroom</font>"
> > Response.Redirect "chat.asp"
> > end if
> >
> > if request.Cookies("emchatlogin")="" then Response.Redirect"default.asp"
> > if mid(request.Cookies("emchatlogin"),1,1)=" " then
> > Response.Redirect"default.asp"
> >
> >
> >
> > Jeg har ikke den store forstand på ASP programmering, men jeg kan se at
> der
> > står Enters chatroom, og jeg har også selv skrevet font color osv på..

> > det er her jeg gerne ville have den til at skrive ex : 12:35 Søren
enters
> > chatroom
> >
> > Kan det lade sig gøre.. ??
> >
> >
>
>



EnjoyNews (01-02-2005)
Kommentar
Fra : EnjoyNews


Dato : 01-02-05 00:01

Hej Lars eller andre

Jeg tænkte om du/I kunne hjælpe mig med en sidste lille ting. ??

Den skriver jo en online liste i højre side, så jeg går ud fra at den i
koderne et sted ved hvem og hvor mange der er online.
Det jeg så tænkte var om man ikke kunne hive denne info ud, så man på
forsiden, hvor man skriver sit login navn, kan få den til at skrive
hvormange der var på..
På denne måde behøvede man ikke at logge på for at se om der var nogle.. ??

Hvis du/I/en eller anden, har tid og lyst, til lige at kigge på det, kan jeg
jo lige maile/uploade/poste koderne..
Det fylder ikke noget særligt..


mvh
Michael


"Yoda.dk - Lars" <lars@yXoXdXa.dk> skrev i en meddelelse
news:41fcde6b$0$274$edfadb0f@dread11.news.tele.dk...
> Application("1")="<font color='#2D7BBC'><b>"&
request.Cookies("emchatlogin")
> & "</b> enters chatroom</font>"
>
> skal bare være:
>
> Application("1")="<font color='#2D7BBC'>"&hour(now)&":"&minute(now)&"<b>"&
> request.Cookies("emchatlogin")
> & "</b> enters chatroom</font>"
>
>
> --
> Venlig hilsen
> Lars Andersen
>
>
>
> "Michael" <m@h.dk> wrote in message
> news:41f8b070$0$195$edfadb0f@dread11.news.tele.dk...
> > Jeg har en simpel ASP chat på min side...
> > Jeg vil gerne have en tid på hvornår folk har logget in og ud...
> >
> > Starten af asp koderne ser således ud :
> >
> >
> > if (InStr(application("emchatusers"), ","& request("login") &",")<>0)
then
> > response.redirect("default.asp?error=1&username=" & request("login"))
> > Response.Cookies("emchatlogin")=request("login")
> > application("emchatusers") = application("emchatusers") &
request("login")
> > &"," & minute(now) & ","
> >
> > Application(40)=Application(39)
> > Application(39)=Application(38)
> > Application(38)=Application(37)
> > Application(37)=Application(36)
> > Application(36)=Application(35)
> > Application(35)=Application(34)
> > Application(34)=Application(33)
> > Application(33)=Application(32)
> > Application(32)=Application(31)
> > Application(31)=Application(30)
> > Application(30)=Application(29)
> > Application(29)=Application(28)
> > Application(28)=Application(27)
> > Application(27)=Application(26)
> > Application(26)=Application(25)
> > Application(25)=Application(24)
> > Application(24)=Application(23)
> > Application(23)=Application(22)
> > Application(22)=Application(21)
> > Application(21)=Application(20)
> > Application(20)=Application(19)
> > Application(19)=Application(18)
> > Application(18)=Application(17)
> > Application(17)=Application(16)
> > Application(16)=Application(15)
> > Application(15)=Application(14)
> > Application(14)=Application(13)
> > Application(13)=Application(12)
> > Application(12)=Application(11)
> > Application(11)=Application(10)
> > Application(10)=Application(9)
> > Application(9)=Application(8)
> > Application(8)=Application(7)
> > Application(7)=Application(6)
> > Application(6)=Application(5)
> > Application(5)=Application(4)
> > Application(4)=Application(3)
> > Application(3)=Application(2)
> > Application(2)=Application(1)
> >
> > Application("1")="<font color='#2D7BBC'><b>"&
> request.Cookies("emchatlogin")
> > & "</b> enters chatroom</font>"
> > Response.Redirect "chat.asp"
> > end if
> >
> > if request.Cookies("emchatlogin")="" then Response.Redirect"default.asp"
> > if mid(request.Cookies("emchatlogin"),1,1)=" " then
> > Response.Redirect"default.asp"
> >
> >
> >
> > Jeg har ikke den store forstand på ASP programmering, men jeg kan se at
> der
> > står Enters chatroom, og jeg har også selv skrevet font color osv på..

> > det er her jeg gerne ville have den til at skrive ex : 12:35 Søren
enters
> > chatroom
> >
> > Kan det lade sig gøre.. ??
> >
> >
>
>



Jens Gyldenkærne Cla~ (01-02-2005)
Kommentar
Fra : Jens Gyldenkærne Cla~


Dato : 01-02-05 11:09

EnjoyNews skrev:

> Hej Lars eller andre

Hej Michael. Læs venligst min signatur. Der er ingen grund til at citere
over 100 linjer - og slet ikke som bundcitat.

--
Jens Gyldenkærne Clausen
Svar venligst under det du citerer, og citer kun det der er
nødvendigt for at forstå dit svar i sammenhængen. Se hvorfor og
hvordan på http://usenet.dk/netikette/citatteknik.html

Michael (01-02-2005)
Kommentar
Fra : Michael


Dato : 01-02-05 13:00


> Hej Michael. Læs venligst min signatur. Der er ingen grund til at citere
> over 100 linjer - og slet ikke som bundcitat.

Sorry, det var en smutter.



Michael (02-02-2005)
Kommentar
Fra : Michael


Dato : 02-02-05 11:19

Er der ikke en venlig sjæl der kunne tænkte sig at hjælpe en ASP begynder




Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408527
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste