[You must be registered and logged in to see this link.]
thank
thank
<div id="dangnhap" STYLE="position:absolute; valign:top;
align:center; background-image:URL(images/login.gif);
background-repeat:no-repeat">
<br>
<table width="270px">
<td align=right>
<form id="frmLogin" action="member.php" method="post">
<input type="hidden" name="my_post_key"
value="3e3e3a05d7134b3b5e05181174dcbb2c" />
<input type="hidden" name="action" value="do_login" />
<input type="text" class="textbox" name="username" title="Tên đăng nhập"
value="Tên đăng nhập" onfocus="if(this.value == 'Tên đăng nhập') { this.value='';
}" onblur="if(this.value=='') { this.value='Tên đăng nhập'; }" />
<br>
<input type="password" class="textbox" name="password" title="Mật khẩu"
value="Mật khẩu" onfocus="if(this.value == 'Mật khẩu') { this.value='';
}" onblur="if(this.value=='') { this.value='Mật khẩu'; }" />
<br>
<input type="submit" class="button" value="Đăng nhập" />
</form>
</td>
</table>
<a href="" onClick="closebar(); return false"><img src="images/close.gif" border="0" align=right /></a>
</div>
<style type="text/css">
#dangnhap{
position:absolute;
padding: 2px;
visibility: hidden;
z-index: 100;
width: 289px;
height: 87px
}
</style>
function detectBrowser()
{
useragent = navigator.userAgent.toLowerCase();
useragent_version = parseInt(navigator.appVersion);
if(navigator.product == "Gecko" &&
navigator.vendor.indexOf("Apple Computer") != -1)
{
browser = "safari";
}
else if(useragent.indexOf("chrome") != -1)
{
browser = "chrome";
}
else if(navigator.product == "Gecko")
{
browser = "mozilla";
}
else if(useragent.indexOf("opera") != -1)
{
browser = "opera";
}
else if(useragent.indexOf("konqueror") != -1)
{
browser = "konqueror";
}
else if(useragent.indexOf("msie") != -1)
{
browser = "ie";
}
else if(useragent.indexOf("compatible") == -1 &&
useragent.indexOf("mozilla") != -1)
{
browser = "netscape";
}
if(useragent.indexOf("win") != -1)
{
os = "win";
}
else if(useragent.indexOf("mac") != -1)
{
os = "mac";
}
}
function HTMLchars(text)
{
text = text.replace(new RegExp("&(?!#[0-9]+;)", "g"),
"&");
text = text.replace(/</g, "<");
text = text.replace(/>/g, ">");
text = text.replace(/"/g, """);
return text;
}
if(document.location.href)
detectBrowser();
{
if(browser == "ie")
{
var input = document.createElement("<input
name=\"url\">");
}
else
{
var input = document.createElement("input");
input.setAttribute("name", "url");
}
input.setAttribute("type", "hidden");
input.setAttribute("value",
HTMLchars(document.location.href));
document.getElementById('frmLogin').appendChild(input);
}
// -->
Similar topics
|
|