今天终于写完了一个 可以水平下拉菜单和垂直下拉菜单之间随意切换的网页换肤程序,它综合应用了水平下拉菜单,垂直下拉菜单,网页换肤等技巧.
这个程序需要用到三个文件,一个是h.css,用作水平下拉菜单的样式文件,另一个是v.css,用作垂直下拉菜单的样式文件,最后一个就是包含下拉菜单内容的网页文档test.html.
test.html文件内容:
这个程序需要用到三个文件,一个是h.css,用作水平下拉菜单的样式文件,另一个是v.css,用作垂直下拉菜单的样式文件,最后一个就是包含下拉菜单内容的网页文档test.html.
test.html文件内容:
复制内容到剪贴板 程序代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
通过调用JS脚本来实现的Lightbox效果我想大家都很熟悉了,
我在econsultant.com看到了介绍Lightbox类似程序的帖子,发出来共享一下。
Lightbox JS
: original; a simple, unobtrusive script used to overlay images on the current page.
Greased Lightbox
: Greasemonkey/Creammonkey/Opera user script designed to enhance browsing on websites that link to images such as Google Image Search, Flickr, Wikipedia, Facebook, MySpace, and deviantART.
GreyBox
: A pop-up window that doesn’t suck.
我在econsultant.com看到了介绍Lightbox类似程序的帖子,发出来共享一下。
Lightbox JS
: original; a simple, unobtrusive script used to overlay images on the current page.
Greased Lightbox
: Greasemonkey/Creammonkey/Opera user script designed to enhance browsing on websites that link to images such as Google Image Search, Flickr, Wikipedia, Facebook, MySpace, and deviantART.
GreyBox
: A pop-up window that doesn’t suck.
#container #header #menu ul li .menuB span{background:url('menuright.gif') right top no-repeat;color:#FF9900;font-weight:bold;}
#container #header #menu ul li .menuB:hover span{background:url('menuright.gif') right top no-repeat;color:#FF9900;font-weight:bold;}
.menuB就是菜单栏中的第二项,设置了背景/单独的颜色/加粗.