提供一些常用的代码
| | | 发表日期:2005-9-10 17:19:00 出处:未知 作者:未知 发布人:wlpdj 已被访问 11 次 | [table=98%] | [table=98%] | 打开网站的时候自己做一个弹出窗口的广告
<script language="javascript">
var TimerID=1;
window.open('http://163.com','','width=600,height=300,left=100,top=50');
</script>
里面的 http://123.com 这个是你预先做好的一个网页,后面的数字是调节大小和位置的,你自己多试验几次。 |
| |
| |
| 在地址栏中你也可以输入自己喜欢flash音乐网站
★平凡工作室欢迎你的光临! ★平凡工作室欢迎你的光临! ★平凡工作室欢迎你的光临! <IFRAME marginWidth=0 marginHeight=0 src="flash地址" frameBorder=0 width=700 scrolling=yes height=400 h space="0"></IFRAME</IFRAME>
width=700 height=400 这二个的值您自己可以按照您的网页调整一下
| <script language="javascript">
function click() {
if (event.button==2) {
alert('不要偷看哦')
}
}
document.onmousedown=click
</script>
文字可以根据自己爱好填写
| 电影频道播放器免费代码:拥有个人网站的朋友,现在您只需要在您的网页源代码的<body>与</body>之间中加入一行短短的免费代码,即可在您的网页中拥有这个在线网络电台播放器,让您的网站更具吸引力!
嵌入式: <script language="JavaScript" src="http://wudejun.wx-e.com/yspb/mfdm/1.js"></script>
弹出式: <script>
{window.open('http://wudejun.wx-e.com/yspb/mfdm/1.htm','CnSideMP','status=no,width=306,height=353,menubar=no,top=98,left=198');}
</script>
按钮式: <input type=button value=天天影院-电影台 style="font-size: 9pt; font-weight: bold" onclick=window.open("http://wudejun.wx-e.com/yspb/mfdm/l.htm"."ad"."Width=306.height=353.top=150.left=230
|
| <EMBED name=player1 src="歌曲IP地址" width=300 height=72 type=audio/x-pn-realaudio-plugin border="0" autostart="true"></EMBED>
width=300 height=72
高度 宽度 可以根据自己的爱好或是网页的地方来调整
| 把以下的代码放在显目的位置
<a href="你的网址" target="_blank" title="你的网名"><img src="你的网站图片地址" width="100" height="40" alt="你的网名"></a>
本站图片链接代码:
<td><tr>
<p align="center"><textarea rows="3" cols="15">
<a href="你的网址" target="_blank" title="你的网名"><img src="你的网站图片地址" width="100" height="40" alt="你的网名"></a></td>
</tr>
mp3音乐代码 嵌入式: <script language="JavaScript" src="http://wudejun.wx-e.com/yspb/mfdm/2/1.js"></script> 本站首页用的就是这个
弹出式: <script language="JavaScript" src="http://wudejun.wx-e.com/yspb/mfdm/2/2.js"></script>
按钮式: <script language="JavaScript" src="http://wudejun.wx-e.com/yspb/mfdm/2/3.js"></script
| <OBJECT height=450 width=400
classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6><PARAM NAME="URL"
VALUE="歌曲IP地址"><PARAM NAME="rate" VALUE="1"><PARAM NAME="balance" VALUE="0"><PARAM NAME="currentPosition" VALUE="0"><PARAM NAME="defaultFrame" VALUE=""><PARAM NAME="playCount" VALUE="100"><PARAM NAME="autoStart" VALUE="-1"><PARAM NAME="currentMarker" VALUE="0"><PARAM NAME="invokeURLs" VALUE="-1"><PARAM NAME="baseURL" VAIUE=""><PARAM NAME="volume" VAIUE="50"><PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="full"><PARAM NAME="stretchToFit" VALUE="0"><PARAM NAMR="windowlessVideo" VALUE="0"><PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="0"><PARAM NAME="fullScreen" VALUE="0"><NAME="SAMIFilePARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMILang" VALUE=""><PARAM name" VALUE=""><PARAM NAME="captioningID" VALUE=""></object>
红色的地址,可以根据自己喜欢的音乐(歌曲)来换
| <script language="LiveScript">
now = new Date(),hour = now.getHours()
if(hour < 6){document.write("明天还要上班吗?注意身体哦!")}
else if (hour < 8){document.write("又是全新的一天!")}
else if (hour < 12){document.write("祝愿您每天都能拥有一个好心情!")}
else if (hour < 14){document.write("今天的天气好不好")}
else if (hour < 18){document.write("中午好!祝您有个好胃口")}
else if (hour < 22){document.write("晚上好!")}
else if (hour < 24){document.write("夜深了! 要注意身体呀! 祝你做个好梦!")}
// -->
</script>
注意:文字你自己可以更改,也可以多一些
| | [/td][/tr][/table][/td][/tr][/table] |