<---------- din side her ----------> <html> <head> <title>Din side</title> </head> <script language="JavaScript"> <!-- Gem koden for gamle browsere
function PopWin(url,h,w) { popupWin = window.open(url, 'logaf', 'height=' + h + ',width=' + w + ',top=50,left=25') } // --> </script> <body onLoad="PopWin('logaf.asp',150,300);"> din side her </body> </html>
<------------ logaf.asp ----------------> <% Set conn = Server.CreateObject("ADODB.Connection") Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("Community/community.mdb") SQL = "UPDATE brugere SET sidsteLogout = Now() WHERE id = " & session("id") & "" Conn.Execute(SQL) Conn.Close
<---------- din side her ----------> <html> <head> <title>Din side</title> </head> <script language="JavaScript"> <!-- Gem koden for gamle browsere
function PopWin(url,h,w) { popupWin = window.open(url, 'logaf', 'height=' + h + ',width=' + w + ',top=50,left=25') } // --> </script> <body onClose="PopWin('logaf.asp',150,300);"> din side her </body> </html>
<------------ logaf.asp ----------------> <% Set conn = Server.CreateObject("ADODB.Connection") Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.Mappath("Community/community.mdb") SQL = "UPDATE brugere SET sidsteLogout = Now() WHERE id = " & session("id") & "" Conn.Execute(SQL) Conn.Close
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.