Code:
<html>
<head>
<script type="text/javascript">
function tleft(left,top) {
var topleft = new Array
topleft[0]=[17,16,15,14,14,13,13]
topleft[1]=[14,14,15,16,17,18,19]
document.body.innerHTML+="<span class='px' style='left:"+(left+13)+";top:"+(top+20)+";height:5px'></span>"
document.body.innerHTML+="<span class='px' style='left:"+(left+18)+";top:"+(top+13)+";width:80px'></span>"
for (i=0;i<=topleft[0].length-1;i++) {
document.body.innerHTML+="<span class='px' style='left:"+(left+topleft[0][i])+";top:"+(top+topleft[1][i])+"'></span>"
}
}
function tright(left,top) {
var topright = new Array
topright[0] = [99,100,101,102,102,103,103]
topright[1] = [14,14,15,16,17,18,19]
document.body.innerHTML+="<span class='px' style='left:"+(left+103)+";top:"+(top+18)+";height:5px'></span>"
document.body.innerHTML+="<span class='px' style='left:"+(left+98)+";top:"+(top+13)+"'></span>"
for (i=0;i<=topright[0].length-1;i++) {
document.body.innerHTML+="<span class='px' style='left:"+(left+topright[0][i])+";top:"+(top+topright[1][i])+"'></span>"
}
}
function bleft(left,top) {
var bottomleft = new Array
bottomleft[0]=[17,16,15,14,14,13,13]
bottomleft[1]=[29,28,27,26,25,24,23]
document.body.innerHTML+="<span class='px' style='left:"+(left+17)+";top:"+(top+29)+";width:82px'></span>"
for (i=0;i<=bottomleft[0].length-1;i++) {
document.body.innerHTML+="<span class='px' style='left:"+(left+bottomleft[0][i])+";top:"+(top+bottomleft[1][i])+"'></span>"
}
}
function bright(left,top) {
var bottomright = new Array
bottomright[0] = [99,100,101,102,102,103,103]
bottomright[1] = [29,28,27,26,25,24,23]
for (i=0;i<=bottomright[0].length-1;i++) {
document.body.innerHTML+="<span class='px' style='left:"+(left+bottomright[0][i])+";top:"+(top+bottomright[1][i])+"'></span>"
}
}
function createCorner(l,t,text,link) {
tleft(l,t)
tright(l,t)
bleft(l,t)
bright(l,t)
document.body.innerHTML+="<span class='buttontxt'><a href='"+link+"' style='left:"+(l+13)+";top:"+(t+14)+"'>"+text+"</a></span>"
}
onload=function() {
createCorner(40,50,"Dynamic Drive","http://www.dynamicdrive.com/")
createCorner(130,50,"Dynamic Drive","http://www.dynamicdrive.com/")
createCorner(220,50,"Dynamic Drive","http://www.dynamicdrive.com/")
}
</script>
<style type="text/css">
.px {
width:1px;
height:1px;
overflow:hidden;
position:absolute;
background:#000;
z-index:100
}
.buttontxt a {
width:91;
text-align:center;
position:absolute;
font:10px verdana;
text-decoration:none;
color:black;
height:15
}
.buttontxt a:hover {
color:red
}
</style>
</head>
<body>
<input type="button" value="Create Button" onclick="disabled=true;createCorner(310,50,'Dynamic Drive','http://www.dynamicdrive.com/')">
</body>
</html>
Bookmarks