js应用5

14,没有用表格写的,让大家随便看看,没什么。  
<html>  
<head>  
<title>江南荷花扇面</title>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
<style type="text/css">  
<!--  
.font1 
{ font-size: 12px; color: #999999; text-decoration: none}  
{ font-size: 12px; color: #999999; text-decoration: none}  
a:hover 
{ font-size: 12px; color: #000000; text-decoration: none}  
-->  
</style>  
</head>  
<body bgcolor="#FFFFFF" text="#000000">  
<div class="font1" style="writing-mode=tb-rl;height:200px" width=300>  
<p>盛夏      尚 涛   
<p><href="index.htm">一夜露痕黄粉香 袁运甫 </a>  
<p>瑶池昨夜新凉  王金岭  
<p>一朵白莲随意开 吴冠南  
<p>新雨迎秋欲满塘 齐辛民  
<p>十里荷香    齐辛民  
<p>濯清莲而不妖  卢世曙  
</div>  
</body>  
</html>  
15,IE6已支持自定义cursor!  
语法格式 cursor:url(图标) //cur或是ani文件.  
cur就是WINDOWS中的光标(cursor)文件,光标文件与图标(ICON)文件除了文件头有一个位置的值不同外,实际是一样的。  
ani是WINDOWS中的动画光标(图标)文件。  
<style type="text/css">  
<!--  
.unnamed1 
{ cursor:url(arrow2c.cur)}  
-->  
</style>  
16,用marquee做的滚动字幕.这也我刚看到论坛的朋友在问。  
语法:  
align=# | top | middle| bottom //对齐方式)  
BEHAVIOR=ALTERNATE | SCROLL | SLIDE //移动的方式  
BGCOLOR=color//底色区域颜色  
DIRECTION=DOWN | LEFT | RIGHT | UP //移动的方向  
Loop=n //循环次数(默认是循环不止)  
Scrolldelay=milliseconds//延时  
height=# width=# //区域面积  
hspace=# vspace=# //空白区域  
scrollamount=# //移动的速度  
<marquee align=top behavior=ALTERNATE BGCOLOR=#000000 height=60 width=433 scrollamount=5></marquee> 
17,在FLASH5中也存在一些字体,打散后变成一团的事是为什么?有解决的办法吗。  
这是大家很常见的问题!可能是对字库支持的不好!我个是做成透明的gif图片格式,然后倒入。  
18,flash的网页里“加入收藏夹”功能怎么实现?  
在as中加getUrl("java script:window.external.addFavorite(http://skydesigner.51.net`,`我的工作室`)"  
19,在Flash中,文本的动态属性和输入属性的区别。  
input text在运行时可被用户或程序改变其值。  
ynamic text仅允许被程序修改。  
20,怎样在IE中调用Dreamweaver进行编辑.  
相信很多在使用WinME或Window2000的朋友,会遇见是个问题。很简单,把我们笔记本程序打开,保存为一个 *.reg 文件。双击它将信息添加到注册表即可。  
REGEDIT4  
[HKEY_CLASSES_ROOT/.htm/OpenWithList/Dreamweaver]  
[HKEY_CLASSES_ROOT/.htm/OpenWithList/Dreamweaver/shell]  
[HKEY_CLASSES_ROOT/.htm/OpenWithList/Dreamweaver/shell/edit]  
[HKEY_CLASSES_ROOT/.htm/OpenWithList/Dreamweaver/shell/edit/command]  
@="/"c://Program Files//Macromedia//Dreamweaver 4//dreamweaver.exe/" /"%1/""  
21,设置表格虚线。  
方法一:作一个1X2的图。半黑半白,再利用表格作成线。  
方法二:在css里面设,要IE5。5才支持这种效果。  
style="BORDER-LEFT: #000000 1PX DASHED; BORDER-RIGHT: #000000 1PX DASHED; BORDER-TOP: #000000 1PX DASHED; BORDER-BOTTOM: #000000 1PX DASHED"  
22,看看在网页中调用HHCtrl控件效果。  
代码如下:  
<object id="HHC" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"></object><script>HHC.TextPopup("哈哈,大家好,我是闪梦!","",50,5,128255,346751);</script>  
22,如何让一张图片有浅到深的渐变。  
<SCRIPT language=javascript1.2>  
<!--  
function high(which2){  
theobject
=which2  
highlighting
=setInterval("highlightit(theobject)",50)  
}  
function low(which2){  
clearInterval(highlighting)  
which2.filters.alpha.opacity
=40  
}  
function highlightit(cur2){  
if (cur2.filters.alpha.opacity<100)  
cur2.filters.alpha.opacity
+=10  
else if (window.highlighting)  
clearInterval(highlighting)  
}  
</script>  
<img onmouseout=low(this) onmouseover=high(this) style="FILTER: alpha(opacity=40)"src="logo.gif" >  
23,双击鼠标左键来滚动背景,单击停止。  
<SCRIPT language=javascript>  
var currentpos,timer;  
function initialize()  
{  
timer
=setInterval("scrollwindow()",16);  
}  
function sc(){  
clearInterval(timer);  
}  
function scrollwindow()  
{  
currentpos
=document.body.scrollTop;  
window.scroll(
0,++currentpos);  
if (currentpos != document.body.scrollTop)  
sc();  
}  
document.onmousedown
=sc  
document.ondblclick
=initialize  
</SCRIPT>  
24,如何在同一页面设置不同文字链接效果的样式.  
代码如下:  
<HTML><HEAD><TITLE>如何在同一页面设置不同文字链接效果的样式</TITLE>  
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
<style type="text/css">  
<!--  
a:hover 
{ font-size: 9pt; color: #FF0000; text-decoration: underline}  
a:link 
{ font-size: 9pt; color: #006699; text-decoration: underline}  
a:visited 
{ font-size: 9pt; color: #006699; text-decoration: underline}  
a:active 
{ font-size: 9pt; color: #FF0000; text-decoration: none}  
a.r1:hover 
{ font-size: 9pt; color: #FF0000; text-decoration: underline overline}  
a.r1:link 
{ font-size: 9pt; color: #000000; text-decoration: underline overline}  
a.r1:visited 
{ font-size: 9pt; color: #99CC00; text-decoration: underline overline}  
a.r1:active 
{ font-size: 9pt; color: #000000; text-decoration: underline overline}  
-->  
</style>  
</head>  
<body bgcolor="#FFFFFF" text="#000000">  
<href="#">下划线链接 </a>  
<p></p>  
<href="#" class="r1">双下划线链接</a>  
</BODY>  
</HTML>  
补充说明:  
a:hover 表示鼠标划过时的样式.  
a:link 表示链接的样式.  
a:active 表示当前活动连接的样式.  
a:visited 表示已经访问过的连接的样式.  
25, 用CSS给文字加入阴影效果和文字描边效果。  
.glow{FONT-SIZE: 9pt; FILTER: Glow(Color=#000000, Strength=1)}  
//文字描边效果  
.shadow {FONT-SIZE: 9pt; FILTER: DropShadow(OffX=1, OffY=1, DropShadow(OffX=1, OffY=1, color:#111111); COLOR: #ffffff; FONT-FAMILY: "宋体"}  
//加入阴影效果  
补充说明:  
  这两种滤镜要想实现效果,必须加在如:
<td class=glow或shadow ><div>xxxxxxxxx</div></td>上  
,并且要留有足够的空间能够显示阴影或描边,否则会出现半截的阴影或描边现象。  
26,如何给做带颜色的下拉菜单。  
<select style="FONT-SIZE: 10px; COLOR: #ffffff; FONT-FAMILY: Verdana;BACKGROUND-COLOR: #ff6600;" size=1 >  
<option selected>:: Dreamweaver4 ::</option>  
<option>::Flash5::</option>  
<option>::Firewoks4::</option>  
</select>  
27,关于DW4的表格中的亮边框和暗边框问题。  
在DW4的表格面板中并没有亮边框和暗边框的属性设置,因为NC不支持,只有你在代码中添加了。  
bordercolorlight="#999999" bordercolordark="#000000"  
  你也可以用Css定义一个class。例如:  
<style>  
.bordercolor 
{ bordercolorlight: #999999; bordercolordark: #000000 }  
</style>  
  然后在要加效果的表格里加上
<table class="bordercolor">  
28,自动显示主页最后更新日期.  
<script>  
document.write(
"最后更新日期:"+document.lastModified+""  
</script>  
29,如何让滚动条出现在左边?  
我想居然在论坛中有人发表了这段代码,很有意思,它的确照顾一些左撇子,呵呵!  
<html dir="rtl">  
<body bgcolor="#000000" text="#FFFFFF">  
<table height=18 width=212 align=center bgcolor=#FFFFFF dir="ltr" cellspacing="1"  cellpadding="0">  
<tr>  
<td bgcolor="#FF0000" >是不是你的滚动条在左边啊</td>  
</tr>  
</table>  
</body>  
</html>  
30,如何加入网址前面的小图标?  
  首先,您必须了解所谓的图标(Icon)是一种特殊的图形文件格式,它是以 .ico 作为扩展名。你可用在网上找一个制作图标软件,它具有特有的规格:图标的大小为 16 * 16(以像素为单位);颜色不得超过 16 色。 在该网页文件的 HEAD 部分加入下面的内容:
<LINK REL="SHORTCUT ICON" HREF=" http://skydesigner.51.net/图标文件名">,并放在该网页的根目录下。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值