Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to disable a user's "Tab" key with ASP? 3

Status
Not open for further replies.

toefuzzies

Technical User
Dec 12, 2003
27
US
I have a "secret link" hidden on a page and currently a user could just keep hitting tab..enter...tab..enter...tab..enter until they found this secret link. I'd like to be able to disable their "Tab" key so they have to find the link with their mouse (via something like a mouse over/hover button).

Is that possible?
 
I see that now, My copy and paste code at fault.



Chris.

Indifference will be the downfall of mankind, but who cares?
 
Well...I get the picture called "dashboard.jpg", but not the other transparent gif (which I created at 500 X 500 pixels). Therefor currently with the code below, I cannot click on any "hidden" link.

I think there's something missing...can you find it?

<%@ Language="VBScript"%>
<%
' convert input string to unicode
Function StrToUnicode(strIN)

dim zz
dim tmp

tmp = ""
for zz = 1 to len(strIN)
tmp = tmp & "&#" & AscW(Mid(strIN,zz,1)) & ";"
next

StrToUnicode = tmp
end function
%>
<HTML>
<HEAD>
Here's my page...

</HEAD>

<script type="text/javascript">

function openpopup(){
var popurl="congrats.html"
winpops=window.open(popurl,"","width=400,height=438,")
}

</script>


<style type="text/css">
img.x
{
position:absolute;
left:100px;
top:100px;
z-index:99
}
</style>

<body>

<%
StrToUnicode("<a href='javascript:eek:penpopup()'>") & vbCrlf
StrToUnicode("<img class='x' border='0'")
StrToUnicode(" src='hidden_picture.gif'")
StrToUnicode(" width='500' height='500'>" & vbCrLf)
StrToUnicode(" </a>") & vbCrLf
%>

</body>
<img src="dashboard.jpg" width="900" height="650">
</html>
 
Hmmm! bit of extra testing needed!

I'll be back!




Chris.

Indifference will be the downfall of mankind, but who cares?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top