درخواست راهنمایی درباره ی ساخت یک دکمه css

Mohammadali.

New Member
سلام!

لطفا اگه اعصاب دارید یه نگاه اینجا بندازید:
http://mg4upload.persiangig.com/test/index.html

اینم کدش:
HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>دکمه ی آزمایشی</title>
<style type="text/css">
<!--
.button {
	background-image:url(button01.png);
}
.button:hover {
	background-image:url(button02.png);
}
#apDiv1 {
	position:absolute;
	width:106px;
	height:29px;
	z-index:1;
}
-->
</style>
</head>

<body>
<div align="center" id="apDiv1" class="button">button</div>
</body>
</html>

میخوام به طرح دکمه همون عکس png که وقتی با hover لود میشه لینک بدم مثلا : example.com
کاری به نوشته button ندارم دوست گرامی.
 

k2-4u

Well-Known Member
HTML:
<style>
.button {
	cursor:pointer;
}
</style>
<div align="center" id="apDiv1" onclick="void(window.open('http://www.site.com','_blank'));" class="button">button</div>
سوالی بود در خدمتم :rose:
 

جدیدترین ارسال ها

بالا