如何给背景图片某一部分加上连接

来源:百度知道 编辑:UC知道 时间:2024/06/04 03:56:54
我的网站首页背景是一张大图。网页上部分是从右往左走动的图片。右下角是显示的是做在背景图上的文字。我想在背景图上的文字加上连接。

理论上,背景图是没办法做链接的,如果你实在想弄的话.下面这个试试吧.

<!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>
<title> new </title>
<style type="text/css" media="screen">
<!--
#snake { overflow: hidden; display: block; width: 270px; height: 129px; background: url(http://www.baidu.com/img/baidu_logo.gif) no-repeat left top; text-indent: -9999px; }
-->
</style>
</head>
<body>
<div id="snake" onclick="window.location.h