网页制作的提示框颜色更改问题

来源:百度知道 编辑:UC知道 时间:2024/04/29 07:02:49
有很多网页里,只要鼠标在一个图片上或文字上停留一段时间后都会出现一个黄色的框框,里面就有简单的介绍

但我觉得黄色的不好看,有没有方法改成其它的颜色呀?

提示框是指文字超链接
<a href="fsda.html" title="这段文字将会出现在提示框里">超链接
</a>

四种提示框代码
<head>
<title>图像效果演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
/*
舜子制作
Made by PuterJam
*/
//--初始化变量--
var rT=true;//允许图像过渡
var bT=true;//允许图像淡入淡出
var tw=150;//提示框宽度
var endaction=false;//结束动画

var ns4 = document.layers;
var ns6 = document.getElementById && !document.all;
var ie4 = document.all;
offsetX = 0;
offsetY = 20;
var toolTipSTYLE="";
function initToolTips()
{
if(ns4||ns6||ie4)
{
if(ns4) toolTipSTYLE = document.toolTipLayer;
else if(ns6) toolTipSTYLE = document.getElementById("toolTipLayer").style;
else if(ie4) toolTipSTYLE = document.all.toolTipLayer.style;
if(ns4) document.captureEvents(Event.MOUSEMOVE);
else
{
toolTipSTYLE.visibility = "visible";