翻滚图像与链接到下一个PHP

时间:2015-10-30 05:29:01

标签: php rollover

我有翻转图像,但我无法放入链接,这会将用户带到下一个php页面。我应该使用onclick吗?

<?php
$backgroundpic = "Background.jpeg";
$searchpic = "Search icon.png";
$searchhoverpic = "Search icon with search word.jpg";
?>

<a href="#" class="searchbutton"></a>

<html>
<head>
<style type="text/css">

body {
background-image: url('<?php echo $backgroundpic;?>');
background-repeat:no-repeat;
background-position:center;
background-attachment:fixed;
width: 100%;
}
.searchbutton {
display: block;
width: 300px;
height: 300px;
background-image: url('<?php echo $searchpic;?>');
}
.searchbutton:hover {
display: block;
width: 300px;
height: 300px;
background-image: url('<?php echo $searchhoverpic;?>');
}

以下是主页上的代码。

Use GridView2.Rows instead of GridView.

 foreach (GridViewRow row in GridView2.Rows)
     {
         A=(HyperLink)row.FindControl("hyp");
         A.NavigateUrl += A.Text;
     }

0 个答案:

没有答案