->Stoffer Jeg er ikke særlig hård til at java, så hvis jeg siger at target skal være \"_blank\", og filen hedder \"chat_main.asp\", kan du så ikke lige sætte det sammen?
hvis den skal komme når siden loader kan det laves sådan her: <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //--> </script> <body onLoad=\"\"MM_openBrWindow(\'chat_main.asp\"\',\'chat\',\'width=300,height=225\')\"\"> width og height kan skiftes til størelsen den skal åbne det i...
oki....så skal lave en sammen sætning af vortes begge 2\'s prøv det her: <script language=\"JavaScript\"> <!-- function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } //-!> <script> så skal du skrive via asp noget meta refresh
nåå...ja den havde jeg sq ikke tænkt på....men det ser ud som om det er til ewn chat så skal den vel kun åbne hvis man er logget ind med det rigtige brugernavn og password ik ?
If Application(\"NumUsers\") = 0 Then \' Initialize (or re-initialize) the user list \' and the conversation ReDim temp1(50) ReDim temp2(50) Application(\"users\") = temp1 Application(\"refresh\") = temp2 End If
\' Find an empty spot and add the new user Dim i For i = 1 To 50 If users(i) = \"\" Then users(i) = Session(\"name\") refresh(i) = time Application.Lock Application(\"NumUsers\") = Application(\"NumUsers\") + 1 Application.Unlock Exit For End If Next If i = 51 Then Response.Redirect \"toomany.asp\"
\' Put the arrays back in the application vars Application.Lock Application(\"users\") = users Application(\"refresh\") = refresh Application.Unlock
If not IsEmpty(Application(\"conversation\")) Then Application.Lock Application(\"conversation\") = \"<b><i>\" & Session(\"name\") & \" [\" & Session(\"start\") & \"-\" &_ session(\"slut\") & \"]\" & \" har tilsluttet sig fællesskabet</b></i><br>\" & Application(\"conversation\") Application.Unlock End If \'Response.Redirect \"chat_main.asp\" End If %> </font> </body>
Jeg ved ikke om jeg har gjort det rigtigt! I kan se min response.redirect, som den var før.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.