当前位置:首页 > 网站应用 > 正文内容

js实现鼠标经过列表弹出提示层效果

cjw1232年前 (2023-11-01)网站应用2800
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>鼠标经过弹出层提示效果</title>
<style type="text/css">
*{margin:0; padding:0;}
body{font-size:12px; font-family:"Times New Roman", Times, serif; background-color:#333;}
#main{margin:100px auto; width:300px;}
#main ul{list-style:none;}
#main ul li{line-height:20px; border-bottom:1px dashed #FC0;}
#main ul li a{color:#E7E7E7; text-decoration:none; position:relative; display:block;}
#main ul li a div{display:none;}
#main ul li a:hover{ visibility:visible; color:#FFF;}
#main ul li a:hover div{position:absolute; left:280px; top:-40px; background-color:#FFF; display:block; width:300px; height:100px; color:#000; overflow:hidden;}
#main ul li a:hover div dt{float:left; width:8px; background:url(234.gif) center no-repeat;height:100px; display:block; background-color:#333;}
#main ul li a:hover div dd{float:right; width:270px; height:auto; line-height:18px; padding:6px 10px;}
</style>
</head>
<body>
<div id="main">
<ul>
        <li><a href="javascript:void(0);">鼠标移到这里试试效果<div><dt></dt><dd>这里是弹出提示层内容
</dd></div> </a></li>
        <li>
            <a href="javascript:void(0);">Best Time Saving Tips in Dreamweaver
<div><dt></dt><dd>Before uploading your site you need to make sure that there are no dead links in the site. You can do this by going to your site map, right clicking on any of the files and then clicking on 'check links'. Now you can choose to either check links in the entire site or within the selected file or folder. If there are any dead links you can fix them by using the folder icon to select the right files.
 </dd></div>
</a>
        </li>
        <li>
            <a href="javascript:void(0);">Customizing Form Objects and Validating Forms
<div><dt></dt><dd>After resizing an image in Dreamweaver, click on Commands>Optimize Image in Fireworks. You will get a dialog box saying 'Editing image.gif. Do you wish to use an existing Fireworks document as the source of image.gif.' Click on No and then click Update. The image is now updated and optimized in Dreamweaver. This saves you the trouble of opening the image in Fireworks, resizing it and exporting it again.
 </dd></div>
</a>
        </li>
        <li>
            <a href="javascript:void(0);">Dreamweaver Tips & Tutorials <div><dt></dt><dd>We've shared some really cool tips on Macromedia Dreamweaver in this article. They are handy tips that all Dreamweaver users should know about to allow more flexibility and creativity while designing sites in Dreamweaver.
 </dd></div>
</a>
        </li>
        <li>
            <a href="javascript:void(0);">Jump Menus, Pop Up Windows and Swap Images
<div><dt></dt><dd>Rollovers are very easy using Dreamweaver. All you need to do is export two images from Fireworks (the image itself and the rollover image). Next, in Dreamweaver, click on Insert>Rollover Image. </dd></div>
</a>
        </li>
    </ul>
</div>
</body>
</html>


扫描二维码推送至手机访问。

版权声明:本文由追求完美发布,如需转载请注明出处。

本文链接:https://www.cjw123.com/blog/?id=44

标签: JS
分享给朋友:

相关文章

网站调整公告

        网站开通了也有三年多了,网站也进行了多次的改版,昨天是我生日嫌着没事在家里把网站再进行了一次改版,当大家再次访问网站时,网站已经换上了全新的衣裳,这次的改版也将意味着我自己也会以一个全新的面貌展现,在我过去的一岁里...

html meta标签屏蔽搜索引擎的用法

html页面中的 meta 标签可以用来识别搜索引擎的蜘蛛类型,可以规定meta标签所在的html页面是否被蜘蛛抓取,下面是这个meta标签的用法,大家可以借鉴一下。搜索引擎的 meta 标签的解析下面是meta标签对搜索引擎的解析<meta name='robot...

8 种在 CSS 中隐藏元素的方法汇总

作为 Web 开发人员,我们经常遇到需要隐藏网页上的元素的情况。在本文中,我们将分享8 种在 CSS 中隐藏元素的方法,每种方法都有优点和注意事项。1.Opacity and Filter: Opacity隐藏元素最简单的方法之一是调整其不透明度。opacity 属性允许我们通过将其值设置为 0 来...

一个网站网页快照截图的接口

如果您的网站想展示某个网站的快照截图的话使用这个网页快照截图的接口确实比较方便网页快照截图接口使用https://s0.wp.com/mshots/v1/网址?w=宽度&h=高度示例https://s0.wp.com/mshots/v1/www.cjw123.com?w=1900&h...

好看的网站自适应图片文字广告位代码

<div class="ad"> <!--图片横幅广告--> <a href="https://www.cjw123.com/blog/" target="_blank"&nb...

嘈杂的声音

<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">...

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。